Recitation Documentation #4 (Rudi) – HaEun Yoon

Introduction

For this recitation, we were supposed to create 3 types of circuits, 1st the stepper circuit, where the machine is automatically moving, 1 round clockwise and another round counterclockwise. 2nd, the same but with a motor knob attached to it so it is more interactive. The circuit is conducted as a person turns the knob to change the direction of the movement. Lastly, the 3rd circuit, which is arguably the same circuit as the two above, but combined with another person’s circuit in order to create a drawing machine. Below are more details.

Circuit 1

Materials: 1 stepper motor (42STH33-0404AC), 1 ic chip / Integrated Circuit (H-Bridge) (SN754410NE), 1 power jack, 1 power supply (12 VDC), 1 Arduino kit and the materials.

Above is the outline of the circuit.

During this exercise, we were supposed to know the direction of the H bridge by the indicating marks on it. The “U” shaped part of the H-bridge would have to be indicated for the wires to be connected together. If this process is not checked, then there is a chance that your computer might be permanently damaged.

Below is the successful trial.

Circuit 2

The Materials are the same as Circuit 1.

Circuit 2 contained the same elements as Circuit 1 but instead attached with a motor knob so that it can be turned.

Circuit 3

Materials: 2 of the final circuit 2. 2 small laser cut arms, 2 longer lasers cut arms, 1 laser cut motor holder, 3 3D printed motor coupling, 5 Paper Fastener

Questions

Question 1

I got this idea from the circuits that we were working in class. I was wondering when searching for a specific picture in Google or any type of search engine, and you don’t know what it is, it would be more efficient if the search engine could recognize the colors and the drawings done by the searcher to match them to a picture online.

Just by drawing sketches online, the program would recognize the outlines, colors and try to match them with an uploaded image already online in order for the searcher to get more information about what the picture represents.

Question 2

Waves by Daniel Palacios is a project that creates visual waves according to the type of sounds that they hear. If a viewer was to make different sounds, it would be able to catch on to the sound and project a sine wave that would be in motion. Compared to the work that we did in the recitation, it shows that it is similar since the way both projects create forms of art is the way a person would interact with it.

It would make sense that the way the artist used a sine wave refers back to the science of how sound is visible to us. The project took what was familiar to the audience and incorporate it to be visually different.

/*
 Stepper Motor Control - one revolution

 This program drives a unipolar or bipolar stepper motor.
 The motor is attached to digital pins 8 - 11 of the Arduino.

 The motor should revolve one revolution in one direction, then
 one revolution in the other direction.


 Created 11 Mar. 2007
 Modified 30 Nov. 2009
 by Tom Igoe

 */

#include <Stepper.h>

const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution
// for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);

void setup() {
  // set the speed at 60 rpm:
  myStepper.setSpeed(60);
  // initialize the serial port:
  Serial.begin(9600);
}

void loop() {
  // step one revolution  in one direction:
  Serial.println("clockwise");
  myStepper.step(stepsPerRevolution);
  delay(500);

  // step one revolution in the other direction:
  Serial.println("counterclockwise");
  myStepper.step(-stepsPerRevolution);
  delay(500);
}


/*
 * 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 200

// 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;
}

Leave a Reply