Danny Rozin Fall 2024

QR code for  this page

Tuesday 9:30am – 12:00pm room 407
Tuesday 3:20pm – 5:50pm room 408

ITP Physcomp weekly syllabus

Contact

Book office hours with me on my calendar. I will schedule regular office hour appointment slots which you can book automatically once the semester starts. You’ll need to sign in with your NYU login to see it.

Feel free to email me at danny.rozin@nyu.edu if you have any questions or things you want to talk about.

Class Blogs

Morning class- add your blog URL here
Afternoon class – add your blog URL here
(Sign-in with NYU account)

Week 11 – more communications

Some more Asynchronous serial

Asynchronous = UART

Multiple UART Arduinos

Adding Software Serial to Arduino

To connect to printers and appliances that use RS232

For long distance or many nodes – RS485

MIDI, Control sound and synthesizers from Arduino:

MIDI tutorial, MIDI commands

DMX, Control lighting and other theatrical and home automation:

Arduino DMX library –

Arduino DMX Shields

Synchronous serial:

Arduino pins used for synchronous Nano 33IOT, Uno

Compare I2C and SPI

SPI

SPI schematic

Arduino reference SPI

SPI Potentiometer lab

I2C

https://www.arduino.cc/en/Reference/Wire

I2C Time of Flight distance sensor lab

I2C infrared temperature sensor lab

Using Arduino Nano 33 IOT accelerometer

Stemma connectors

I2C address translator

Multiplexing/Shifting :

I2C multiplexor

Arduino ShiftOut reference circuit

https://www.arduino.cc/en/Reference/ShiftIn


http://www.instructables.com/id/Multiplexing-with-Arduino-and-the-74HC595/?ALLSTEPS


Row – Column schematic 3D LED cube diagram

Another Multiplexer (not serial, analog)

http://playground.arduino.cc/Learning/4051

Week 10

BOMs, system diagrams and time tables

CONTROLLING YOUR RESOURCES:

  • Time
  • Money
  • Space

PLANNING YOUR PROJECT:

  • interaction
  • electronics
  • space/ enclosure

Sam Levigne RoboCop
Some BOMS and diagrams of my (Danny) work
Make breadboard schematics – Fritzing

Class 8 – Serial:

drawing of serial communications from between arduino and p5 overview
serial communications from between arduino and p5 overview

ARDUINO -> P5

P5 and Arduino sketches for sending 1 byte binary from Arduino to P5

P5 and Arduino sketches for sending 1 value in ascii from Arduino to P5

P5 -> ARDUINO

P5 and Arduino sketches for sending 1 byte binary from P5 to Arduino

P5 and Arduino sketches for sending 1 value in ascii from P5 to Arduino

P5 and Arduino sketches for sending 1 byte binary P5 to Arduino with capture

MULTIPLE VALUES

P5 and Arduino sketches for sending multiple values in ascii from  Arduino to P5

P5 and Arduino sketches for sending multiple values in ascii from P5 to Arduino with parseInt()

Class 6 – Loads:

AC Loads:

Any AC load can be controlled with Arduino using a relay, including motors, fans, lights, computers,

power switch tail https://www.adafruit.com/products/268 safest and most convenient

Relay https://www.sparkfun.com/products/10924 you need to wire your high voltage through it so be super careful (Relay Tutorial)

AC motors

Attributes: Cheap, strong, medium speed, hard to control speed, hard to reverse.

http://www.mcmaster.com/#ac-motors/=5yytj1gdt8igtyq137

Geared AC motors

Attributes: cheap, slow, very strong, hard to control speed, hard to reverse.

http://www.mcmaster.com/#ac-motors/=zr6bef

DC Motors

Attributes: Cheap , strong, very fast , you can control speed but not angle, reversible

https://www.adafruit.com/products/711

DC fans, DC blowers

DC pumps

Geared DC motors

Attributes:  Very strong, slow , you can control speed but not angle, reversible https://www.servocity.com/html/micro_gearmotorblocks.html

DC motors with encoder

Attributes: Like DC motors but give you to feedback via optical encoder

https://www.servocity.com/html/3-12v_planetary_gear_motors_wi.html

DC motors from Cars

Car retractable antena motor

Car wipers motor

Car windows motor

Car door lock actuator

Stepper motor

Attributes: medium speed, control speed, position, reversible

Video explaining stepper motors and how to drive them

https://www.adafruit.com/products/324

Geared stepper motor

Attributes: slow, strong, control speed, position, reversible

https://www.adafruit.com/products/918

