background image

 

79

Wiring Diagram 

 

 

 

 

 

 

 

 

Summary of Contents for Ultimate Starter Kit for Arduino

Page 1: ......

Page 2: ......

Page 3: ......

Page 4: ...2 UNO R3 MEGA 2560 R3 Proto Shield V3 1 3 400 Tie 830 Tie Point Breadboard 1 4 65 Male to Male Jumper Wire 1 5 15cm Male to Female DuPont Wire 20 6 USB Cable 1 7 9V Battery Clip 1 8 9V 1A Power Suppl...

Page 5: ...2 13 Power Supply Module for Breadboard 1 14 5mm Green LED 4 15 5mm Yellow LED 4 16 5mm Blue LED 4 17 5mm Red LED 8 18 74HC595 IC 2 19 6x6x5mm Button 8 20 5mm RGB LED 1 21 5V Active Buzzer 1 22 16R P...

Page 6: ...nsistor 2 25 SW520D Tilt Switch 2 26 7 Segment Display 1 27 GL5528 Photo Resistor 2 28 5V Relay Module 1 29 1N4007 Diode 4 30 1N4148 Diode 4 31 4 bit 7 Segment LED 1 32 SG90 9g Servo 1 33 DC Motor 1 3...

Page 7: ...per Motor Driver 1 38 PIR Motion Sensor 1 39 1602 LCD 1 40 10K Potentiometer 2 41 502 5K Thermistor 1 42 DHT11 Temp Humi Sensor 1 43 Joystick Module 1 44 HC SR04 Ultrasonic Sensor 1 45 HX1838 IR Recei...

Page 8: ...49 RTC Module 1 50 Water Lever Sensor 1 51 Sound Sensor Module 1 52 MAX7219 8x8 LED Module 1 53 NE555 Timer 1 54 Ceramic Capacitor 104 100nf 10 55 10uF Electrolytic Capacitor 2 56 MPU 6050 Module 1 5...

Page 9: ...n Main Software shown in Figure 1 The version available from official website is the latest version the figures in this tutorial might be slightly different from yours Select one Arduino IDE according...

Page 10: ...llowing 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...

Page 11: ...en 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...

Page 12: ...ad To use the additional libraries you will need to install them To install the library first exit the Arduino IDE Then unzip the ZIP file of the library download from the GitHub link Copy the library...

Page 13: ...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 Figure 6...

Page 14: ...e drop down that matches the rate passed to Serial begin in your sketch Which port selected to open in the serial monitor is the same as the port for uploading Arduino code Go to Tools Serial Port and...

Page 15: ...this is how it is labeled on the board You may find that your UNO R3 board s L LED already blinks when you connect it to a USB plug This is because the boards are generally shipped with the Blink ske...

Page 16: ...e wave a signal switched between on and off This on off pattern can simulate voltages in between full on 5 Volts and off 0 Volts by changing the portion of the time the signal spends on versus the tim...

Page 17: ...17 Wiring Diagram Result LED is lit up and went out gradually like breathing...

Page 18: ...feed in the data using the pin Data and Clock of the chip The clock pin is used to receive eight pulses At each pulse if the pin data is high then a 1 gets pushed into the shift register otherwise a 0...

Page 19: ...iring Diagram Result LEDs flash in turn Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 GND VCC DS OE ST_CP SH_CP MR Q7 220R 220R 220R 220R 220R 220R 220R 220R UNO R3 Mega 2560 74HC595 AREF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10...

Page 20: ...hes 2 Breadboard 1 Component Introduction The switch is a simple component When you press a button or flip a lever they connect two contacts together so that electricity can flow through them Actually...

Page 21: ...These three colored LEDs are capable of producing any color It uses a four wire connection with one common lead anode or cathode These LEDs can have either common anode or common cathode leads What we...

Page 22: ...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: ...t Introduction A buzzer or beeper is a device which can generate audio An active buzzer will generate a tone using an internal oscillator so all that is needed is a DC voltage A transistor is a semico...

Page 24: ...24 Wiring Diagram Result The buzzer will ring for 2s and then mute for 2s...

Page 25: ...ransistor S8050 1 DuPont Wire 10 Component Introduction A passive buzzer requires an AC signal to make a sound It is like an electromagnetic speaker where a changing input signal produces the sound ra...

Page 26: ...26 Result The passive buzzer will play music and the LED blink simultaneously Wiring Diagram...

