Tuesday, October 18, 2022
Ohm's Law
Wednesday, October 12, 2022
Lecture 3. Arduino IDE
The interface
- The check mark is used to verify the code if there is an error.
- The arrow button uploads the code to arduino.
- 'New' opens a new window to code.
- 'Save' saves the code as an Arduino sketch.
There are 2 functions when you open a new sketch.
- void setup() {}
- void loop() {}
Tinkercad.com
"TinkerCAD" uses the same C++ code as Arduino IDE . Whatever block code you pick in TinkerCad, it'll also be translated to text code.
The setup function and pinMode
In 'setup' function, we tell our program to engage an Arduino pin by writing the function 'pinMode(,)' & in its parameters, we tell which pin number to engage & if we want to take its output or input from Arduino. Output means to take voltage out of Arduino while we use 'input' when we attach sensors because they are giving pulse to Arduino.
The loop function and digitalWrite
Sunday, October 9, 2022
Using a Multimeter
Wednesday, October 5, 2022
Single LED with Arduino
I powered Arduino with USB cable from my Laptop. I used a wire from 5v of arduino uno to the positive rail of a breadboard. Then I connected 470 ohms resistor with positive rail of the breadboard, so the LED doesn't blow up (LED needs 20.00 mA else it will blow up or not work). I connected the anode of a LED with the resistor. Then I connected the carhode leg of LED with the negative rail of the breadboard. Finally I connected GND of Arduino to negative rail of the breadboard. That's it, the LED lights up!
Series Circuit Calculations
What is a Series Circuit? A Series Circuit is a circuit in which the current has a single path to flow. Calculating a Series Circuit: We can...

-
The interface The check mark is used to verify the code if there is an error. The arrow button uploads the code to arduino. 'New' o...