Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

Make: Projects

Circle-A-Sketch

Create a program similar to "Etch-A-Sketch" with 2 potentiometers and a photoresistor.

Circle-A-Sketch

This simple project uses an Arduino, a photoresistor, 2 potentiometers, and a resistor and uses basic serial communication between the Arduino and your computer.

Basically, the user can draw by controlling two potentiometers (drawing knobs) and the photoresistor determines how dark the circle will be drawn.

Steps

Step #1: Set up the hardware.

PrevNext
Circle-A-SketchCircle-A-SketchCircle-A-SketchCircle-A-Sketch
  • Set up two potentiometers next to each other. They will act as the horizontal and vertical controls for the Processing Circle-A-Sketch.
  • The pin on one end will go to a 5V source, the middle pin will go to an analog pin on the Arduino (either A0 or A1) and the other end pin will go to ground ("Gnd").
  • Photoresistor
  • Create a voltage divider with the 10k resistor.

Step #2: Upload the Arduino code.

PrevNext
Circle-A-Sketch
  • Connect the Arduino to your computer.
  • Verify/Compile the code and then upload it to the Arduino board.

Step #3: Processing

PrevNext
Circle-A-Sketch
  • Download and install Processing.
  • Open Processing and upload the Processing code.
  • Click the Run button and get ready to sketch!

Step #4: That's it!

PrevNext
Circle-A-Sketch

Draw and experiment.


blog comments powered by Disqus

Featured Products from the MakerShed

Follow

Get every new post delivered to your Inbox.

Join 25,883 other followers