Monday, September 7, 2015

Exploring Arduino Tutoral 2 and 3

Tutorial 2

-Analog uses PWM signals
-He uses a multimeter and puts it into diode mode
- When it is at 0 it means the the circuit is connected
Set up
-Ground to left rail
-5V to right rail
-Connect the button to the gap in the middle
-Using a 10k resistor connect one side to the ground and one side to the pin 8

He writes a code that when the button is held down the light turns on and when you let go the button turns off. When he rewrote the code he made it so that the switch bouncing. Bouncing means that the signal was going up and down before it stayed. So then he switched the code to fix it.
For the second part of it he had it set up to an analog PWM pin and he had the code command the LED to glow brighter with each button press.

Tutorial 3

Jeremy explains the Ohm Law and he explains how it is practical. If you connect an LED from ground to 5v then there is so much power that it uses and it could break the arduino.  It can also change the color of the LED. He demonstrates how using a resistor an regulate the flow of electricity. Pull down resistors make it so that the moving the wire or touching it doesn't change the electricity flow.
Voltage dividers are used for analog arduino. Using 2 resistors you can get the Voltage to be any value between ground and 5V

No comments:

Post a Comment