8ecb2e5b4823e17ad8d21a49de378c60a2d3f7f19aa062fe718e5abe4239ebb6

invention

Servo Sequence Recorder

by littleBits

Published on May 15, 2014

This project, designed by littleBits Evangelist, Glenn Mossywill repeat a sequence that you create and then play it back on your servo module! It will loop until you press the record mode button again.

*To complete this exercise, you will need to download the Arduino software.

Instructions on how to use it:

Go into record mode by pressing the button on the D0 input.  While pressing the record button or switch, twist the dimmer on pin A0 to create patterns for the servo to follow. Let go the record button to play back your sequence! Press the record button once to stop playback.

Rotate the dimmer connected to A1 clockwise to speed up your playback. Have fun with different littleBits on the output!


For more “getting started” sketches, click here.

For support check out the littleBits and Arduino forums.

To learn more about coding, find examples on Arduino’s website.

How To Make It

STEP 1

Download the Arduino software to your computer (it's free!) and open the "Servo Sequence Recorder" sketch. The "Servo Sequence Recorder" sketch can be found on this page in the "other files" section.

STEP 2

Build your circuit (see the photo gallery for an image of the setup). On the Arduino module, make sure the button is connected to the D0 input pin and the dimmer in connected to the A) input pin. The bargraph should connect to the D1 output pin and the servo should be connected to the D5 output pin.

STEP 3

Plug the micro USB cable into both the Arduino module and a USB port on your computer.

STEP 4

Turn your power module on. You should see a red light illuminate on the power module and a yellow light flash on your Arduino module.

STEP 5

In the Arduino program, select your board. Go to Tools>Board>Arduino Leonardo. This littleBits Arduino module is modeled after the Arduino Leonardo and is therefore compatible.

STEP 6

Next select the serial port that the Arduino will communicate over by going back to "Tools" and selecting the correct port in the "Port" section. The name of the port will depend if you are on a Mac or Windows computer. On a Mac, it will start with /dev/tty.usbmodem... and a PC will start with COMM… In Windows, you can look for the USB serial device in the ports section of the Windows Device Manager. If you are on a Linux machine, the port will look like /dev/ttyUSB…

STEP 7

To upload the Arduino sketch to your Arduino module, press the arrow button in the top left corner of the screen. You will see a blue bar at the bottom of the window that says "compiling sketch", and you should see two yellow lights flash on your Arduino module when this happens. The upload is complete when you see "done uploading" at the bottom of your sketch window.

STEP 8

Once the program is uploaded, you can start recording.
Instructions on how to use it:
Go into record mode by pressing the button on the D0 input. While pressing the record button or switch, twist the dimmer on pin A0 to create patterns for the servo to follow. Let go the record button to play back your sequence! Press the record button once to stop playback.

Related Projects

Angry Kitty

How to create a cat that will purr and wave it's tail when you pet it.

Musical Merry-go-round

A musical merry-go-round using a light sensor to create the sounds.

BB8 (IR controlled) #BitWars

A paper craft BB8 that walks and move his head.