Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for Uctronics Ultimate Starter Kit for Arduino

  • Page 4 Component List Name Picture UNO R3 / MEGA2560 R3 UNO R3 / MEGA 2560 R3 Proto Shield V3 400 Tie / 830 Tie Point Breadboard 65 Male to Male Jumper Wire 15cm Male to Female DuPont Wire USB Cable 9V Battery Clip 9V 1A Power Supply 220Ω...
  • Page 5 Name Picture SS12D00G3 Switch Power Supply Module for Breadboard 5mm Green LED 5mm Yellow LED 5mm Blue LED 5mm Red LED 74HC595 IC 6x6x5mm Button 5mm RGB LED 5V Active Buzzer 16R Passive Buzzer S8050 NPN Transistor...
  • Page 6 Name Picture S8550 PNP Transistor SW520D Tilt Switch 7-Segment Display GL5528 Photo Resistor 5V Relay Module 1N4007 Diode 1N4148 Diode 4-bit 7 Segment LED SG90 9g Servo DC Motor L9110 DC Motor Driver IC...
  • Page 7 Name Picture Stepper Motor ULN2003 Stepper Motor Driver PIR Motion Sensor 1602 LCD 10K Potentiometer 502 5K Thermistor DHT11 Temp & Humi Sensor Joystick Module HC-SR04 Ultrasonic Sensor HX1838 IR Receiver 21 keys Remote Controller 10 Segment LED...
  • Page 8 Name Picture 4x4 Matrix Keyboard RTC Module Water Lever Sensor Sound Sensor Module MAX7219 8x8 LED Module NE555 Timer Ceramic Capacitor (104 100nf) 10uF Electrolytic Capacitor MPU-6050 Module Rotary Encoder Module ESP8266 Module...
  • Page 9 Prerequisite Install Arduino IDE The Arduino software IDE Integrated Development Environment (IDE) allows you to write programs and upload them to your board. Here, you will learn how to set up the software to program your board. Step 1: Go to the Arduino download page: https://www.arduino.cc/en/Main/Software shown in Figure 1.
  • Page 10 Step 3: Double click the "windows.exe" file to the following dialog box and then click "I Agree" and then click "Next". Step 4: Click "Browse" to choose the installation path or enter a directory at the Destination Folder. Click "Install" to initiate installation. Step 5: After installation ended, click "Close"...
  • Page 11 Step 6: When the dialog box pop us like Figure 2 shown, Select Always trust software for "Adafruit Industries" and click "Install". Step 7: When the installation is done, click "Close". Then an Arduino icon will appear on the desktop:...
  • Page 12 Add Libraries and Open Serial Monitor Add Libraries Libraries are a collection of code that makes it easy for you to connect to a sensor, display, module, etc. For example, the built-in LiquidCrystal library makes it easy to talk to character LCD displays.
  • Page 13 Compile and download program. Click the tools to select the correct board and the port you're using as shown in figure 4 and figure 5. Figure 4 Select Board Figure 5 Select Port Click the verify icon to compile and make sure your program is correct and then click the upload icon to download the program shown in Figure 6 and Figure 7.
  • Page 14 communicates by receiving and sending serial data. The serial monitor is the 'tether' between the computer and your UNO. It lets you send and receive text messages, handy for debugging and also controlling the UNO from a keyboard. See the icon on the upper right of Figure 8. You just need to click the serial monitor icon to open it.
  • Page 15 Lessons Lesson 1 Blink and Breathing LED Overview In this project, you will learn the simplest thing you can do with an Arduino and see physical world by blinking the on-board LED and without doing any programming. Second step, you will learn how to use the PWM square-wave signal to control the external LED as a breathing lamp which gradually becomes brighter and then gradually becomes dark.
  • Page 16 to protect the LED. Otherwise, it will burn out! In the following connection schematic, you will see the picture shown "+" "-" In the wiring diagram, the longer pin (the curved pin) represents anode, the opposite one is cathode. In the first step experiment we blink the onboard LED by tuning it on and off, the brightness of LED can't be changed.
  • Page 17 Wiring Diagram Result LED is lit up and went out gradually like breathing.
  • Page 18 Lesson 2 LED Flowing Lights Overview In this lesson, you will master how to use eight large red LEDs with an UNO or MEGA2560 board without using up 8 output pins. Components required Name Name UNO R3 or MEGA 2560 220Ω...
  • Page 19 control the brightness of the LEDs. This pin is active low, so in this lesson we tie it to GND. Connection Schematic UNO R3/ Mega 2560 220R /RESET 74HC595 AREF 220R GND2 GND1 220R SH_CP ST_CP 220R 220R 220R 220R ARDUINO-NOHOLE 220R Wiring Diagram...
  • Page 20 Lesson 3 Digital Inputs-Switches Overview In this lesson, you will master how to use buttons with digital inputs to turn LED on and off. Components Required Name Name UNO R3 or MEGA 2560 220Ω Resistor 5mm Red LED DuPont Wire Push Switches Breadboard Component Introduction...
  • Page 21 Lesson 4 Controlling a RGB LED by PWM Overview In this lesson, you will master how to program the UNO R3 or MEGA 2560 board for RGB LED control and make RGB LED emits a variety of colors. Components Required Name Name UNO R3 or MEGA 2560...
  • Page 22 Wiring Diagram Result The RGB LED emit red, green, blue, yellow, white and purple light. Each color will last for 1s then change to another color in turns.
  • Page 23 Lesson 5 Active Buzzer Overview In this lesson, you will learn how to generate a sound with an active buzzer. Components Required Name Name UNO R3 or MEGA 2560 1KΩ Resistor Active Buzzer NPN Transistor (S8050) Breadboard DuPont Wire Component Introduction A buzzer or beeper is a device which can generate audio.
  • Page 24 Wiring Diagram Result The buzzer will ring for 2s and then mute for 2s.
  • Page 25 Lesson 6 Playing Music Overview In this lesson, you will learn how to program the UNO R3 or MEGA 2560 board to control a passive buzzer, and then make the passive buzzer play music. Components Required Name Name UNO R3 or MEGA 2560 1KΩ...
  • Page 26 Wiring Diagram Result The passive buzzer will play music, and the LED blink simultaneously.
  • Page 27 Lesson 7 Tilt Ball Switch Overview In this lesson, you will learn how to use a tilt ball switch in order to detect small angle of inclination. Components Required Name Name UNO R3 or MEGA 2560 DuPont Wire Tilt Ball Switch 220Ω...
  • Page 28 Wiring Diagram Result When the sensor tilts to a certain angle, the LED will light up. When the sensor tilts in the opposite direction, the LED will be extinguished.
  • Page 29 Lesson 8 7-segment display Overview In this lesson, you will learn how to program the UNO R3 or MEGA 2560 board to control the segment display. Components Required Name Name UNO R3 or MEGA 2560 220Ω Resistor 7-Segment Display DuPont Wire Breadboard Component Introduction The seven-segment display is a type of electronic display device for displaying...
  • Page 30 Connection Schematic UNO R3/ Mega 2560 /RESET AREF GND2 GND1 c dp ARDUINO-NOHOLE Wiring Diagram Result The characters "1 2 3 4 5 6 7 8 9" will be shown on the 7-segment display one by one.
  • Page 31 Lesson 9 Photoresistor Overview In this lesson, you will learn how to measure light intensity using an Analog Input and use the level of light to control the number of LEDs to be lit up. Components Required Name Name UNO R3 or MEGA 2560 Breadboard 220Ω...
  • Page 32 Wiring Diagram Result The stronger light the photoresistor received, the more LEDs will light up.
  • Page 33 Lesson 10 Relay Overview In this lesson, you will learn how to control a relay to connect or disconnect a circuit. Components Required Name Name NPN Transistor (S8050) Relay 1KΩ Resistor 1N4007 Diode DuPont Wire Breadboard Component Introduction A diode is a two-terminal electronic component that conducts primarily in one direction (asymmetric conductance);...
  • Page 34 Wiring Diagram Result The LED is lit. When a little sound is from the terminal connection, the port COM is connecting to the port NO at the same time. The LED will be turned off after 2s, and then the port COM is connecting to the port NC.
  • Page 35 Lesson 11 4-Digit 7-Segment Display Overview In this lesson, you will learn how to use a 4-digit 7-segment display. Components Required Name Name UNO R3 or MEGA 2560 4-bit 7-segment Display 74HC595 IC 220Ω Resistor Breadboard DuPont Wire Component Introduction The four-digit segment display is an 4x8-shaped LED display device composed of 32 LEDs (including four decimal points), these segments respectively named a, b, c, d, e, f, g, h, dig1, dig2, dig3, dig4.
  • Page 36 Wiring Diagram Result The character "1 2 3 4 5 6 7 8 9 a b c d e f" shown on 4-bit 7-segment display one by one, the interval is 0.5 seconds.
  • Page 37 Lesson 12 Servo Motor Overview In this lesson, you will master how to control a servo motor with the UNO R3 or MEGA 2560 board. Components Required Name Name UNO R3 or MEGA 2560 DuPont Wire Servo (SG90) Component Introduction Servo motor is a kind of geared motor that can rotate with a certain angle according to the input pulse's frequency an duty cycle.
  • Page 38 Lesson 13 DC Motor Overview In this lesson, you will learn how to control a small DC motor by an UNO R3 or MEGA 2560. Components Required Name Name UNO R3 or MEGA 2560 3-6V Motor L9110 9V1A Adapter Power Supply Module Fan Blade Breadboard DuPont Wire...
  • Page 39 Wiring Diagram Result The DC motor rotates in clockwise direction for 1s, and then rotates in counterclockwise for 1s. The action will continue to cycle. And keep on rotating like this way again and again.
  • Page 40 Lesson 14 Stepper Motor Overview In this lesson, you will learn how to control a stepper motor. Components Required Name Name UNO R3 or MEGA 2560 Stepper Motor ULN2003 Stepper Motor 9V1A Adapter Driver Module Power Supply Module DuPont Wire Breadboard Component Introduction A stepper motor divides a full rotation into a number of discrete steps.
  • Page 41 Wiring Diagram Result The stepper motor moves forward 512 steps (rotate a circle) at a high speed and move in the opposite direction at a low speed after 2s. The action will repeat again and again.
  • Page 42 Lesson 15 Intrusion Detection by PIR Overview In this lesson, you will learn how to use Passive Infrared (PIR) sensor to detect the movement nearby. Components Required Name Name UNO R3 or MEGA 2560 220Ω Resistor PIR Movement Sensor DuPont Wire Component Introduction PIR sensors respond to heat and can be triggered by the heat source such as animals as well as people.
  • Page 43 Result When someone stands within the sensing range of the module, the LED will light up and delay for a while. When the person exits the sensing range, the LED will turn off after some time delay. In addition, the delay time and detection distance can be adjusted by the resistors on PIR module.
  • Page 44 Lesson 16 1602 LCD Display Overview In this lesson, you will learn how to use a character display device 1602 LCD on the UNO and MEGA 2560 board. Components Required Name Name UNO R3 or MEGA2560 LCD1602 Module Potentiometer (10k) DuPont Wire Breadboard Component Introduction...
  • Page 45 UNO R3/ Mega 2560 LCD1602 /RESET AREF GND2 GND1 Potenti ometer ARDUINO-NOHOLE Wiring Diagram Result The characters "Hello, World" will be shown on the first line of the LCD module, and the second line is the running time (in second).
  • Page 46 Lesson 17 Thermometer Overview In this lesson, you will learn how to use LCD display to show the value of current temperature. Components Required Name Name UNO R3 or MEGA 2560 10KΩ Resistor LCD1602 Module Potentiometer Thermistor Male to Male DuPont Wire 830 Tie-points Breadboard Component Introduction A thermistor is a type of resistor whose resistance varies according to the...
  • Page 47 Wiring Diagram Result The current real-time temperature in degrees will be shown on the LCD display as "TEMP XX F". The default unit is Fahrenheit. You can try to replace only two functions to change it to Celsius (functions are in the code annotation).
  • Page 48 Lesson 18 Temperature & humidity sensor DHT-11 Overview In this lesson, you will learn how to use a DHT11 Temperature and Humidity Sensor. It's accurate enough for most of projects that need to measure humidity and temperature. Components Required Name Name UNO R3 or MEGA 2560 DuPont Wire...
  • Page 49 Wiring Diagram Result The real-time humidity will be shown on the first line of the LCD display module as "Humidity: XX.XX%", and the real-time temperature in Celsius will be shown on the second line as "Temp: XX.XX C".
  • Page 50 Lesson 19 Joystick Module Overview In this Lesson, you will learn how to use the analog joystick module. Components Required Name Name UNO R3 or MEGA 2560 10KΩ Potentiometer LCD1602 Joy Stick DuPont Wire Breadboard Component Introduction A joystick is an input device consisting of a stick that pivots on a base and reports its angle or direction to the device under its control.
  • Page 51 Wiring Diagram Result There're 3 values “X Y Z” shown on the LCD display module. Push down the joystick, Y will increase accordingly, and vice versa; push the joystick to the right, X will increase, and vice versa. By pressing the joystick, the value of Z will change from 1 to 0. You can use this module in many interesting projects, such as remote control cars.
  • Page 52 Lesson 20 Ultrasonic Sensor Module Overview In this lesson, you will learn how to measure the distance by the ultrasonic distance sensor. Components Required Name Name UNO R3 or MEGA2560 LCD1602 Ultrasonic Sensor Module 10KΩ Potentiometer DuPont Wire Component Introduction The HC-SR04 ultrasonic sensor is a device that can measure the distance to an object by using sound waves.
  • Page 53 Wiring Diagram Result When the ultrasonic module is aimed at the obstacle, the distance will be displayed on the LCD module.
  • Page 54 Lesson 21 IR Remote Controller Overview In this lesson, you will learn how to use an IR receiver to receive the remote controller signal. Components Required Name Name UNO R3 or MEGA 2560 IR Receiver Module IR Remote Controller Female to Male DuPont Wire Component Introduction The universal infrared remote controlling system consists of two parts: sending and receiving, the sending part consists of an IR remote controller,...
  • Page 55 Result Open serial monitor. Then, press the 0-9 key on the remote controller and you’d better to keep the controller pointing at the IR receiver at the same time, then the corresponding number will be shown on the serial monitor like the following picture. COM11(Arduino/Genuino Mega or Mega 2560) Send IRReceiver Button Decode...
  • Page 56 Lesson 22 LED bar graph display Overview In this lesson, you will learn how to control a LED bar graph in a row Components Required Name Name UNO R3 or MEGA 2560 10KΩ Potentiometer 220Ω Resistor LED Bar Graph Breadboard DuPont Wire Component Introduction The bar graph is made of 10 independent LEDs in a row.
  • Page 57 Result When you turn the potentiometer to the right, The Input voltage of A0 will become larger. You will see that the LEDs are lit from right to left. If you turn the potentiometer to the left, then the LED will turn off from left to right.
  • Page 58 Lesson 23 4*4 Matrix Keyboard Overview In this lesson, you will learn how to use the matrix keyboard. Components Required Name Name UNO R3 or MEGA 2560 4*4 Matrix Keyboard Male to Male DuPont Wire Component Introduction This 16-button keypad provides a useful human interface for micro- controller projects.
  • Page 59 Wiring Diagram Result Open the serial monitor, then press any keys on the 4*4 matrix keyboard, the corresponding key value will be displayed in the serial monitor. COM11(Arduino/Genuino Mega or Mega 2560) Send...
  • Page 60 Lesson 24 Real Time Clock Module Overview In this lesson, you will learn how to use the DS3231 Real Time Clock Module. Components Required Name Name UNO R3 or MEGA 2560 DS3231 RTC Module DuPont Wire Component Introduction The DS3231 is a low-cost, extremely accurate I2C real-time clock (RTC) with an integrated temperature compensated crystal oscillator (TCXO) and crystal.
  • Page 61 Result Open the serial monitor, the date will refresh every second. You can power off the board and connect again to check if the time remain walking. The RTC module should continue to walk even if it is powered off. COM11(Arduino/Genuino Mega or Mega 2560) Send Long format with month name: 13June 2017 16:29:04...
  • Page 62 Lesson 25 Water Level Detection Sensor Module Overview In this lesson, you will learn how to use a water level detection sensor module. Components Required Name Name UNO R3 or MEGA 2560 DuPont Wire Water Lever Detection Sensor Module Component Introduction The water sensor water level module can perceive water by measuring the volume of droplets water through a series of parallel lines exposed traces in order to determine the water...
  • Page 63 Result Open the serial monitor. Insert the water lever detection sensor module into water, you will see that the data displayed in the serial monitor, which represent the depth of the module immersed in water. (Unit: 1/10 mm) Note: Don't immerse the module in water too deep to avoid short circuits. COM11(Arduino/Genuino Mega or Mega 2560) Send ADC0 level is 124...
  • Page 64 Lesson 26 Sound Sensor Module Overview In this lesson, you will learn how to use a sound sensor module. Components Required Name Name UNO R3 or MEGA 2560 Female to Male DuPont Wire Sound Sensor Module Component Introduction Sound Sensor can detect the sound strength of the environment. The main component of the module is a simple microphone.
  • Page 65 Result Open serial monitor. Speak to the microphone on the sound sensor module, the value of the volume will be displayed in the serial monitor. COM11(Arduino/Genuino Mega or Mega 2560) Send...
  • Page 66 It can be used in lots of place like various types of electronic display panels. Wiring Diagram Result The characters "UCTRONICS" will be displayed on the LED dot matrix module and then the LEDs light up line by line. And repeat this way again and again.
  • Page 67 Lesson 28 Frequency Meter Overview In this lesson, you will learn to build a simple frequency meter with UNO R3 or MEGA 2560. The frequency of square wave is generated by 555 timer, and then it will be sent to the Arduino GPIO pin, the result to serial monitor through USB port.
  • Page 68 Wiring Diagram Result Open the serial monitor, the value of square wave frequency, time of high level and low level will be displayed. Turning the potentiometer, the value of frequency will be changed accordingly. COM11(Arduino/Genuino Mega or Mega 2560) Send Freq: 1298Hz HTime: 761us Ltime: 9us...
  • Page 69 Lesson 29 MPU-6050 Module Overview In this lesson, you will learn how to use MPU6050 module (Inertia Measurement Unit) Components Required Name Name UNO R3 or MEGA 2560 MPU6050 Module DuPont Wire Component Introduction The MPU-6050 sensor contains a 3-axis MEMS accelerometer and a 3-axis MEMS gyro in a single chip.
  • Page 70 Result Open the serial monitor. The value of the acceleration and angular velocity of the X-axis, Y- axis and Z- axis as well as the real-time temperature will be displayed. Turning the MPU6050 module, the values will be changed accordingly. COM11(Arduino/Genuino Mega or Mega 2560) Send AcX = -7456 I AcY = 12012 I AcZ = 5976 I Tmp = 34.84 I GyX = -3595 I GyX = 965 I GyZ = -2780...
  • Page 71 Lesson 30 Controlling Stepper Motor with Remote Overview In this lesson, you will learn a fun and easy way to control a stepper motor from a distance using an IR remote control. Components Required Name Name UNO R3 or MEGA 2560 Stepper Motor ULN2003 Stepper Motor IR Receiver Module...
  • Page 72 Lesson 31 Controlling Stepper Motor with Rotary Encoder Overview In this lesson, you will learn how to control stepper motors using a rotary encoder. Components Name Name UNO R3 or MEGA 2560 Stepper Motor ULN2003 Stepper Motor Rotary Encoder Module Driver Module Power Supply Module 9V1A Adapter...
  • Page 73 Lesson 32 ESP8266 Overview The ESP-01S ESP8266 WiFi Module is a self-contained SOC with integrated TCP/IP protocol stack that can let any microcontroller access to your WiFi network. The ESP-01S ESP8266 module comes with pre-programmed AT command set firmware which means that you can simply hook it up to your Arduino directly.
  • Page 75 Connection Schematic Mega 2560 LCD1602 /RES ET AREF GND2 GND1 Potenti Relay ometer TX GND 8266 Wiring Diagram...
  • Page 76 Result Click the IP box and enter the IP address (got from Step2) + “:8089", like "192.168.2.200:8089" (Input without quote). Then click the button CONNECT, it will become yellow and show the character CONNECTED. The status of connection will also be shown in the serial monitor. That means the app has communicated with UNO or MEGA2560 through ESP8266 on-board WiFi successfully.
  • Page 77 COM11(Arduino/Genuino Mega or Mega 2560) AT+RST Module is ready reboot wifi is OK APIP:”192.168.4.1” STAIP:”192.168.2.200” Server is set up Connected Send OK Next, click button ON, the relay will be switched on , that means the port COM is connected to the port NO.
  • Page 78 Lesson 33 Building a Smart Home System Overview In this lesson, you will learn to build a smart home system with ESP8266 and sensors. You can also use the same idea to develop other interesting projects. Components Required Name Name MEGA 2560 ESP8266 Module DS3231 RTC module...
  • Page 79 Wiring Diagram...
  • Page 80 Result Open the code from lesson 33 and change the SSID and the PASSWORD to match your home WIFI network. Then connect the app to Arduino board using the same steps from the lesson After successful connection, the RTC time will be displayed on the first line of the 1602 LCD. The value of current humility and temperature will be displayed on the second line.
  • Page 81 The MODE button is used to switch between manual mode or automatic mode. The mode will be displayed on the 1602 LCD for 1s when switching. It will be shown in the serial motor as well. COM11(Arduino/Genuino Mega or Mega 2560) AT+RST Module is ready reboot wifi...

Table of Contents