Author Archive:amber

Byamber

Graphical Programming Tutorials for Arduino


Authorzied Amazon Seller

Buy from US Buy from CA Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Graphical Programming Tutorials for Arduino

Tutorials Link
Lesson 1:Introduction of Graphical Programming for Arduino Detailed Tutorial
Lesson 2:An Introduction to Mixly Detailed Tutorial
Lesson 3:Blinking the On-board LED Detailed Tutorial
Lesson 4:Hello World Detailed Tutorial
Lesson 5:Control an LED Detailed Tutorial
Lesson 6:Using a Button Detailed Tutorial
Lesson 7:Eight of Flowing Water Light Detailed Tutorial
Lesson 8:Breathing LED Detailed Tutorial
Lesson 9:RGB LED Detailed Tutorial
Lesson 10:Potentiometer Control LED Detailed Tutorial
Lesson 11:Relay Detailed Tutorial
Lesson 12:One Digit 7-Segment LED Display Detailed Tutorial
Lesson 13:Using 74HC595 with 7 Segment LED Display Detailed Tutorial
Lesson 14:I2C LCD1602 Display Detailed Tutorial
Lesson 15:DHT11 Detailed Tutorial
Lesson 16:Using the DHT11 with I2C 1602 LCD Display Detailed Tutorial
Lesson 17:Using an Active Buzzer Detailed Tutorial
Lesson 18:Ultrasonic Sensor HC-SR04 Detailed Tutorial
Lesson 19:PIR Motion Sensor Detailed Tutorial
Lesson 20:Ultrasonic Range Finder Detailed Tutorial
Lesson 21:Servo Detailed Tutorial
Lesson 22:Sound Detection Sensor Detailed Tutorial
Lesson 23:Photoresistor Detailed Tutorial
Lesson 24:Traffic Light Controller Detailed Tutorial
Lesson 25:Digital Dice Detailed Tutorial
Lesson 26:Use the Push-Button as a Switch Detailed Tutorial
Lesson 27:IR Remote Receiver Module and Controller Detailed Tutorial
Lesson 28:Infrared Remote Control the Lamp Detailed Tutorial
Lesson 29:Acousto-optic Light Control Detailed Tutorial
Lesson 30:IR Track Sensor Detailed Tutorial
Lesson 31:Simple Number counter Detailed Tutorial
Byamber

Package List — Starter Learning Kit for Arduino


Authorzied Amazon Seller

Buy from US Buy from CA Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Packing List

UNO x1
LED Pack(6 x Bright White, 6 x Red, 6 x Yellow, 6 x Green) x1
Push Buttons x5
Positive Buzzer x1
Potentiometer(10kilohm adjustable resistor) x3
Photoresistor(light sensor) x3
TMP36 x1
Tilt sensor x1
Infrared Remote Controller and Receiver(VS1838B) x1
1-digit 7 Segment LED Display(Common cathode) x1
4-digit 7 Segment LED Display(Common cathode) x1
Alphanumeric I2C LiquidCrystal Display(16×2 LCD ) x1
Stepper Motor+Bridge x1
SG90 Micro Servo Motor x1
Resistors Package (20 x 200ohm, 20 x 1Kohm, 20 x 10Kohm, 5 x 1Mohm) x1
Jumper Wires Pack(M/M Jumper x 20,F/F Jumper x 20, M/F Jumper x 20) x1
Full Size Breadboard x1
A to B USB Cable x1
Capacitors (100nF x 5, 10nF x 5)
74HC595 x 2
555 Timer IC
2-Channel Relay Module
PIR Motion Sensor
Sound Detection Sensor
Ultrasonic Sensor HC-SR04
DHT11 Sensor
8×8 LED Matrix
RGB LED
Battery Clip
Acrylic test stand
Phillips screwdriver
Byamber

Graphical Programming Tutorial for Arduino – Basic Car Robot

Introduction

In the previous course, we learned how to use the Arduino development board and how to drive a DC motor. Now, we will use this kit to build a basic car robot. We will burn the pre-edited program to the UNO board. Once the robot gets power, it will go straight or rotate along a set trajectory.

Preparations

HARDWARE

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • DC Motors x 2
  • L293D x 1
  • Wheels x 2
  • Breadboard
  • Acrylic experimental platform
  • Screws/Screw caps
  • Metal Motor Holders
  • Universal wheel
  • Battery Box with DC Connector
  • Batteries(7~12V DC)
  • F/M jumpers
  • USB Cable x 1
  • PC x 1

Hardware Installation

Place the acrylic platform as shown below. Fix the UNO board and breadboard to the acrylic platform.

Turn the acrylic platform over and install the universal wheel.

