Assignment: DC Motor: Actuation Assignment 1
Collaborators:
Description
The Gestalt effect is when the mind takes a lesser form and creates a greater and more meaningful whole. This might consist of drawing an image of a vase, and one seeing two faces, or a group of 2 dimensional boxes that create a 3D image due to the sharp color contrast. My goal for this project was to test six different types of concentric circles I created, each with only 8 lines varying the width and transparency, and see if I could get a 3D effect or depth from the motion.
Here are my results.
Components Used
- 1 Potentiometer
- 1 Diode
- 1 Resistor
- Arduino Board
- Breadboard
- Wire
- Steel Pedestal
- Electrical Tape
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
}
Images