Starter Kit for Arduino catalogue catalogue .............................................................................................................................1 Arduino IDE(Integrated Development Environment) ........................................................... 2 Introduction ................................................................................................................... 2 Operation demo .....................................................................................
Lesson 20: DC motor .......................................................................................... 63 Lesson 21: Fun experiment--Color dimmer ........................................................ 66 Lesson 22: Fun experiment--Traffic light ............................................................ 68 Lesson 23: Fun experiment--Intelligent fire ........................................................ 70 Lesson 24: Fun experiment--Theremin .....................................................
Choose the components to install and click “next” button. Choose the installation directory.
The process will extract and install all the required files to execute properly the Arduino Software (IDE) Step 2: Get an Uno R3 and USB cable In this tutorial, you're using an Uno R3. You also need a standard USB cable (A plug to B plug): the kind you would connect to a USB printer, for example. Step 3: Connect the board The USB connection with the PC is necessary to program the board and not just to power it up. The Uno and Mega automatically draw power from either the USB or an external power supply.
Step 4: Open Lesson 1: LED blink Open the LED blink example sketch: CD>For Arduino>Demo Code>Lesson1-LED_bink>led_blink.
Step 5: Select your board You'll need to select the entry in the Tools > Board menu that corresponds to your Arduino board.
Selecting an Arduino/Genuino Uno.
Step 6: Select your serial port Select the serial device of the board from the Tools | Serial Port menu. This is likely to be COM3 or higher (COM1 andCOM2 are usually reserved for hardware serial ports). To find out, you can disconnect your board and re-open the menu; the entry that disappears should be the Arduinoboard. Reconnect the board and select that serial port. Step 7: Upload the program Now, simply click the "Upload" button in the environment.
Step 8: Result A few seconds after the upload finishes, you should see the pin 13 (L) LED on the board start to blink (in orange). If it does, congratulations! You've gotten Arduino up-and-running.
Arduino UNO R3hardware introduction How to add library files Step 1: 10
Add library file: Sketch>Include Library>Add.
Step3: Finish Learning materials Ebook Introduction The E-book about Arduino what we provided for you is carefully selected and comprehensive, it specially aims at solving the problems when you make projects such as syntax analysis, program optimization and so on.If you have any questions about the projects what we provided,you can also refer the content of e-books. Path:\For Arduino\Ebook 12
Language Reference https://www.elecrow.com/wiki/ http://wiring.org.co/reference/ https://www.arduino.cc/en/Reference/HomePage/ Lessons Introduction We will provide you not only the all involved courses about this kit but also to analyze each course. We sincerely hope that you can learn from the first course to the last course because it will lead you start with Arduino step by step, and it also let you jump from a newbieto a higher level for developing your own independent projects.
Specification Pin definition LED Long pin Short pin -> -> UNO R3 +5V GND Hardware required Material diagram Material name Number 220/330Ω resistor 1 LED 1 USB Cable 1 1 UNO R3 Breadboard 1 Jumper wires Several 14
Bread board schematic All the tie points (indicated in the picture) of the different colors are connected together.
Connection diagram Note:The longest LED of the pin is connected to the digital signal port 13(D13). Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Tips:click on the following name to jump to the web page.
If you fail to open, use the Adobe reader to open this document. int setup() pinMode() OUTPUT loop() HIGH LOW digitalWrite() digitalRead() delay() ; (semicolon) {} (curly braces) = (assign) // (comment) Application effect Turns on an LED on for one second, then off for one second, repeatedly.
Button switches, familiar to most of us, are a switch value (digital value) component. When it's pressed, the circuit is in closed (conducting) state. This example turns on the built-in LED on pin 13 when you press the button.
Connection diagram Connect three wires to the board. The first two, red and black, connect to the two long vertical rows on the side of the breadboard to provide access to the 5 volt supply and ground. The third wire goes from digital pin 2 to one leg of the pushbutton. That same leg of the button connects through a pull-down resistor (here 10K ohm) to ground. The other leg of the button connects to the 5 volt supply.
Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. const INPUT Application effect When you press the button, the built-in LED will light up, release is extinguished. Lesson 3: Active Buzzer Overview This is an active buzzer experiment.It has an inner vibration source and the direct power supply can make a sound. Specification Voltage: DC 5V Min Sound Output at 10cm: 85dB; Total Size (Pin Not Included): 12 x 9mm/0.
Hardware required Material diagram Material name Number Active buzzer 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Note:The longest active buzzer of the pin is connected to the digital signal port 5 (D5). Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. digitalWrite() pinMode() Application effect When the upload process is complete, the buzzer rings. Lesson 4: Passive Buzzer Overview This is an Passive buzzer experiment. It cannot be actuated by itself, but external pulse frequencies. Different frequencies produce different sounds.
Hardware required Material diagram Material name Number 1 Passive buzzer USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram 23
Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. #define tone() Application effect When the upload process is complete,the buzzer sounds for 2 seconds. Lesson 5: RGB LED Overview In this lesson, you will learn how to use a RGB (Red Green Blue) LED with an Arduino.
Pin definition It is the definition of RGB LED pin: RGB LED R GND G B -> -> -> -> UNO R3 D11 GND D10 D9 Hardware required Material diagram Material name Number RGB LED 1 220Ω/330Ωresistor 3 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 25
Connection diagram Note:The longest pin of the RGB LED is connected to the GND. Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document.
Application effect When the program is uploaded, you will see the LED loop emit 7 different colors of light. Lesson 6: 1 Digit 7 Segment Displays Overview The 7-segment display, also written as “seven segment display”, consists of seven LEDs (hence its name) arranged in a rectangular fashion as shown. Each of the seven LEDs is called a segment because when illuminated the segment forms part of a numerical digit (both Decimal and Hex) to be displayed.
Specification Null Pin definition Hardware required Material diagram Material name Number 1 digit LED Segment Displays(common cathode) 1 220/330Ω resistor USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram 28
Note:Pay attention to the direction of digital tube. Connection: UNO R3 SEG D3 -> C D4 -> D D5 -> E D6 -> G D7 -> F D8 -> A D9 -> B GND -> COM Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference array Application effect You will see the number on the digital tube increased from 0 to 9. Lesson 7: 4 Digit 7 Segment Displays Overview In this tutorial I will be showing you how to use a 4 digit 7 segment display to achieve time counting function.
Hardware required Material diagram Material name Number 4 digit LED Segment Displays(common anode) 1 220/330Ω resistor 8 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Note: Pay attention to the direction of digital tube.
Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Long switch() case Application effect The time counting function, you will see the number of digital tube display increasingly. Lesson 8: 74HC595 and Flow Led Experiment Overview The 74HC595 consists of an 8−bit shift register and a storage register with three−state parallel outputs. It converts serial input into parallel output so you can save IO ports of an MCU.
Pin definition Hardware required Material diagram Material name Number 74HC595 1 LED 8 220/330Ω resistor 8 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 33
Connection diagram Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Application effect Only need 3 I/O ports can be used to control the eight LED and you can see 8 LED will flashing like flow water. Lesson 9: LCD1602 with IIC Overview This lesson will teach you how to use LCD1602 with IIC. Specification Please view LCD1602-datasheet.pdf and PCF8574.pdf. Path:\Datasheet\ Pin definition Null.
Connection diagram UNO R3 GND +5V SDA SCL -> -> -> -> LCD1602_IIC GND VCC A4 A5 Compile and upload Tips: Refer to the operation demo (Step4 to Step8). If you have added the library, skip it. Otherwise, you need to add the LiquidCrystal_I2C to the Arduino library file directory, otherwise the compiler does not pass. Please refer to ‘How to add library files’. If the LCD does not display or brightness is not enough, please adjusted the potentiometer.
Language reference lcd.begin() lcd.print() lcd.setCursor() Application effect You will see the LCD display string, while the LCD backlight every 500ms lit once. Lesson 10: Relay Module Experiment Overview This lesson will teach you how to use a button to control a relay experiment.The Delay() function is not used to eliminate jitter and improve the running efficiency of the program.
Hardware required Material diagram Material name Number Relay module 1 Button 1 10KΩ resistor 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram 38
Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. const millis() Application effect When the button is pressed, the state of the relay will be changed. Lesson 11: Tilt Switch Overview This tilt switch can easily be used to detect orientation. Inside the can is a ball that make contact with the pins when the case is upright.
Specification sPin definition Nopolarity.
Connection diagram Note:The longest LED of the pin is connected to the digital signal port 11 (D11). Ball switch`s pin is not divided into positive and negative polarity. Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. If() else Application effect LED light up when you lean or knock on ball switch. Lesson 12: Photoresistor Overview A Photoconductive light sensor does not produce electricity but simply changes its physical properties when subjected to light energy.
Pin definition Hardware required Material diagram Material name Number Photoresistor 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 43
Connection diagram Compile and upload Tips: Refer to the operation demo (Step4 to Step8). And open the serial port. Language reference Null.
Application effect You can see the real-time illumination value in the monitor. Lesson 13: Flame Alarm System Overview The Flame Sensor can be used to detect fire source or other light sources of the wavelength in the range of 760nm - 1100 nm. It is a high speed and high sensitive NPN silicon phototransistor. This lesson will teach you how to make a Flame alarm system.
Flame Sensor 1 10KΩ resistor 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Flame sensor UNO R3 Short Pin -> +5V Long Pin -> A0 PassiveBuzzer -> D6 Note:The short pin of the Flame sensor is connected to +5v. Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Null Application effect We can simulate a flame environment. Turn on the lighter and then near the flame sensor, you will hear the buzzer sound.
Lesson 14: Analog Temperature Overview Thermistors are thermally sensitive resistors whose prime function is to exhibit a large, predictable and precise change in electrical resistance when subjected to a corresponding change in body temperature. This lesson we will teach you how to read the value of the thermistor. Specification Model: MF52-103 Insulation Material: Ceramic Color: Black Rated Power: 0.05W Resistance Value: 10k Resistance Tolerance: H (±3%) B Value: 3950K Pin Pitch: 1.5mm / 0.
1 Thermistor 10KΩ resistor 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 48
Connection diagram Note: Thermistor `s pin does not distinguish between positive and negative poles. Compile and upload Tips: Refer to the operation demo (Step4 to Step8). And open the serial port.
Language reference serial DEC Application effect After uploading the program, open the serial port monitor, you will see a series of temperature values. Lesson 15: Soil Moisture Sensor Overview The soil moisture sensor can read the moisture around the soil. So it can be used to monitor your garden soil moisture and remind you to water the flowers. Specification Supply voltage : 3.3V or 5V Input signal: 0~4.
Hardware required Material diagram Material name Number DHT11 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Compile and upload Tips: Refer to the operation demo (Step4 to Step8). And open the serial port.
Language reference Null. Application effect When you insert the sensor into the soil, you can see the real-time humidity value of the soil in the monitor. Lesson 16: DHT11 Experiment Overview This is an experiment on temperature and humidity, you will learn the external library files to simplify the process.
Specification Please view DHT11-datasheet.pdf. Path: \Datasheet\ DHT11-datasheet.
Connection diagram 54
Compile and upload Tips: Refer to the operation demo (Step4 to Step8). If you have added the library, skip it. Otherwise, you need to add the DHT.h" to the Arduino library file directory, otherwise the compiler does not pass. Please refer to ‘How to add library files.docx’. Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document.
Pin definition Touch Sensor GND VCC SIG -> -> -> UNO R3 GND +5V D2 Hardware required Material diagram Material name Number Touch Sensor 1 LED 3 220/330Ω resistor 3 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 56
Connection diagram Note:The longest LED of the pin is connected to the digital signal port. Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. attachInterrupt switch(case) Application effect Through the touch panel, you can control the LED light. Lesson 18: Ultrasonic Ranging Overview The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like bats or dolphins do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package.
Gnd -> GND Hardware required Material diagram Material name Number HCSR04 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Connection: HC SR04 Vcc Trig Echo Gnd -> -> -> -> UNO R3 VCC D2 D3 GND Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference Tips:click on the following name to jump to the web page. If you fail to open, use the Adobe reader to open this document. delayMicroseconds() Application effect Open the serial port monitor, and you will see the data returned by the ultrasonic module. button will have the corresponding coding. Lesson 19: Sweep Overview Sweeps the shaft of a RC servo motor back and forth across 180 degrees. This example makes use of the Arduino servo library.
Pin definition Hardware required Material diagram Material name Number 9g Servo 1 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 61
Connection diagram Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Null Application effect You will see the servo motor turning 180 degrees back and forth.
Lesson 20: DC motor Overview In this lesson, we will learn how to control the direction and speed of a small-sized DC motor. The basic problem in using Arduino’s digital pins to control the motor directly is that it is very difficult to reverse the voltage. So we need to use a L293D chip. This 5V DC motor give the two terminals of the copper sheet one high and one low level, and the motor will rotate. Before proceeding further it is recommended that you read and understand the pin diagram of L293D.
Hardware required Material diagram Material name Number 1 Small-sized DC motor 1 L293D USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Pin EN is an enabling pin and works with High level. A stands for input and Y for output. when pin EN is High level, if A is High, Y outputs High level; if A is Low, Y outputs Low level. When pin EN is Low level, the L293D does not work.Because we just needs to drive one motor in this lesson, so use one side of the L293D.
Connection L293D Pin1 -> Pin2 -> Pin4 -> Pin5 -> Pin7 -> Pin8 -> Pin16 -> Uno R3 5V D10 GND GND D9 5V 5V Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference Null Application effect You can see the DC motor will begin rotating left and right. Lesson 21: Fun Experiment--Color Dimmer We have learned the RGB LED, it can achieve discoloration. In this lesson, let's do a mood light and make it switch with your heart.
Connection diagram Connection RGB LED R G B -> -> -> UNO 9 10 11 Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Language reference map() Application effect You can rotate the potentiometer to switch the color of the RGB LED, just like color dimmer is cool. Lesson 22: Fun Experiment--Traffic Light In this lesson, we will use the Arduino to imitate the traffic lights. The lights turn from green to yellow, then turn red and then start all over lights. The time interval follows the traffic signal standard interval. This item can be used in traffic lights simulation or toys.
Displays(common cathode) 74HC595 1 220/330Ω resistor 7 USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
Application effect First, the LED display counts down from 9s, and the red light in the NS and the green one in the EW light up. Then it counts down from 3, and the green LED in the EW goes out when the yellow lights up, with the NS red light still on. After 3s, the 7-segment counts down from 9s again. At the same time, the red light in the EW and the green in the NS light up. 9s later, it counts down from 3s, when the yellow light in the NS lights up and the red in the EW keeps on.
Active buzzer 1 L293D 1 Flame Sensor 1 Small-sized DC motor 1 220/330Ω resistor Several USB Cable 1 UNO R3 1 Breadboard 1 Jumper wires Several 71
Connection diagram Compile and upload Tips: Refer to the operation demo (Step4 to Step8). Language reference Null.
Application effect Once the sensor test fire, the buzzer will alarm and the red LED will light flashes, then open the fan to put out a fire. Lesson 24: Fun Experiment--Theremin The Theremin is a kind of electronic musical instrument which don't need to body contact. It's so cool and interesting. In this lesson, let's do a simple Theremin.
UNO R3 1 Breadboard 1 Jumper wires Several Connection diagram Connection HCSR04 TrigPin -> EchoPin -> VCC -> GND -> Buzzer Pin1 Pin2 -> -> arduino D2 D3 5V GND arduino D8 GND Compile and upload Tips: Refer to the operation demo (Step4 to Step8).
PulseIn(); map(); tone(); Application effect Now, use your hand to get close to the ultrasonic sensor slowly, it will making a changing tone of voice. You can even try to play simple melodies.