Note: When installing the screw, the force should be uniform so as not to damage the acrylic plate.

Install the corresponding screws.

Fix the metal motor holders.

Install wheels

Fix DC motor to the acrylic platform.

Extend the wire from the hole in the motor。

Flip the acrylic platform and insert the L293D chip into the breadboard。

Byamber

Graphical Programming Tutorial for Arduino – Simple Number counter

Introduction

This project demonstrates how you can use Arduino to count the number of people that come in and out of a mall using two sensors。

Sensors need to be placed at the entrance and exit points of the park to work as expected. Basically, you increase the number of times everyone comes in, and decrease the number of times they go out.

HARDWARE

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • I2C LCD 1602 Display x 1
  • PIR Motion Sensors
  • F/M jumpers
  • USB Cable x 1
  • PC x 1

Connection

Before you write the code you have to build the circuit. To do this, connect the LCD pins as follows:

Osoyoo UNO LCD1602
GND GND
5V VCC
A4 SDA
A5 SCL

Note:

  • For Mega2560: the I2C connections are on SDA=20 and SCL=21. So go ahead and wire these up, along with the two power leads to the 5V and GND terminals.
  • For Arduino Leonardo: connect SDA to digital pin 2 and SCL to digital pin 3 on your Arduino.

Overhere, we connect the first PIR sensor to D2 of the UNO board, the other to D3. From sketches of Fritzing, you can look at the connections to be done in a simpler way:

CODE PROGRAM

After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Graphical Programming software Mixly and follow the next operations:

Click Save aftogramming is done. Select the board type and serial port to upload the code to the UNO board.

Running Result

Every visitor comes in(D2 triggers interruption), the number of parks on the display is increased by one. Every time a visitor goes out(D3 triggers interruption), the number of parks on the display is reduced by one..

Byamber

Graphical Programming Tutorial for Arduino – IR Track Sensor

Introduction

The OSOYOO IR Track Sensor is essentially an IR LED and an IR detector. It works by transmitting a beam of IR light downward toward the surface. In this lesson, we will show you how the IR Track Sensor works and how to use it with the Osoyoo Uno board.

Preparations

HARDWARE

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • IR Track Sensor x 1
  • Jumpers
  • USB Cable x 1
  • PC x 1

About OSOYOO IR Track Sensor

The OSOYOO IR Track Sensor is essentially an IR LED and an IR detector. The IR emission tube of track sensor constantly emits infrared light. Since the black absorbs light, when the IR emission tube shines on a black surface, the reflected light is less and so less IR rays are received by the receiving tube. It indicates the resistance is large; then the comparator outputs high and the indicator LED goes out. Similarly, when it shines on a white surface, the reflected light becomes more. So the resistance of the receiving tube is lower; thus, the comparator outputs low and the indicator LED lights up.

When the infrared transmitter emits rays to a piece of paper, if the rays shine on a white surface, they will be reflected and received by the receiver, and pin D0 will output low level; If the rays encounter black lines, they will be absorbed, thus the receiver gets nothing, and pin D0 will output high level.

This acts like a simple switch when it gets close to a white / black object. You can adjust the sensitivity with the potentiometer. It uses a LM393 Comparator chip and track sensor for clean outputs.

Sensitivity: About 1 inch (2.5cm) from white paper, about 1 cm from a person’s finger.

Examples

IR LINE TRACKING

In this experiment, we will use an IR track sensor module and the on-board LED to build a simple circuit to make a tracking line. Since the LED has been attached to pin 13, connect the pin D0 to digital pin 2 of the Uno board. When the tracking sensor detects reflection signals (white), the LED will be on. Otherwise, it will be off (black line).

Note: The sensitivity of the infrared sensor is adjustable – you may adjust it by the potentiometer.

CONNECTION

Build the circuit as below digram:

OSOYOO UNO Track Sensor
+5V VCC
GND GND
D2 D0

CODE PROGRAM

After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Graphical Programming software Mixly and follow the next operations:

Select the serial device of the Arduino board from the COM menu. Upload the code to the UNO board.

RUNNING RESULT

A few seconds after the upload finishes, set it down on a piece of paper with a dark line (at least ½” wide). You may use a Sharpie Marker, electrical tape, or dark paint. When the module gets on a black line, it output high and the corresponding LED stays off, the Serial Monitor output: “Detect: Black!”;

when it meets a white area, it outputs low and the LED lights up, the Serial Monitor output: “Detect: White!”.

Note: The black line should be wider than the IR track sensor.

Byamber

Graphical Programming Tutorial for Arduino – Electronic Candle

Introduction