with driver board

Automotive gauge stepper motor (cluster)

Attributes: very light, weak, cheap , Can work directly from Arduino with no transistors or anything.

on amazon

video of inside

Servo

Attributes: slow, strong, control speed, position, reversible, 180 degrees , super easy to control

https://www.adafruit.com/products/155

More servos – https://www.servocity.com/html/servos___accessories.html

Continuous rotation 360 degree servo

Attributes: slow, strong, control speed, reversible, super easy to control

https://www.adafruit.com/products/154

Converting servo to continuous motion

Linear actuators

Attributes: Linear, limited stroke, expensive, control like DC motor, some have potentiometer feedback

https://www.servocity.com/html/12v_linear_actuators.html

Stepper motor linear actuator , more stepper linear actuators

Solenoids

Attributes: Super fast, super short stroke, momentary

https://www.sparkfun.com/products/11015

Solenoid valves

Solenoid locks

Mechanical linkages:

Hubs –

https://www.servocity.com/html/hubs__couplers___adaptors.html

https://www.robotshop.com/en/hubs-couplers.html

Couplers – 

https://www.servocity.com/couplers/

https://www.mcmaster.com/standard-shaft-couplings

Bearings –

https://www.mcmaster.com/standard-mounted-bearings

Gears – 

https://www.servocity.com/html/pinion_gears.html

https://www.mcmaster.com/gears

Chains / sprockets – 

https://www.servocity.com/html/sprockets___chain.html

https://www.mcmaster.com/roller-chain-sprockets

Belts / pulleys  –

timing belts, O Ring pulleys, cable pulleys

https://www.mcmaster.com/timing-belt-pulleys

Power supplies:

Power supplies on SparkFun

computer power supplies, how to use computer power supplies

How to tell the capabilities of computer power supply

Wires

Wire gauge chart per amp 

Wire gauge chart diameter

multiconductor wire

Second class:

water metaphor sometimes helps explain the three components of electricity
water metaphor sometimes helps explain the three components of electricity

Hight of water reservoir = Potential = volts = v
Narrowness of pipe = Resistance = ohms = R
The resulting flow of water= Current = Amps = I

Fritzing github (free?), or buy, github mac, github Windows
Arduino Nano 33 IOT page and download Fritzing part

How to Use a Breadboard and Build a LED Circuit

Breadboard connections

Arduino Nano 33 IoT board with USB connector facing the top

First class

slides about interaction

my work

Fantasy Device – As a class, we’ll make a list of fantasy devices; things that don’t exist, but that we wish did. For today, we’ll ignore technical feasibility and concentrate on how you’d operate these devices if they did exist. We’ll divide into groups of 3. Pick a fantasy device from the list. Design/mockup a control interface for this device and demonstrate it in­ class.

It is sometimes useful to think in terms of WH questions and try to answer them in your design:

WHO? WHEN? WHERE? WHAT?

Lets take an example, A popular fantasy device in movies and books is a time machine. In movies and TV, the production has to imagine what these devices look like and how they are controlled:

“Back to the future” movie:

Time Machine control panel
Time Machine control panel
Time Machine in "Back to the future" movie
Time Machine in “Back to the future” movie

So thinking about the WH questions:

WHAT is it ? – A car.
WHO gets to go ? – anyone in the car.
WHERE does it take you ? Set in the control panel.
WHEN does it activate ? When the car reaches 80 MPS.

Stewie from “Family Guy” time machine:

Stewey's time machine
Stewie’s time machine
Stewey's time machine cabinet
Stewie’s time machine cabinet
Stewey's time machine control panel
Stewie’s time machine control panel

Here the designers decided the machine is a cabinet, but they also added a disc that goes with Stewie and is used to get back:

WHAT? – A cabinet and a disc
WHO gets to go? Anyone in the cabinet or on the disc.
WHEN does it activate ? Not sure, but there is a big red button…
WHERE does it take you? There is a control panel, note that the control seems to be relative, so you can go forwards and backwards, not absolute like in “Back to the future”

“Spongebob Squarepants” time machine:

https://www.youtube.com/watch?v=mJZXCBLbNkU
video of Spongebob Squarepants episode – Time machine at 2:20

Here the machine is the freezer from the Crusty Crab, note that the whole freezer travels through time and it is ripped from it’s surroundings

WHAT is it ? A freezer.
WHO gets to go ? Whoever is in the freezer.
WHERE does it go? Hard to say, looks like two levers and no display.
WHEN does it activate? Hard to say, but it has some buttons.