Circular art

Submitted by syh on Mon, 03/11/2013 - 20:56

Description: This is a very basic platform that allows an artist to create nice patterns and near-perfect circles with a marker. No modifications were made to the basic Arduino code; it's very simple. The cardboard platform has a couple of smaller pieces taped to the bottom, to allow the surface to sit flush with the top of the "pin" of the motor. A piece of cardstock is taped to the top to give a smooth surface on which to draw. I also marked where to place a post-it in order to make it as centred as possible. Touching a marker lightly to the post-it when the motor is on creates concentric circles.

 

Components:
- Arduino UNO + usb cable
- Breadboard
- 1 DC motor
- battery pack + 2 AA batteries
- 1 potentiometer
- 1 1N4004 diode
- 1 TIP120 transistor
- 1 1k-ohm resistor

- Cardboard (1 large, 2 small)
- Tape
- cardstock
- post-its
- markers

 

Arduino code:

 

/*
 * one pot fades one motor
 * modified version of AnalogInput
 * by DojoDave <http://www.0j0.org>
 * http://www.arduino.cc/en/Tutorial/AnalogInput 
 * Modified again by dave
 */
 
int potPin = 0;   // select the input pin for the potentiometer
int motorPin = 9; // select the pin for the Motor
int val = 0;      // variable to store the value coming from the sensor
void setup() {
  Serial.begin(9600);
}
void loop() {
  val = analogRead(potPin);    // read the value from the sensor, between 0 - 1024
  Serial.println(val);
  analogWrite(motorPin, val/4); // analogWrite can be between 0-255
}
 
Circuit
Finished Drawing
In Motion
0
Your rating: None
Drupal theme by Kiwi Themes.