Lecture 6
Making Things Get Smart
Making Things Get Smart
Elements of Circuits
Voltage Sources: Adapters - Batteries - Solar Cells
Output Devices: Motor - Heater - Speaker - Lamp - ...
Input Devices: Microphone - Light Sensor - Proximity - ...
What is a Smart thing?
Takes Inputs ------ > Compute what should happen ------ > Do the right Actions
How to Compute using Electricity
Electronic Circuits: Switching - Memory - Timed Actions - ...
Specialized Integrated Circuits: Example
Writing the code
Upload the code
Wiring to the circuit
Arduino is many things:
Circuit Boards (opensource)
Arduino Programming language
Arduino IDE Software
Arduino ready codes and Libraries
Arduino Shields and Modules
Arduino versions
Uno
what else? and why UNO?
Tour through Arduino UNO board
ATmega328
Crystal
USB Port
USB Programmer
Power Port
Voltage Regulator
Reset Button
Power Pins
Pin 0 and 1
Pin 2 to 13
Pin A0 to A5
(~) Pins
Getting Started with Arduino Programming
Setup Arduino IDE
Connect the Arduino
Open/Write the Code
Select the Board and Port
Upload the Code
Setup and Loop
Experiments
Taking Actions
Digital Output [Blink]: Buzzer - Motor
Analog Output [Blink]: LED levels - Fade
Data Outputs [servoSweep]
Reading Inputs and Taking Actions
Digital Input [Button]: wire - pushbutton - sensor
Serial Monitor [digitalReadSerial]
Analog Input [AnalogOutSerial]: LED with Pot
Tinker CAD
Easter Eggs