Danny Rozin Fall 2021

Class Times

Wednesdays, 9:10 AM – 11:40 AM, 370 Jay Street, Room 410
Wednesdays, 3:30 PM – 6:00 PM, 370 Jay Street, Room 409


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:

Arthur Jr.,Bruce
Trebisacci,Tatiana Tash
Zhou,Peiyu Eva

Afternoon class:

Ke,Xiaoyu (Rockey)
Lu,Julia Margaret
Rodriguez Ostia,Lorena

Aga, Adnan

Week 11 – 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.


Geared AC motors

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


DC Motors

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


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


DC motors from Cars

Car retractable antena motor

Car wipers motor

Car windows motor

Car door lock actuator

Stepper motor

Good video explaining stepper motors

Attributes: medium speed, control speed, position, reversibleG


Geared stepper motor

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


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


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


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


Convert servo to continuous motion

Linear actuators

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

Stepper motor linear actuator


Attributes: Super fast, super short stroke, momentary


Solenoid valves

Solenoid locks

Mechanical linkages:

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

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

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

chains / sprockets – https://www.servocity.com/html/sprockets___chain.html

Belts / pulleys  –timing belts, O Ring pulleys, cable pulleys

Power supplies:


computer power supplies, how to use computer power supplies

How to tell the capabilities of computer power supply


Wire gauge chart per amp 

Wire gauge chart diameter

multiconductor wire

Project 3 BOMs

Week 9 – more communications

Some more Asynchronous serial:

Asynchronous = UART

Multiple UART Arduinos

Adding Software Serial to Arduino

For long distance or many nodes – RS485

MIDI, Control sound and synthesizers from Arduino:

DMX, Control lighting and other theatrical and home automation:


Synchronous serial:

compare synchronous and asynchronous

Compare I2C and SPI


SPI schematic


SPI Potentiometer lab



I2C infrared temperature sensor lab

Shifting :


Row – Column schematic

Another Multiplexer (not serial, analog)


Project 2


1-Chang,Leia with Ratanavanh,Spencer , with Arthur Jr.,Bruce
2-Goel,Megha  with Trebisacci,Tatiana Tash
3-Guang,Kelin with  Zhou,Peiyu Eva
4-Rong,Luhan  with Xu,Shuchen with Han,Yuwen
5-Sodre,Pedro with Sun,Lindsey with  with Ngiam,Vivian
6-Lee,Kevin with with Selvabarathy,Suraj


4-Ke,Xiaoyu (Rockey)  with Li,Tony
5-Lu,Julia Margaret
7-Wang,Lifei  with Zhang,Yvonne
9-Worthington,Addison  with Aga, Adnan
11- Mai,Angel with Rodriguez Ostia,Lorena

Week 9 project2 workshop:

  • 10:40 – 11:00 :
    • 1 <-> 2
    • 3 <-> 4
    • 5 <-> 6
  • 11:00-11:20 :
    • 1 <-> 4
    • 3 <-> 6
    • 5 <-> 2
  • 11:20-11:40 :
    • 1 <-> 6
    • 3 <-> 2
    • 5 <-> 4
  • 5:00 – 5:20 :
    • 1 <-> 2
    • 3 <-> 4
    • 5 <-> 6
    • 7 <-> 8
    • 9 <-> 10 <-> 11
  • 5:20 – 5:40 :
    • 1 <-> 4
    • 3 <-> 6 <-> 8
    • 5 <-> 11
    • 7 <-> 10
    • 9 <-> 2
  • 5:40 – 6:00 :
    • 1 <-> 6
    • 3 <-> 11
    • 5 <-> 10 <-> 4
    • 7 <-> 2
    • 9 <-> 8

Class 7

diagram showing the path of a serial byte from Arduino to P5

Shawn’s p5.serialcontrol app


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 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


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
P5 and Arduino sketches for sending multiple values in ascii from P5 to Arduino with parseInt()


P5 and Arduino sketches for sending 3 values in ascii from Arduino to P5 with handshake

P5 and Arduino sketches for sending 3 values in ascii from Arduino to P5 with handshake with serial port selector menu

Project 1 teams


  • “Bruce Arthur”
  • “Kelin Guang”, “Peiyu Eva Zhou”
  • “Leia Chang”
  • “Spencer Ratanavanh”
  • “Pedro Sodre” , “Vivian Ngiam” , “Lindsey Sun” ,
  • “Shuchen Xu” ,  “Luhan Rong” , “Yuwen Han”
  • “Suraj Selvabarathy” , “Kevin Lee”
  • “Tatiana Trebisacci” ,  “Megha Goel”,


  • “Christina Cappelli”>, “Angel Mai”
  • “Julia Lu”,”Tony Li”
  • “Xiaoyu (Rockey) Ke” ,”Yvonne Zhang” ,
  • “Lorena Rodriguez Ostia” ,  “La’Kay Hodge” ,
  • “Maya Williams” ,
  • “Meijie Hu” ,   “Lifei Wang”,
  • “Addison Worthington” “Adnan Aga” ,
  • “Yeseul Oh” ,
  •  “Ziwei Ji”

Class 3

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
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
Arduino Nano 33 IOT pinout

How The class will run:

The most valuable thing we can do when we are in person or online in a class meeting together is to discuss and practice the subject that you’re learning. Any “lecture material” is on this site in video or written form, and assigned for the weeks where we will discuss it. I will expect that you’ve done the readings or watched the videos and tried the lab exercises assigned in advance of each class, and are coming to the class meetings with questions. Class meetings will be mainly discussions and shared demonstrations or experiments, not lectures. Use class time to get me or your classmates to clarify things you didn’t understand from the assigned material.

It’s okay if you couldn’t get a lab exercise or a project to work. When that happens, try to debug it, explain what you did in your blog, and come to class prepared to talk about the details and ask specific questions. Pay attention to your classmates’ work and their questions; quite often, they’ll be asking the same thing as you.

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. You’ll be divided into groups of 3. Pick a fantasy device from the list. Design 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:


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
Stewey’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:

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.