Step 1: Build the circuit
void setup() { pinMode(9, OUTPUT); //pin 9 to the base of TIP122 } void loop() { //turn transistor ON digitalWrite(9, HIGH); delay(1000); //turn transistor OFF digitalWrite(9, LOW); delay(100); }
Step 2: Control rotation with a potentiometer
/* * MotorKnob * * A stepper motor follows the turns of a potentiometer * (or other sensor) on analog input 0. * * http://www.arduino.cc/en/Reference/Stepper * This example code is in the public domain. */ #include <Stepper.h> // change this to the number of steps on your motor #define STEPS 100 // create an instance of the stepper class, specifying // the number of steps of the motor and the pins it's // attached to Stepper stepper(STEPS, 8, 9, 10, 11); // the previous reading from the analog input int previous = 0; void setup() { // set the speed of the motor to 30 RPMs stepper.setSpeed(30); } void loop() { // get the sensor value int val = analogRead(0); // move a number of steps equal to the change in the // sensor reading stepper.step(val - previous); // remember the previous value of the sensor previous = val;
I follow the picture to build this circuit. And I regard the TIP122 as potentiometer.![]()
The proper one.
Notice:
DO NOT reverse the driver’s direction!Make sure you orient the IC in the correct position; The IC has a front and a back. A semicircle indicates where the front of the IC is. The pin to the left is pin 1, and the diagram beside depicts how the other pins are mapped.
If the circuit doesn’t work, try to figure out whether it’s the problem of connection.
Step 3: Build a Drawing Machine!
control the potentiometer to change the current to draw!
Question 1: What kind of machines would you be interested in building? Add a reflection about the use of actuators, the digital manipulation of art, and the creative process to your blog post.
I want to build an ASMR machine. It can detect your sleep quality. When you are hard to fall asleep, it can automatically play ASMR to help you get into sleep. The machine needs a breath rate sensor and a motor, a sound drum. You open the machine when you are going to sleep. And the sensor will start to detect your breath rate. Once your breath is still fast like awake, the motor will start to work. It will spin smoothly and make the sound drum work. And when you finally fell asleep, the sensor will detect your breath rate’s change and stop working. This applies to people who are hard to fall asleep.
Question 2: Choose an art installation mentioned in the reading ART + Science NOW, Stephen Wilson (Kinetics chapter). Post your thoughts about it and make a comparison with the work you did during this recitation. How do you think that the artist selected those specific actuators for his project?
London Fieldworks(Bruce Gilchrist and Jo Joelson) in collaboration with Dugal Mckinnon(composer), is an enveloping chair links audible and inaudible sound, physical vibration and neon light. Black cylinders attached to various segments of the chair control physical vibration and tactile stimulators. I think this is a multi-sensual art installation. People can be personally on the scene when sitting on the chair. And it is good for people to regain the feelings not only from watching but from sound and touch, because nowadays people are trapped in front of computers, don’t have time to go outside. And this art installation places more emphasis on feeling. People interact with this project with their own feeling. But the drawing machine I built during this recitation is controlled physically. It needs a motor to spin and draw different patterns by controlling the potentiometer to change currents. I think the reason the artist selected those actuators is that they want people to analyze how sight, sound and touch infiltrate each other during the culture with excessive noise.