Fundamental of Electronics
- Resistor x 3+
- LED x 3+
- Breadboard x 1
- Wires
Arduino Programming Language
- Float: Variables/Data Types
- Int: Variables/Data Types
- begin(): function/communication/serial
- print(): function/communication/serial
- println(): function/communication/serial
- analogRead(): functions/analog I/O
- pinMode(): Functions/Digital I/O
- digitalWrite(): Functions/Digital I/O
- if: Structure/ control structure
- else: Structure/ control structure
Comparison operators:
- != (not equal to)
- < (less than)
- <= (less than or equal to)
- == (equal to)
- > (greater than)
- >= (greater than or equal to)
Boolean Operators
Task 1 Develop a circuit that allowed the user to use potentiometer to control the switch ON/OFF of one LED. also develop a program associate with the circuit to perform the operation.
Objectives of practice:
- Awareness of the direction of LED, Anode vs Cathode
- Practice with using potentiometer
- Practice with serial communication
- Understanding how to use if and else statement
- Familiar with comparison Operators and Boolean Operators
- Practice with Fritzing software
Task 2 Modify the circuit and the program that allowed the user to use the potentiometer to control the switch of three or more LEDs. The LED should be ON as the voltage across the potentiometer increase. And will switch OFF as the voltage decrease.
Objectives of practice:
- Awareness of the direction of LED, Anode vs Cathode
- Practice with serial communication
- More practice with how to use if and else statement
- More practice with using Comparison operators and Boolean operators
- Practice with Fritzing software
Task 3 Modify the program (and the circuit if necessary) to develop different control patterns LEDs switch ON/OFF.
Objectives of practice:
- More practice with how to use if and else statement
- More practice with using Comparison operators and Boolean operators