LED candles are very common these days. It’s easy to see the attraction — there’s no fire danger and they never need to be replaced (just batteries). But there’s such a wide variation in price and quality that it’s hard to know what to purchase. Some store-bought candles flicker very realistically, others just seem to blink. Some use plain white LEDs, some look like real flames.

In this lesson, we’ll show you how to use sound sensor, light sensor and LED with OSOYOO UNO to build an electronic candle.

Connection

You connect the components as shown in the diagram below. Connect the LED to pin 9 of the Arduino. The 200 ohm resistor is current limiting resistor. One lead of the photo resistor is connected to 5V, the other to one lead of the 10k ohm resistor. The other lead of the 10k ohm resistor is connected to ground. This forms a voltage divider, whose output is connected to pin A0 of the Arduino. Use the A1 as the analog pin to connect with the sound sensor’s A0 pin.

As the light impinging on the photoresistor gets stronger, the resistance decreases, and the voltage output of the divider increase. The reverse happens, when the impinging light gets weaker.

CODE PROGRAM

After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Graphical Programming software Mixly and follow the next operations:

Click Save aftogramming is done, then upload the code to the UNO board.

Running Result

When the brightness is dark, the candle “lights up”, the flame flashes, and the sound of blowing the candle, the candle extinguishes.

Byamber

Graphical Programming Tutorial for Arduino – Acousto-optic Light Control

Introduction

In this lesson, we will show how to use the photoresistor and sound sound sensor to work with the OSOYOO UNO board to control an LED. This project effectively simulates the acoustooptic light control in our daily life. In the daytime, when the corridor is not dim in the sunshine, even if the sound is loud, the corridor light will not turn on; in the night, as long as the sound exceeds the set value, the light will turn on.

HARDWARE

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • Breadboard x 1
  • Photoresistor x 1
  • Sound Sensor Module x 1
  • 10k ohm resistor x 1
  • 200 ohm resistor x 8
  • LED x 8
  • Jumpers
  • USB Cable x 1
  • PC x 1

Connection

You connect the components as shown in the diagram below. Connect the LED to pin 9 of the Arduino. The 200 ohm resistor is current limiting resistor. One lead of the photo resistor is connected to 5V, the other to one lead of the 10k ohm resistor. The other lead of the 10k ohm resistor is connected to ground. This forms a voltage divider, whose output is connected to pin A0 of the Arduino. Use the A1 as the analog pin to connect with the sound sensor’s A0 pin.

As the light impinging on the photoresistor gets stronger, the resistance decreases, and the voltage output of the divider increase. The reverse happens, when the impinging light gets weaker.

CODE PROGRAM

After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Graphical Programming software Mixly and follow the next operations:

Click Save aftogramming is done. Select the board type and serial port before uploading. For instause a Uno board, just select Arduino/Genuino Uno: if you use a Mega2560, select Arduino/Genuino Mega or Mega2560.

Select the serial device of the Arduino board from the COM menu. This is likely to be COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). To find out, you can disconnect your Arduino board and re-open the menu; the entry that disappears should be the Arduino board. Reconnect the board and select that serial port.

Next,upload the code. If the uploading fails, check and correct the code according to the prompts.

Finally, the staus will change to ‘Upload success!’.

Running Result

A few seconds after the upload finishes, when the light is dim and the sound in the environment is louder than the set value, the LED will be lit up.

Byamber

Graphical Programming Tutorial for Arduino – Infrared Remote Control the Lamp

Introduction

In this lesson, we will show how to use the IR control an LED. When we press the “OK” button, the LED will be turned on, and when we press the “OK” button again, the LED will be truned off.

Preparations

HARDWARE

  • Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1
  • Infrared Receiver x 1
  • Remote Controller x 1
  • LED x 1
  • 200 ohm Resistor x 1
  • Breadboard x 1
  • Jumpers
  • USB Cable x 1
  • PC x 1

Connection

Build the circuit as below:

CODE PROGRAM

After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Graphical Programming software Mixly and follow the next operations:

Click Save aftogramming is done. Select the board type and serial port before uploading. For instause a Uno board, just select Arduino/Genuino Uno: if you use a Mega2560, select Arduino/Genuino Mega or Mega2560.

Select the serial device of the Arduino board from the COM menu. This is likely to be COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). To find out, you can disconnect your Arduino board and re-open the menu; the entry that disappears should be the Arduino board. Reconnect the board and select that serial port.

Next,upload the code. If the uploading fails, check and correct the code according to the prompts.

Finally, the staus will change to ‘Upload success!’.

Running Result

A few seconds after the upload finishes, press the “OK” button of a remote controller, the LED attached connected to D12 will be light up. Then press “OK” again, and the LEDs will go out.