This project brings the 1st experience with Arduino UNO board and Arduino IDE (Integrated Development Environment), it contains some observation and exploration tasks to help newcomers getting familiar with the very basic tools and "work flow", some homework assignments included to enhance the experience. Goals:
Get to know what is Arduino UNO board, identify the most important parts on board
Get to know what is Arduino IDE, try the 1st programming
Help preparing your PC/laptop for programming toolchains for Arduino, try out the work flow
START A BIT > Projects Library > This page
This project contains several tasks, as well as some fun free work results by the students. Here is one example of the hardware wiring for digital input/output exercises.
[ ] Simple: 30-60 minutes
[ ] Moderate: 1-2 hours
[x] Challenging: more than 2 hours
The estimation bases on average situation without unexpected troubleshooting, assuming that the student meets prerequisites. It only indicates rough time needed to complete this project, but not about technical difficulty, not covering discussion and sharing time. Here is a possible breakdown:
30 minutes: Basic knowledge input, preparations, and Task 1: Install "Arduino IDE" Application
60 minutes: Task 2: First Experience with "Arduino IDE", and Digital Output
60 minutes: Task 3: Experience with "Arduino IDE" with Digital Input
20-30 minutes: Task 4: Knowledge test, reflection and discussion
One should have prior knowledge
Micro:bit and basic projects experiences
KB028: Arduino IDE Basic Knowledge, KB027: Arduino UNO Boards
Purpose: Prerequisite application preparation
For Windows, MacOS, Linux.
Download installer from https://www.arduino.cc/en/software
The instructions below are mostly based on this option.
For Chrombook, and any other OS with web browser.
Online web application, but still need to install a light-weight local application "Arduino Cloud Agent", when it needs, it will pop up and provide you the link to install.
Need a login account, OK to login with Google account.
Purpose: Get familiar with toolchains and the basic flow of making (connect, code, compile, download, test, etc.), practice digital output operation
Connect the Arduino UNO board to laptop with USB cable.
Select the connected device from Arduino IDE.
In Arduino toolchains, "Sketch" refers to the program files (with .ino extension) that contains the C/C++ codes. I.e. "Sketch" is the .ino file.
Create a new "Sketch", input the codes as example here.
Be careful with the writing and punctuation, formats, it's not necessary to understand the exact "what/how" for now, let's focus on the "work flow" steps in this task.
Check what target board you have got, update the pin ID accordingly
13 for Arduino UNO R3
25 for Arduino UNO WiFi Rev2
Click the "tick icon" for "Verify/Compile"
Observe the board, the built-in LED should blink, if it doesn't work, check the pin ID in source code, please make sure
13 for Arduino UNO R3
25 for Arduino UNO WiFi Rev2
Now, try to use other digital pins and wire 1 or many external LEDs, experiment some fun controlling using your codes.
Get reference of how to wire the LED from PJ001: External LED with Micro:bit, and KB006: Digital Input/Output
Some example ideas:
Rotating the on/off state of the build-in LED and the external LED in every half second
Build a traffic light (red+yellow+green) system, alternate the traffic signals
Purpose: Get familiar with toolchains and the basic flow of making (connect, code, compile, download, test, etc.), practice digital input operation
Arduino UNO board doesn't have built-in button, we need to build the hardware wiring, here is an example scheme.
Get reference of how to wire the LED from PJ002: External Button with Micro:bit , and KB006: Digital Input/Output
Create a new "Sketch", input the codes as example here.
Be careful with the writing and punctuation, formats, it's not necessary to understand the exact "what/how" for now.
Check what target board you have got, update the pin ID accordingly
13 for Arduino UNO R3
25 for Arduino UNO WiFi Rev2
Click the "tick icon" for "Verify/Compile"
Observe the board, the built-in LED should be on when button is pressed, otherwise the LED is off.
If it doesn't work, check the pin ID for built-in LED in source code, please make sure
13 for Arduino UNO R3
25 for Arduino UNO WiFi Rev2
This challenge uses combined digital input/output and external wiring.
pin 10 for external button
pin 11 for external LED
also uses built-in LED, mapped to pin 13 for UNO R3, pin 25 for UNO WiFi Rev2
Create a fun logic in program, here is an example, it uses the button to alternate the on/off between the 2 LEDs.
Below are some examples of the hardware wiring, you can use either type of button provided by the tutor, use breadboard or even just direct connection using alligator clips.
Purpose: Enhance basic knowledge understanding, reflect and summarize what we have learnt
Go to this test: https://forms.gle/dxT43ZNcHChnPYF17
No time limit, but should be possibly done within 15 minutes
Follow the tutor to take 5-10 minutes to review the questions and answers, correct some possible misunderstood issues or faults
Take 1-2 minutes to explore anything on the tools and the making flow, with curiosity, no matter how much prior knowledge you have, you should make
At least 1 interesting finding
At least 1 curious question