Page 27: ...ilt Ball Switch 1 220 Resistor 1 Component Introduction The tilt sensor is a component that can detect the tilting of an object However it works like a normal switch but through a different physical m...

Page 28: ...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: ...or displaying decimal numbers compared to the more complex dot matrix displays The seven segment display is an 8 shaped LED display device composed of eight LEDs including a decimal point these segmen...

Page 30: ...5 6 7 8 9 will be shown on the 7 segment display one by one AREF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 GND SDA SCL RESET 3V3 5V A0 A1 A2 A3 A4 A5 GND1 GND2 VIN Analog Input Digi tal Input Outp...

Page 31: ...1 DuPont Wire 19 Component Introduction A photoresistor is a light controlled variable resistor The resistance of a photoresistor decreases with the increasing incident light intensity in other words...

Page 32: ...32 Wiring Diagram Result The stronger light the photoresistor received the more LEDs will light up...

Page 33: ...eoretic infinite resistance in the other direction A relay is an electrically operated switch It is generally used for automatic control Actually it is an automatic switch which uses low voltage devic...

Page 34: ...esult 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 connect...

Page 35: ...segment display but has four dedicate common pins to control each digit separately Connection Schematic a f b g e c d h a f b g e c d h a f b g e c d h a f b g e c d h b 12 dig3 11 dig2 10 f 9 a 8 di...

Page 36: ...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: ...ng to the input pulse s frequency an duty cycle The input pulse frequency and duty cycle should be in a certain range for proper operation A servo motor can usually only turn 90 in either direction fo...

Page 38: ...DC motor is a kind of transducer that converts direct current electrical power into mechanical power To complete this lesson an extra power supply breakout board is needed to source much more current...

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 aga...

Page 40: ...position can then be commanded to move and hold at one of these steps Once stopped the stepper holds the load steady with a holding torque Most stepper motors employ a doubly salient design with teeth...

Page 41: ...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: ...Components Required Name Qty Name Qty UNO R3 or MEGA 2560 1 220 Resistor 1 PIR Movement Sensor 1 LED 1 DuPont Wire 1 Component Introduction PIR sensors respond to heat and can be triggered by the hea...

Page 43: ...g 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...

Page 44: ...eloping allowing the user to read some output parameters directly The interface of the LCD consists of the following pins VSS Connect to ground VDD Connect to 5V power supply VO Adjust the contrast of...

Page 45: ...and the second line is the running time in second VSS VDD V0 RS RW E D0 D1 D2 D3 D4 D5 D6 D7 A K AREF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 GND SDA SCL RESET 3V3 5V A0 A1 A2 A3 A4 A5 GND1 GND...

Page 46: ...e When the temperature increases the thermistor resistance decreases when the temperature decreases the thermistor resistance increases There are two kinds of thermistors NTC negative temperature coef...

Page 47: ...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 ar...

Page 48: ...10K Potentiometer 1 Component Introduction The DHT11 Sensor features a temperature humidity sensor complex with a calibrated digital signal output The sensor includes a resistive type humidity measure...

Page 49: ...ng 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 X...

Page 50: ...oduction 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 Connection Schematic VSS VDD V0 RS RW E D0 D1 D2 D...

Page 51: ...ule 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...

Page 52: ...s distance by sending out a sound wave at a specific frequency and listening for that sound wave to bounce back By recording the elapsed time between the sound wave being generated and the sound wave...

Page 53: ...53 Wiring Diagram Result When the ultrasonic module is aimed at the obstacle the distance will be displayed on the LCD module VCC Tr1g Echo Gnd...

Page 54: ...d Name Qty Name Qty UNO R3 or MEGA 2560 1 IR Receiver Module 1 IR Remote Controller 1 Female to Male DuPont Wire 3 Component Introduction The universal infrared remote controlling system consists of t...

Page 55: ...ller 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 Gen...

Page 56: ...oard 1 DuPont Wire 15 Component Introduction The bar graph is made of 10 independent LEDs in a row Internal schematic diagram for the LED bar graph shows in the right picture In this lesson we will us...

Page 57: ...urn 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...

Page 58: ...atrix Keyboard 1 Male to Male DuPont Wire 8 Component Introduction This 16 button keypad provides a useful human interface for micro controller projects The convenient adhesive backing provides a simp...

