Week 2: Sep 21, 2022

Lab Digital Input and Output with an Arduino

1- Adding Digital Inputs

Inclass : Learned the application called  “Fritzing” : software that allows build more permanent circuits from prototypes.


Add Digital Outputs (LEDs)

1- Program the Arduino

Analog In with an Arduino

1 - Add a Potentiometer and LED

2 - Two FSR (force-sensing resistors) and two LEDs attached to an Arduino. First I had to understand the Arduino nano pin out value for the Numbering part.

First try: I didn’t got the fading effect ( Red light just on and off becuase of NOT using pulse one.)

Second Try: works well!

In class lab

LED Lighting up

one LED

both LED blinking together


one led is flashing and the other led is flashing and it is happening at the same time 

#define delayAmount 100 -> faster 

#define delayAmount 1000 -> slower

Using if statement 


if statement

In class notes

  • Current = Amperes (I)

  • Voltage = Volt (V)
energy potentia lresistance - mesured in ohms

  • Resistance = Ohms(R)

Circuit : conductors, powers, load  
If we don’t have a load it’s a short circuit

A: Power regulator

Order of Regulator ( IGOE )
B- Switch
C- Fixed value Resistor
E- Ground

︎︎︎job of this resister to do:
hold three volts. knock down three volts out of our equation. So this will get 2 volts r= v/I
3= 20ma(0.02)
3/0.02= 150Ohms