top of page

Unit Overview

Basics

  • Arduino

  • mBlock

  • Breadboard

  • Resistors

Outputs

  • LED

  • RGB LED

  • Servo

  • Buzzer

Inputs

  • Button

  • LDR

  • Thermistor

  • Water Sensor

  • Ultrasonic

Systems

  • Auto Fan

  • Treasure Guard

  • Smart Home (with Machine Learning)

Troubleshooting

 

How to overcome potential challenges in the unit

Basics:

2075382-40.jpeg
Arduino Uno

What is Arduino?

Arduino is a user-friendly electronics platform that is publicly accessible, meaning anyone can see, modify, and distribute the code as they see fit.

Arduino boards can read inputs such as light on a sensor or a finger on a button, and turn them into outputs that activate a motor and turn on an LED.

The Arduino Uno is the standard version of Arduino that is commonly used.

board-anatomy.png
Arduino Uno Basic Components

Within mBlock

Within mBlock.png
Within mBlock (1).png

Breadboard

Screen Shot 2023-05-21 at 9.01.11 AM.png

A breadboard is used to build and test circuits quickly before finalizing any circuit design. The breadboard has many holes into which circuit components like ICs (An integrated circuit (IC), sometimes called a chip, microchip or microelectronic circuit) and resistors can be inserted.

Resistors

Untitled-1-2.jpeg
ElectroRules. (2019). Introduction to Resistors. ElectroRules. https://www.electrorules.com/introduction-to-resistors/

As the name suggests, resistors resist the flow of electricity and the higher the value of the resistor, the more it resists and the less electrical current will flow through it.

Outputs:

We often use inputs and outputs to describe how a system works. An input is something that goes into the system, while an output is something that comes out of the system. Understanding inputs and outputs can help us understand how different systems work, from plants to machines to the human body. It's an important concept to learn in science, as it helps us make sense of the world around us.

Screen Shot 2023-05-21 at 10.03.44 AM.png

5MM LED

LED-Light-Transparent-Background (1).png
arduino-2168193_960_720.jpg

An LED is a small light (it stands for "light emitting diode") that works with relatively little power.

The Arduino board has one built-in on digital pin 13.

Activity

1.png
2.png

RGB LED

Common-Cathode-RGB-LED-Pinout.png

CircuitBread. (2021). RGB LED color mixing [Photograph]. CircuitBread. Link

The RGB LED is a type of LED that can produce many colors by combining red, green, and blue. It is made up of three individual LEDs, each one corresponding to one of the primary colors. These three LEDs are inside a single casing, and the RGB LED has four leads, one for each color, plus a common cathode or anode, depending on the type.

Activity

ezgif-3-e879c820b7.gif

The RGB LED will flash in different colors every second.

Learn Arduino Easy.png

Micro Servo

61sgp6PAwTS.jpeg

Micro servos are small motors used in Arduino Uno projects to control small movements with precision. They are commonly used in robotics, automation, and remote control systems.

Activity

Learn Arduino Easy.png

Buzzer

Screen Shot 2023-05-25 at 10.53.54 AM.png

A buzzer or beeper is an audio signaling device. Typical uses of buzzers and beepers include alarm devices and timers.

The red wire is for digital pins. 

The black wire is for ground (GND).

Activity

6.png

Outputs:

Screen Shot 2023-05-21 at 10.03.44 AM.png

Push Button

media.png

The push button has three pins: VCC (connect to 5V), GND, and OUT. The OUT pin should be connected to one of the analog pins. Ensure that your code and circuit connection are aligned, even if you choose only one analog pin.

MMagU-3YBPiEewPKvU_jnRnOs1ZXA2LPH0l4c2so6sFasQseZpPZxqEnv5aQP34nBxD3pU5En9PW6lAmLf3XnBKzj7

Use the push button to control LED.

Activity

7.png

LDR (Light Dependent Resistor)

4Zi8V8b2ZvIfWjVQv5uhfv5ieClS_HYogk1ITbxbHIMTjuLKiwW1WpzHI-NBzSUy0kTtJk_hZORV58LKbShmMU9fdj

The LDR is a special type of resistor that allows higher voltages to pass through it (low resistance) whenever there is a high intensity of light and passes a low voltage (high resistance) whenever it is dark. 

image1.gif

Use LDR as ‘light sensor’.

Activity

8.png

Thermistor

Screen Shot 2023-05-25 at 1.39.11 PM.png

Thermistors are variable resistors that change their resistance with temperature. They are classified by the way their resistance responds to temperature changes.

Activity

Water Sensor

Screen Shot 2023-05-25 at 1.45.56 PM.png

Connecting a water sensor to an Arduino is a great way to detect a leak, spill, flood, rain, etc. It can be used to detect the presence, the level, the volume and/or the absence of water. While this could be used to remind you to water your plants, there is a better Grove sensor for that. The sensor has an array of exposed traces, which read LOW when water is detected.

image1.gif

Activity

10.png

Ultrasonic Sensor

Screen Shot 2023-06-08 at 11.13.02 AM.png

An ultrasonic sensor is a device that uses sound waves to detect objects and measure distances. Ultrasonic sensors are commonly used in robotics and automation and can be easily integrated with an Arduino board to create interactive projects.

ggJpXt95Q_gvaUUQ7kWOltEaKQ9PEPznO8HBuyZwURn3sF6XvlWGDWKRBDJxDembmLtNKV9H9gwQ_ETtYXqROTyL8Y

Activity

11.png

Systems:

In this section, we will explore three systems that utilize the Arduino Uno board and the inputs and outputs we have previously covered.

These systems will demonstrate how the Arduino can be used to control and interact with the physical world.

Auto Fan

ezgif-3-7250c034f8.gif
12.png
13.png

Treasure Protection System

14.png
15.png

Smart Home System (with Machine Learning)

Machine Learning Intro

16.png
17.png

Troubleshooting:

The project doesn't work? Have you checked the following items?

  • Do the numbers in the code align with the physical circuit connection?

  • Are LEDs' pins connected correctly (longer one is positive, shorter one is negative)?

  • Have you used resistors?

  • Have you checked how breadboards connect?

  • Is your Arduino Uno updated with the firmware?

  • Have you tried different ports on your computers?

If you can't find your devices:

Screen Shot 2023-04-27 at 12.59.47 PM.png
media (2).png
media (3).png

If your live mode doesn't work:

Screen Shot 2023-04-27 at 1.01.01 PM.png

If you switch to Live Mode, make sure you update the firmware.

Screen Shot 2023-04-27 at 1.01.08 PM.png

After the update, you need to re-connect Arduino with laptop.

Difference between live and upload modes:

Screen Shot 2023-04-27 at 12.59.16 PM.png

Blocks For Upload Mode

Screen Shot 2023-04-27 at 12.58.54 PM.png

Blocks For Live Mode

bottom of page