Hardware
- RGB module (37 Sensor)
- Breadboard x 1
- Wires
Arduino Programming Language
- int: Variables/Data Types
- begin(): function/communication/serial
- println(): function/communication/serial
- pinMode(): Functions/Digital I/O
- digitalWrite():Functions/Digital I/O
- delay(): functions/Time
- if: Structure/ control structure
- else: Structure/ control structure
- Comparison operators:
Task 1
Compete the task 2 without teacher’s instruction or assistant. Students are freely to access to internet to search relevant information/examples/resource to get the task done. Students should able to demonstrate a good self-learning and trouble shooting skills.
Task 2
develop a program to control the RGB LED module to change the color and also with the dimming effect. Students must use PWM signal for the pin connection and for loop for the dimming effect control.
Technical key point
- PWM signal
- For loop