Basic Electronics
Table of Contents
Ohm's law states that the current through a conductor between two points is directly proportional to the voltage across the two points. Introducing the constant of proportionality, the resistance, one arrives at the usual mathematical equation that describes this relationship
$$I = \frac{V}{R} \ \ \ \ \text{or} \ \ \ \ V = IR$$
where $V$ is the voltage, $I$ is the current, and $R$ is the resistance.
Resistor power rating
The power rating of resistors can be calculated using the formula
$$\text{Power} \ (P) \ = \ V \cdot I \ = \ I^2R \ = \ \frac{V^2}{R}$$
Resistors in series
The total resistance $R_{tot}$ of the resistors in series is
$$R_{tot} = R_{1} + R_{2} + R_{3} + \cdot \cdot \cdot + R_{n}$$
Series connected resistors have a common current flowing through them
Resistors in parallel
The total resistance $R_{tot}$ of the resistors in parallel is
$$\frac{1}{R_{tot}} = \frac{1}{R_{1}} + \frac{1}{R_{2}} + \frac{1}{R_{3}} + \cdot \cdot \cdot + \frac{1}{R_{n}}$$
Parallel resistors have a common voltage across them
Reference: https://itp.nyu.edu/physcomp/labs/labs-electronics/components/
<img src = "./image_files/leds1.jpg" style="border:1px solid black", width =400>
https://physics.ucsd.edu/neurophysics/courses/physics_120/resistorcharts.pdf
https://learn.sparkfun.com/tutorials/what-is-an-arduino
What is an Arduino
What can it do
This flexibility combined with the fact that the Arduino software is free, the hardware boards are pretty cheap, and both the software and hardware are easy to learn has led to a large community of users who have contributed code and released instructions for a huge variety of Arduino-based projects
For everything from robots and a heating pad hand warming blanket to honest fortune-telling machines, and even a Dungeons and Dragons dice-throwing gauntlet, the Arduino can be used as the brains behind almost any electronics project
What is on the board
Getting Started
Go to www.arduino.cc to download the latest version of the Arduino software (Direct link: http://arduino.cc/en/Main/Software and select your operating system; in this case we are using Windows)
Download either the installer version or ZIP version for non admin install
Launch the Arduino software by double-clicking the Arduino icon
Arduino Software Interface
After the installation process is finished and the Arduino is running, you will find a white screen with different shades of green.
The main headings are “File” “Edit” “Sketch” “Tools” “Help” and several shortcut icons beneath “Verify”, “Upload”, “New”, “Open”, “Save”, and at the far right, the “Serial Monitor”. Note that all these icons are also available from the main menus.
In the software, select “Tools” $\rightarrow$ “Board” $\rightarrow$ You will get a list of possible boards. If you have a different board, select it from the drop-down list; Arduino/Genuino Uno should be selected.
In the software, select “Tools” -> “Serial Port” -> COM # (note that if you have several COM ports, you will need to go to Device Manager to see which COM port is assigned to your board. Once the whole process is finished, you’re now ready to start coding!
%%javascript
$.getScript('https://kmahelona.github.io/ipython_notebook_goodies/ipython_notebook_toc.js')