Lab 12 – Media Controller

Exercise
This lab will demonstrate your understanding of Processing and Arduino. Now that you know how to control images, audio and basic video with Processing and how Arduino and Processing can control each other,  your assignment is to control the images and audio on a Processing sketch with a controller made with Arduino.
You can use live images and live sound or recorded sound and pre-saved images as long as you credit your sources. Think about how you can incorporate interactivity and computation into this week’s exercise. Work in pairs. Document your work on the documentation blog.

Lab 11- Drawing Machines

Exercise 6

We will be creating drawing machines by using an H-bridge to control stepper motors attached to mechanical arms. Form groups of two and assemble the circuit using the SN75440NE IC and the pre-installed Arduino Stepper Library to control one stepper motor.

Each group of two will need their Arduino kit along with:

  • 1 stepper motor
  • 1 SH75440NE ic chip
  • 1 5 volt power supply
  • 1 power plug
  • 1 potentiometer from your kit
  • 1 Arduino and USB cable from your kit
  • Laser-cut mechanisms
  • Pens that fit the laser-cut mechanisms

Part 1: Make this circuit to control the stepper.

bipolarStepperMotor

Use the stepper_oneRevolution example to get your motor to make one revolution. Once you have your motor moving each group should collect one of the laser-cut mechanisms, pictured below.

preview-full-img_1449
Part 2: Then, each group should find another group to form a larger group of four in order to combine their parts in to a mechanical arm that can hold a marker, pictured below. You have just created a drawing machine!
preview-full-img_1448
You may need to tape the paper down so it does not move against the pen. Experiment with changing the speed.
Part 3: Add a potentiometer to A0 and using the stepper_speedControl example in the Stepper Library you can have more control over the speed and direction of the drawing machine.

Lab 10: 3D Modeling

Exercise 7:

Using Tinkercad, design a 3D model of a wearable device, a game controller or a security camera that utilizes one of the following components or equipment:

 

 

Your model has to be 3D printable and must be able to hold or support one of the pieces listed above. In order to create a precise mount or connector, you must check the datasheet of the component or equipment to find the correct dimensions. Students can also take measurements using venier calipers if a data sheet with part dimensions is unavailable.

Document your work on the documentation blog.

Lab 9 Autodesk Field Trip and Laser Cutting

Exercise 6:

  1. Follow the DIY Rubber Stamp tutorial for the laser cutter and create your own custom AI file for your own stamp. The video and image for the tutorial are available via google docs. Document your process and post your work on the documentation blog.
  2. Visit the Shanghai Autodesk Headquarters during the Interaction Lab Recitation. Meet at the front desk of the NYU Shanghai Academic Building. Write about your experience on the documentation blog.

Lab 6 Serial Communication

Exercise 5:

Working in pairs, exchange data between Processing and Arduino using serial communication. Make a Processing sketch that tells Arduino to do something, and make your Arduino tell Processing to do something as well. Document your work on the documentation blog.

One way to think about this is to send a char or a byte from Processing to the arduino but make sure you know which one you are sending. Also make sure you have the serial port number set correctly and the baud settings set on both Arduino and Processing.

 

 

 

Lab 4- Sensors

Exercise 4: 
Go to the IMA Equipment Website and check-out one of the following sensors that is not provided with your Arduino kits:
Attach it to your Arduino and use the data from your sensor to turn on and off an output (Servo motor, LEDs, Buzzer, etc.). Document your work on the documentation blog.

Here are some notes that can help you:

  • Moisture Sensors, Sharp IR Sensors, and Vibration Sensors use simple analog read.
    • In the case of Infrared Distance Sensors using map() can be helpful to map the analog readings from the sensor to the distance between the sensor and the object it is sensing — look at the bag of your sensor to know what is its distance range. For the Sharp Infrared Distance Sensor you can also download the Sharp IR library here. After downloading the library unzip the folder and move it to Documents —> Arduino —> Libraries folder. Then you will have to restart the IDE to make sure the new library is included. You can use the “SharpSensorCm” sample code.
  • In the case of Ultrasonic Range Distance Sensors we have three types of sensors: Grove Ultrasonic Range V 0.1, Grove Ultrasonic Range V 0.2, and HC-SR04.
    • For the HC-SR04 you can use the Ping example on your Arduino IDE — under Examples —> 0.6Sensors. In order to do that you will have to connect both Trig and Echo to the same Digital Pin in your Arduino.
    • For Grove Ultrasonic Range V 0.1 and V 0.2 you can download the Seed Studio library here. After downloading the library unzip the folder and move it to Documents —> Arduino —> Libraries folder. Then you will have to restart the IDE to make sure the new library is included. You can use the “UltrasonicDisplayOnTerm” sample code.
  • For Grove Accelerometer_ADXL345 you can download the Seed Studio library here. After downloading the library unzip the folder and move it to Documents —> Arduino —> Libraries folder. Then you will have to restart the IDE to make sure the new library is included. You can use the “ADXL345_demo_code” sample code.

Lab 2- Arduino Basics

Exercise 2:

Working in pairs:

We realize the documentation on your kits suggest you use the prototyping shield. We suggest you skip the shield and hook them up using this documentation. Remember you still need to program the arduino with example code from the DFRobot link

  1. Traffic lightScreen Shot 2017-02-14 at 5.06.53 PM copy(click to make bigger)
  2. Temperature Alarm Screen Shot 2017-02-13 at 12.54.00 PM
  3. Ambient LightScreen Shot 2017-02-13 at 12.53.33 PM copy
  4. RGB Light DimmerScreen Shot 2017-02-17 at 12.15.55 PM

 

Lab 1

Exercise 1:

  • Create a simple circuit based on one or more of the circuit diagrams below on a breadboard and document it on the documentation blog. The first circuit uses a voltage regulator, buzzer and a switch. The second circuit uses a voltage regulator, resistor, LED and switch. The third circuit uses a voltage regulator, resistor, potentiometer, LED and switch.
  • 1st lab interaction lab cheatsheet 

exercise1Don’t be this guy!

https://www.facebook.com/scott.westerman/videos/10154552731187316/