COMPUTER LITERACY
Arduino Programming
Lesson 1
___
AIM
Introduction to an online Arduino Programming tool, Tinkercad. https://www.tinkercad.com/
2
MARKING SCHEME
Task 1
A Login and create a new circuit
1. Login https://www.tinkercad.com/ using google account.
1 mark
2. Click ‘Circuits’.
3
3. Click ‘Create new Circuit’.
B Make a Circuit with 1 LED
2 marks
Light Emitting Diode
LED: 0 resistance Ohm
4
1. Connect a circuit with 1 LED, 1 resistor and 1 9V battery.
- The long leg of the LED and the red color represents
the positive (+) terminals. They should be connected
together.
- The short leg of the LED and the black color
represents the negative (-) terminals. They should be
connected together.
2. Start the simulation and the LED will light up. Check the
connection of the black and red terminals if it does not light up.
3. When you click the LED, you can change the color of it from the
menu.
5
4. What will happen if the resistor is omitted? Try it.
C Make a Circuit with 3 LEDs
2 marks
1. Connect a circuit with 3 LEDs, 1 resistor and 1 9V battery.
2. Start the simulation and the LED will light up.
D Capture this screen (“print scr” key in computer) and submit your
work as arduino1.jpg in Google Classroom.
Task 2
E Output : Lighting up an LED
5 marks
1. Connect an Arduino Nano / Uno with an LED.
6
2. Pay attention to the correct connection of each pin.
3. Code the following to make the light flash.
7
4. Click ‘Start Simulation’.
5. The LED flashes with a warning.
6. A
7. .
8
F Capture this screen (“print scr” key in computer) and submit your
work as arduino2.jpg in Google Classroom.
G Bonus: Simulation of Traffic Light Signal 2 marks
Only the green light is turned on for 8 seconds.
Then, only the yellow light is turned on for 2 seconds.
Then, only the red light is turned on for 10 seconds.
Then, only the yellow light is turned on for 2 seconds.
Then, only the green light is turned on for 8 seconds.
9
Then, only the yellow light is turned on for 2 seconds.
Then, only the red light is turned on for 10 seconds.
Then, only the yellow light is turned on for 2 seconds.
etc…