Page 59: ...am 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 1 2 3...

Page 60: ...Module 1 DuPont Wire 4 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 The dev...

Page 61: ...Genuino Mega or Mega 2560 Send Long format with month name 13June 2017 16 29 04 Short format witch 12h mode 13rd Jun 17 04 29pm Today is Tuesday 163 days of the year Actual month has 30 days Unixtime...

Page 62: ...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 level When insert it...

Page 63: ...er 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 ADC0 level is 108 ADC0 level is 89 ADC0 level is...

Page 64: ...nsor Module 1 Component Introduction Sound Sensor can detect the sound strength of the environment The main component of the module is a simple microphone To make sure the microphone can detect your v...

Page 65: ...nitor 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 496 720 434 499 81 358 129 367 499...

Page 66: ...omponent Introduction This is an 8x8 LED matrix module which serially driven by the MAX7219 common cathode display drivers The 8x8 LED Matrix is easy to use and compatible with Arduino only needs thre...

Page 67: ...MEGA 2560 1 10K Potentiometer 1 NE555 Timer 1 104 Capacitor 2 10K Resistor 1 Breadboard 1 DuPont Wire 13 Component Introduction The NE555 Timer is an integrated circuit chip used in a variety of appli...

Page 68: ...q 1298Hz HTime 761us Ltime 9us Freq 1317Hz HTime 751us Ltime 8us Freq 1006Hz HTime 856us Ltime 138us Freq 677Hz HTime 1097us Ltime 378us Freq 581Hz HTime 1223us Ltime 496us Freq 458Hz HTime 1452us Lti...

Page 69: ...ponent Introduction The MPU 6050 sensor contains a 3 axis MEMS accelerometer and a 3 axis MEMS gyro in a single chip The 3 axis are represent the X Y Z direction each so it can sense both velocity of...

Page 70: ...94 I GyX 329 I GyZ 128 AcX 7944 I AcY 11520 I AcZ 7716 I Tmp 34 84 I GyX 81 I GyX 249 I GyZ 192 AcX 5824 I AcY 12648 I AcZ 8920 I Tmp 34 79 I GyX 535 I GyX 2990 I GyZ 3459 AcX 7388 I AcY 12256 I AcZ 7...

Page 71: ...Name Qty Name Qty UNO R3 or MEGA 2560 1 Stepper Motor 1 IR Receiver Module 1 ULN2003 Stepper Motor Driver Module 1 IR Remote Controller 1 Power Supply Module 1 9V1A Adapter 1 Breadboard 1 DuPont Wire...

Page 72: ...nt Introduction A rotary encoder also called a shaft encoder is an electro mechanical device that converts the angular position or motion of a shaft or axle to an analog or digital code There are two...

Page 73: ...ld be downloaded and installed to work with the lesson32 and lesson33 projects It can communicate with UNO or MEGA2560 by the ESP8266 on board WiFi to control the relay and motor It can also read the...

Page 74: ......

Page 75: ...SDA SCL RES ET 3V3 5V A0 A1 A2 A3 A4 A5 GND1 GND2 VIN Analog Input Digi tal Input Output A8 A9 A10 A11 A12 A13 A14 A15 TX3 RX3 RX2 RX1 TX2 TX1 SDA SCL VSS VDD V0 RS RW E D0 D1 D2 D3 D4 D5 D6 D7 A K 1...

Page 76: ...8 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 a...

Page 77: ...C The status of the relay will also be shown in the serial monitor COM11 Arduino Genuino Mega or Mega 2560 AT RST Module is ready reboot wi is OK APIP 192 168 4 1 STAIP 192 168 2 200 Server is set up...

Page 78: ...Supply Module 1 9V1A Adapter 1 Breadboard 1 DHT11 Temp and Humi module 1 DuPont Wire 32 Connection Schematic AREF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 GND SDA SCL RES ET 3V3 5V A0 A1 A2 A3 A4...

Page 79: ...79 Wiring Diagram...

Page 80: ...k Then connect the app to Arduino board using the same steps from the lesson 32 After successful connection the RTC time will be displayed on the first line of the 1602 LCD The value of current humili...

Page 81: ...y the APP Click ON and OFF to make the motor work or not Note 1 Don t keep the motor working for a long time to prevent L9110 over heat 2 If the time shown on the 1602 LCD is wrong please open the fil...

Reviews: