Category Archives: tutorials

Out of Pins?

http://www.arduino.cc/en/Tutorial/ShiftIn http://www.arduino.cc/en/Tutorial/ShiftOut These tutorials show how to use Shift Registers to turn 3 Arduino pins into 8 inputs/outputs.    

Posted in tutorials | Leave a comment

Modifying a Servo for Continuos Rotation

https://www.youtube.com/watch?v=bpO7XMXGzfw&feature=youtube_gdata_player On second thought, this one’s easier… https://secure.flickr.com/photos/randomskk/2570783032/in/photostream/

Posted in tutorials | Leave a comment

servo example code

#include <Servo.h> int servo_pin = 9; int pot_pin = 4; Servo s; void setup(){ Serial.begin(9600); s.attach(servo_pin); } void loop(){ int tmp = analogRead(pot_pin); int angle = map(tmp, 0, 1023, 10, 170); Serial.println(angle); s.write(angle); delay(50); }

Posted in tutorials | Leave a comment