Keyestudio EASY PLUG Ultimate Starter Kit Скачать руководство пользователя страница 28

25

2.5. Text Block

Содержание EASY PLUG Ultimate Starter Kit

Страница 1: ...keyestudio www keyestudio com EASY PLUG Ultimate Starter Kit For Arduino STEM EDU...

Страница 2: ...Arduino Software 62 5 Let s Get Started With Your Projects 73 Project 1 Hello World 73 How To Get Started With Mixly Projects 81 Project 2 LED Light 90 Project 3 Knocking 102 Project 4 How much light...

Страница 3: ...Project 20 What s the temperature 215 Project 21 What time is it 224 Project 22 I receive a signal 227 6 Resources 234 7 Our Tutorial 235 8 About keyestudio 235 9 Customer Service 236...

Страница 4: ...ing with electronics and coding The Starter Kit includes a user guide with 22 tutorials that will walk you through the basics up to complex projects Although you have a few or even no electronics rela...

Страница 5: ...plug Red LED Module 1 5 EASY plug Passive Buzzer Module 1 6 EASY plug Photocell Sensor 1 7 EASY plug Soil Humidity Sensor 1 8 EASY plug Analog Gas Sensor 1 9 EASY plug TEMT6000 Ambient Light Sensor 1...

Страница 6: ...or 1 13 EASY plug Flame Sensor Module 1 14 EASY plug PIR Motion Sensor 1 15 EASY plug DS18B20 Temperature Sensor 1 16 EASY plug IR Receiver Module 1 17 EASY plug Infrared Obstacle Detector Sensor 1 18...

Страница 7: ...e 1 21 EASY plug OLED Module 1 22 EASY plug L9110 Fan Motor Module 1 23 EASY plug Servo Module 1 24 Keyestudio 9G blue Micro Servo 90 1 25 EASY plug 2812 2x2 full color RGB Module 1 26 200mm blue RJ11...

Страница 8: ...5 28 USB cable 1...

Страница 9: ...pment a complete support ecosystem for creative e education a stage for maker educators to realize their dreams Although there is an Ardublock graphical programming software launched by Arduino offici...

Страница 10: ...7...

Страница 11: ...lete the code compile upload save and manage It support four remove methods drag it left out code window or drag to Recycle Bin delete key or right click to delete block It supports four languages Eng...

Страница 12: ...9 2 2 In Out Block...

Страница 13: ...Output set the HIGH or LOW output for IO pins 3 Returns a digital value of a specific Port Digital IO Read Pin generally used to read the HIGH or LOW level detected by Digital sensor 4 Write analog va...

Страница 14: ...generally used to read the Analog value detected by Analog sensor 6 External Interrupts function with three trigger interrupt modes RISING FALLING CHANGE 7 Detachs interrupt to a specific Port Turn o...

Страница 15: ...pin within a time set in timeout 11 Set the ShiftOut data pin clock pin Output the data needed from the bitOrder MSBFIRST or LSBFIRST Most Significant Bit First or Least Significant Bit First Generall...

Страница 16: ...13 For example Connect your Arduino Uno board then follow the steps below to light the Pin13 led on Arduino UNO...

Страница 17: ...14 2 3 Control Block...

Страница 18: ...n only once 2 End the program means the program will stop running when use this block 3 Delay function click to select ms or us pause the program for the amount of time in milliseconds specified as pa...

Страница 19: ...tement You can click the blue gear icon to select the else if block or else block 5 switch function You can click the blue gear icon to select the case block or default block used to evaluate several...

Страница 20: ...A while loop statement 8 break function used to exit from the containing loop 9 millis function returns the system running time since the program started The unit can be ms milliseconds or s microsec...

Страница 21: ...18 10 Timer interrupt function that is set a trigger interrupt for the amount of time in milliseconds specified as parameter 11 Timer interrupt start block 12 Timer interrupt stop block...

Страница 22: ...19 For example Compile and upload the program below to your Arduino board you should see Pin13 LED on Arduino UNO continue to flash with an interval of 1s equal to 1000ms...

Страница 23: ...20 2 4 Math Block...

Страница 24: ...CON DEFINITION 1 A number 2 Click to select the Arithmetic Operators addition subtraction x Multiplication division remainder bitwise xor 3 Click to select the bitwise end l bitwise or bitshift left b...

Страница 25: ...the Round Ceil Floor abs sq sqrt Round Returns the integer part a number using around Ceil Returns the integer part a number using ceil Floor Returns the integer part a number using floor abs Return...

Страница 26: ...the min returns the smaller number 7 Initialize the random seed 8 Return a random integer between the two specified limits inclusive 9 Constrain a number to be between the specified limits inclusive g...

Страница 27: ...24 10 Map a number from the first interval to the second interval For instance potentiometer controlled servo map the range of potentiometer 0 1023 to the angle of servo 0 180...

Страница 28: ...25 2 5 Text Block...

Страница 29: ...ine of text 2 A character 3 Creates a piece of text by joining together two piece of text Here Hello join Mixly equals HelloMixly 4 Converts a string into an integer or an float 5 Returns the char cor...

Страница 30: ...the length of a string 9 Output the char of a string the char at 0 of hello is h 10 The first string equals or startsWith or endsWith the second string returns 1 otherwise returns 0 if equals both st...

Страница 31: ...28 2 6 List Block...

Страница 32: ...29 NO BLOCK ICON DEFINITION 1 Create a list with any number of items 2 Creats a list from a text int mylist 0 0 0 3 Returns the length of a list...

Страница 33: ...30 4 Returns the value of at the specified position in a list 5 Sets the value of at the specified position in a list Set the first item in mylist to another item...

Страница 34: ...31 2 7 Logic Block...

Страница 35: ...nputs are not equal to each other Return true if the first input is smaller than the second input Return true if the first input is smaller than or equal to the second input Return true if the first i...

Страница 36: ...urn true if at least one of the inputs is true 3 Returns true if the input is false Returns false if the input is true 4 Returns either true or false 5 Returns null 6 If the first number is true the s...

Страница 37: ...34 2 8 Variable Block...

Страница 38: ...at boolean byte char string 2 Define the data types For example LED breath You need an Arduino Uno and one LED module Connect the control pin of LED module to Pin 3 of Uno board or other pins with tha...

Страница 39: ...36...

Страница 40: ...37 2 9 SerialPort Block...

Страница 41: ...NITION 1 Set the serial buad rate to 9600 2 Write the specified number text or other value 3 Print the specified number text or other value on monitor 4 Print the specified number text or other value...

Страница 42: ...rns true otherwise returns false generally used in Bluetooth communication 7 Returns a string in serial port 8 A string read from serial port to a string variable pause until read the specified charac...

Страница 43: ...everal serial ports 12 Event function trigger by serial port data that is serial port is ready to call this function equal to an interrupt function For example serial communication Done uploading the...

Страница 44: ...41...

Страница 45: ...42...

Страница 46: ...43 2 10 Communicate Block...

Страница 47: ...44 NO BLOCK ICON DEFINITION 1 Do something when receiving infrared signals 2 Sends infrared signals of the specified types IR transmitter sends the data here use the libraries only PIN3 port...

Страница 48: ...t and IR frequency For example You need an Arduino Uno board an IR receiver module and an IR remote control Connect the signal pin of IR receiver to Digital pin 3 of Uno board then upload the code and...

Страница 49: ...46...

Страница 50: ...47 2 11 Sensor Block...

Страница 51: ...the distance of ultrasonic sensor measured unit cm 2 Set the control pin of DHT11 temperature and humidity sensor Returns the temperature or humidity of DHT 11 sensor measured 3 Set the pin of digital...

Страница 52: ...r example ultrasonic ranging Connect the Trig pin of ultrasonic sensor to Digital 1 of Uno Echo pin to D2 then upload the code and open the monitor you should see the distance value updating once per...

Страница 53: ...50 2 12 Actuator Block...

Страница 54: ...o pin Moves between 0 180 degree Delay time for servo to rotate 2 Returns that degree with the last servo move Read the degree of servo connected to IO pin set 3 Set the pin and specified frequency fo...

Страница 55: ...52 For example Connect the signal end of servo to Digital 0 of Uno then upload the code below servo will rotate 90 degrees Note Delay 100ms is the time required for servo to move...

Страница 56: ...53 2 13 Monitor Block...

Страница 57: ...NITION 1 Set the IIC LCD1602 address 2 Input the value on LCD line 1 and line 2 from left to right 3 Set the row and column of LCD to print the char 4 Clear the LCD screen 5 Set the control pin and th...

Страница 58: ...nd brightness 7 Set the control pin light number and color click to select the color 8 Clear the data namely turn off digital display 9 Four digit display displaying abcd 10 Turn on or off the digitdi...

Страница 59: ...SCL A5 of Arduino Uno to SDA and SCL pins of IIC LCD1602 then set the address of your LCD1602 screen the LCD address we used here is 0x27 Then upload the code LCD screen has two lines you should see t...

Страница 60: ...57 2 14 Functions Block...

Страница 61: ...reates a function with no output Click the blue icon to set the procedure parameter no return value 2 Creates a function with an output Click the blue icon to set the procedure parameter with return v...

Страница 62: ...an example code for line tracking car We use three tracking modules left to D6 middle to D7 right to D8 of course you need a tracking car to test it First edit the forward backward turn left turn rig...

Страница 63: ...60...

Страница 64: ...61...

Страница 65: ...Arduino 1 5 6 version You can download it from the link below https www arduino cc en Main OldSoftwareReleases 1 5 x Or you can browse the ARDUINO website to download the latest version from this lin...

Страница 66: ...n see the version of development software for different operating systems So ARDUINO has a rather powerful compatibility You should download the software that is compatible with the operating system o...

Страница 67: ...en the ZIP file is downloaded well to your computer you can directly unzip the file and then click the icon of ARDUINO program to start it Installing Arduino Windows Install Arduino with the exe Insta...

Страница 68: ...65 Click I Agree to see the following interface Click Next Pop up the interface below You can press Browse to choose an installation path or directly type in the...

Страница 69: ...66 directory you want Then click Install to initiate installation Wait for the installing process if appear the interface of Window Security just continue to click Install to finish the installation...

Страница 70: ...7 All right up to now you have completed the Arduino setup The following icon will appear on your PC desktop Double click the icon of Arduino to enter the desired development environment shown as belo...

Страница 71: ...listed below Verify Compile Check the code for errors Upload Upload the current code to the Arduino New Create a new blank code Open Show a list of codees Save Save the current code Serial Monitor Di...

Страница 72: ...vers that allow the Arduino to be connected to your computer by a USB cable Before we launch the Arduino software you are going to install the USB drivers Plug one end of your USB cable into the Ardui...

Страница 73: ...option Update Driver Software shown as the figure below It will then be prompted to either Search Automatically for updated driver software or Browse my computer for driver software Shown as below In...

Страница 74: ...1 After that select the option to browse and navigate to the drivers folder of Arduino installation Click Next and you may get a security warning if so allow the software to be installed Shown as belo...

Страница 75: ...nstalled you will get a confirmation message Installation completed click Close Up to now the driver is installed well Then you can right click Computer Properties Device manager you should see the de...

Страница 76: ...e above part you can check the detailed use of Arduino IDE Component Required EASY plug control board 1 USB cable 1 Component Introduction keyestudio EASY plug Control Board V2 0 The processor used in...

Страница 77: ...ntrol board to your computer via a micro USB cable Upload the Code Below is an example code for displaying the Hello World int val int ledpin 13 void setup Serial begin 9600 pinMode ledpin OUTPUT void...

Страница 78: ...y 500 Serial println Hello World Select the Arduino Board Open the Arduino IDE you ll need to click the Tools then select the Board that corresponds to your Arduino Select your serial port Select the...

Страница 79: ...76 Note to avoid errors the COM Port should keep the same as the Ports shown on Device Manager...

Страница 80: ...77...

Страница 81: ...78 Then click verify button to check the errors If compiling successfully the message Done compiling will appear in the status bar...

Страница 82: ...click the Upload button to upload the code If the upload is successful the message Done uploading will appear in the status bar Open the Serial Monitor After that click the monitor button to open the...

Страница 83: ...Hello World is showed on the monitor and TX led blink once Congrats Your first simple program is complete Note In this project we take Arduino code as an example to show Hello World But in the followi...

Страница 84: ...ort the Library 1 Begin with the Mixly projects the first step you should import the corresponding library Open the Mixly 0 998 software click Import Shown below 2 Open the folder we provided you can...

Страница 85: ...82...

Страница 86: ...the custom library successfully you should see it on the Mixly blocks interface Shown below Start with Mixly Project Saying Hello World 1 Hookup Guide Connect the control board to your computer via a...

Страница 87: ...84 2 Open the Program Click Open to open your first program Hello World Follow the steps below...

Страница 88: ...85 Or you can double click or directly drag the program to open Hello World Then you...

Страница 89: ...86 should see the Blocks code shown below...

Страница 90: ...87 After that select the proper Board and Port Upload the code to your EASY Plug control board...

Страница 91: ...the monitor and set the baud rate to 9600 you should be able to see the Hello World is showed on the monitor Congrats You make it 4 Check Arduino Code What more you can also click to check the Arduin...

Страница 92: ...89 Is it more easy and simple to play the Mixly projects Try your first Mixly blocks projects right now Begin with the following projects to motivate your creations...

Страница 93: ...ntrol board 1 EASY plug LED Module 3 RJ11 cable 1 USB cable 1 Component Introduction EASY plug LED Module The LED light modules have shiny colors ideal for Arduino starters It can be easily connected...

Страница 94: ...LED Upload the Code Below is an example code for lighting up an LED What You Should See The LED is turned on If it doesn t make sure you have assembled the circuit correctly and verified and uploaded...

Страница 95: ...92 Example 2 LED Blink Test Code What You Should See...

Страница 96: ...93 The LED will flash on for one second then blink off for one second If it doesn t make sure you have assembled the circuit correctly and verified...

Страница 97: ...make the LED flash on and off more quickly or slowly you can modify the Delay time here Thank you Enjoy the following programming Example 3 LED Breath Here do you know how to connect the LED module C...

Страница 98: ...95 Little Knowledge Here no connection diagram which port should you choose Yeah Pin 5 See the code you can modify the connection pin here...

Страница 99: ...Should See The LED gradually becomes brighter for one second then gradually dimming for one second If it doesn t make sure you have assembled the circuit correctly and verified and uploaded the code t...

Страница 100: ...97 Example 4 Brighten and Dim Hookup Guide Connect the three EASY Plug LED modules to control board using RJ11 cables Upload the Code Below is an example code for three LED modules experiment...

Страница 101: ...98...

Страница 102: ...You Should See The three LEDs are gradually brighter then gradually off one by one circularly If it doesn t make sure you have assembled the circuit correctly and verified and uploaded the code to you...

Страница 103: ...100...

Страница 104: ...e successfully but LED still not lights up Make sure your board and LED module are connected correctly Program Not Uploading This happens sometimes the most likely case is a confused Board and serial...

Страница 105: ...vibration switch which is an inductive proximity switch It is an electronic switch that transmits the sensing result to the circuit device and induces the circuit to start working when the vibration f...

Страница 106: ...www keyestudio com 103 Upload the Code...

Страница 107: ...www keyestudio com 104 What You Should See Done uploading the code if knock the module hard the led will be turned on...

Страница 108: ...www keyestudio com 105...

Страница 109: ...r A photoresistor or light dependent resistor LDR or photocell is a light controlled variable resistor The principal is very simple The resistance of photoresistor varies with incident light intensity...

Страница 110: ...e detector circuits intelligent switch design and light and dark activated switching circuits Interface Easy plug Sensor type analog Working voltage 5V Connect It Up Connect the EASY Plug photocell se...

Страница 111: ...www keyestudio com 108 What You Should See Done uploading the code you should see the analog value change in accordance with how much light your photoresistor is sensing...

Страница 112: ...www keyestudio com 109...

Страница 113: ...www keyestudio com 110 Controlling light brightness Hookup Guide Connect the EASY Plug photocell sensor and LED module to control board using RJ11 cable Test Code...

Страница 114: ...www keyestudio com 111 What You Should See Done uploading the code you should see the brightness of LED change in accordance with how much light your photoresistor is sensing...

Страница 115: ...www keyestudio com 112...

Страница 116: ...troduction EASY plug Passive Buzzer Module We can use Arduino to make many interactive works of which the most commonly used is acoustic optic display The buzzer we introduced here is a passive buzzer...

Страница 117: ...www keyestudio com 114 Upload the Code...

Страница 118: ...www keyestudio com 115 What You Should See Done uploading the code you should be able to hear the buzzer module make a small click...

Страница 119: ...ch Sensor You can find touch sensors mostly on electronic device Instead of buttons upgrade your Arduino project with our new version touch sensor and make it cool This EASY Plug digital capacitive to...

Страница 120: ...www keyestudio com 117 Supply Voltage 3 3V to 5V Sensor type Digital Function range 0 to 100 Connect It Up Connect the EASY Plug touch sensor to control board using an RJ11 cable Upload the Code...

Страница 121: ...www keyestudio com 118 What You Should See Done uploading the code when you touch the sensor the led on the sensor will light up...

Страница 122: ...www keyestudio com 119 Open the monitor it will print out the value read from the touch sensor...

Страница 123: ...www keyestudio com 120 Simulating Table Lamp Test Code What You Should See Powered up and upload well the code press down the button LED light is...

Страница 124: ...turned on it will not be off when release the button But if press the button once again LED will be turned off It seems like your table lamp Open the monitor you should be able to see how many times d...

Страница 125: ...www keyestudio com 122...

Страница 126: ...oading This happens sometimes the most likely case is a confused Board and serial port you should firstly select your proper board and port If it doesn t make sure you have assembled the circuit corre...

Страница 127: ...odule The fan motor module uses the L9110 driver to control the forward and reverse rotation of propeller which can easily blow out the fire of a lighter 20cm away It should be connected to the double...

Страница 128: ...www keyestudio com 125 Connect It Up Connect the EASY Plug fan motor module to control board using an RJ11 cable Upload the Code...

Страница 129: ...www keyestudio com 126 What You Should See Done uploading the code the motor fan will rotate forward for 3 seconds and then rotate reverse for 3 seconds repeatedly...

Страница 130: ...RJ11 cable 2 USB cable 1 Component Introduction EASY plug Flame Sensor The flame sensor can be used to detect fire or other wavelength at 760nm 1100nm light In the fire fighting robot game the flame...

Страница 131: ...www keyestudio com 128 Connect It Up Connect the EASY Plug Flame Sensor and LED module to control board using RJ11 cables Upload the Code...

Страница 132: ...o com 129 What You Should See Done uploading the code put a lighter close to the flame sensor Once the sensor detects the flame the led lights up If isn t you are able to adjust the sensitivity by a p...

Страница 133: ...www keyestudio com 130 Little Knowledge You are able to adjust the sensitivity by a blue potentiometer on the sensor...

Страница 134: ...www keyestudio com 131 Simulating Fire Extinguisher Let s go into an interesting project When detecting the flame by flame sensor the fan motor will rotate to blow out the fire Hookup Guide Test Code...

Страница 135: ...www keyestudio com 132 What You Should See Done uploading the code put a lighter close to the flame sensor Once the sensor detects the flame you should see the fan motor run...

Страница 136: ...Introduction EASY plug Obstacle Avoidance Sensor Infrared obstacle avoidance sensor is equipped with distance adjustment function and is especially designed for wheeled robots This sensor has strong...

Страница 137: ...line count and black and white line tracking and many other occasions Working voltage DC 3 3V 5V Working current 20mA Working temperature 10 to 50 Detection distance 2 40cm Output signal TTL voltage E...

Страница 138: ...www keyestudio com 135 Upload the Code What You Should See...

Страница 139: ...www keyestudio com 136 Done uploading the code when the sensor detects an obstacle the led is turned on...

Страница 140: ...yestudio com 137 Controlling Motor In the previous section we use the obstacle detector sensor to control the LED on and off Now let s try another play controlling the motor rotating Hookup Guide Test...

Страница 141: ...www keyestudio com 138 What You Should See Done uploading the code when the sensor detects an obstacle the fan motor rotates Otherwise fan motor stops...

Страница 142: ...m 139 Troubleshooting Compiling Fails This happens sometimes the most likely case is a library file not added You should be sure that all the libraries are added to the libraries directory of Arduino...

Страница 143: ...www keyestudio com 140 Program Not Uploading This happens sometimes the most likely case is a confused Board and serial port you should firstly select your proper board and port...

Страница 144: ...the Micro Servo and EASY PLUG control board to do some experiments you need to use the EASY plug Servo extension module The EASY plug Servo module is extended into Registered Jack so you can connect i...

Страница 145: ...ay choose to attach any mount you wish for the circuit It will serve as a visual aid making it easier to see the servo spin The rotation angle of servo is controlled by regulating the duty cycle of th...

Страница 146: ...DC 4 8V 220 20mA DC 6V Stop torque 1 1 0 01kg cm DC 4 8V 1 3 0 1kg cm DC 6V Stop current 600 30mA DC 4 8V 750 30mA DC 6V Standby current 4 1mA DC 4 8V 4 1mA DC 6V Operation temperature 10 50 Save tem...

Страница 147: ...www keyestudio com 144 Upload the Code...

Страница 148: ...www keyestudio com 145 What You Should See...

Страница 149: ...www keyestudio com 146 After uploading the code open the serial monitor enter the number 1 to 9 and click Send it will control the servo motor rotate at a certain angle...

Страница 150: ...www keyestudio com 147 Rotating back and forth Complete the above project you can also upload the code below to control the servo motor rotating back and forth at a certain angle Test Code...

Страница 151: ...er Module The EASY plug slide potentiometer uses high quality sliding appliances for stable and reliable performance It is a dual analog output that outputs a 0 VCC analog voltage signal The module pi...

Страница 152: ...www keyestudio com 149 Connect It Up Connect the EASY Plug Slide Potentiometer module to control board using an RJ11 cable Upload the Code...

Страница 153: ...www keyestudio com 150 What You Should See...

Страница 154: ...w keyestudio com 151 After uploading the code open the serial monitor and set the baud rate to 9600 you should be able to see the analog value of analog pin A0 If slide the slider the value will chang...

Страница 155: ...www keyestudio com 152 Controlling LED Brightness Except from reading the analog value of slide potentiometer you are able to use the slide potentiometer to control the brightness of LED Hookup Guide...

Страница 156: ...www keyestudio com 153 Test Code What You Should See After uploading the code slide the potentiometer the brightness of LED will change...

Страница 157: ...www keyestudio com 154...

Страница 158: ...www keyestudio com 155 Controlling Servo Angle Hookup Guide Test Code...

Страница 159: ...www keyestudio com 156 What You Should See After uploading the code slide the potentiometer the servo motor will rotate to a certain angle...

Страница 160: ...ame appearance as a 5050 LED bead and each component is a pixel point The pixel point includes an intelligent digital interface data latch signal shaping and amplifying driving circuit as well as a hi...

Страница 161: ...ection and energy saving high brightness wide scattering angle good consistency ultra low power long life and so on Specifications Operating Voltage DC5V Power 0 1W Light Source SMD 5050 RGB IC model...

Страница 162: ...www keyestudio com 159 Upload the Code What You Should See...

Страница 163: ...www keyestudio com 160 After uploading the code you should see the 4 RGB LEDs flash in different colors Red Green Blue...

Страница 164: ...www keyestudio com 161...

Страница 165: ...11 cable 3 USB cable 1 Component Introduction EASY plug PIR Motion Sensor PIR stands for Pyroelectric Infrared many times they are also referred as Passive Infrared sensors This is because their princ...

Страница 166: ...Maximum 6V Working Current 15uA Working Temperature 20 85 Output Voltage High 3V Low 0V Output Delay Time High Level About 2 3 to 3 Seconds Detection angle 100 Detection distance 7 meters Pin limit c...

Страница 167: ...www keyestudio com 164 Upload the Code What You Should See...

Страница 168: ...www keyestudio com 165 Done uploading the code if the sensor detects someone moving nearby you should see the LED is turned on...

Страница 169: ...www keyestudio com 166 Open the serial monitor and set the baud rate to 9600 it will print out the data...

Страница 170: ...www keyestudio com 167 Controlling Fan Motor Hookup Guide Test Code...

Страница 171: ...keyestudio com 168 What You Should See If the sensor detects someone moving nearby you should see the LED is turned on and the fan motor is rotating Otherwise LED is turned off and motor stops rotati...

Страница 172: ...www keyestudio com 169...

Страница 173: ...www keyestudio com 170...

Страница 174: ...plug LED module 3 RJ11 cable 4 USB cable 1 Component Introduction EASY plug Joystick Module Lots of robot projects need joystick This module provides an affordable solution By simply connecting to two...

Страница 175: ...keyestudio com 172 Connect It Up Connect the EASY Plug Joystick module to control board using an RJ11 cable Note X axis is connected to A6 Y axis is connected to A7 Z axis is default by D2 Upload the...

Страница 176: ...www keyestudio com 173 What You Should See...

Страница 177: ...www keyestudio com 174 Done uploading the code open the serial monitor and set the baud rate to 9600 If push the Joystick button towards different direction you should get the different value...

Страница 178: ...www keyestudio com 175 Controlling LED Lights Hookup Guide Test Code...

Страница 179: ...What You Should See Upload the code successfully push the Joystick X axis to downward the LED light connected to D5 will become off If push the Joystick Y axis to leftward the LED light connected to...

Страница 180: ...www keyestudio com 177 Z axis will control the LED light connected to D7...

Страница 181: ...www keyestudio com 178...

Страница 182: ...00 Ambient Light Sensor Light sensors are probably one of the most common sensors in life They can be found in your laptop phone or home lighting system A light sensor measures the level of light in a...

Страница 183: ...180 Supply Voltage 5V DC 50mA Interface Analog Input Near Human Eye Spectral Response and Very Low IR Sensitivity Connect It Up Connect the EASY Plug TEMT6000 sensor to control board using an RJ11 cab...

Страница 184: ...www keyestudio com 181 What You Should See...

Страница 185: ...182 Done uploading the code open the serial monitor and set the baud rate to 9600 you should be able to see the printed analog value When the sensor detects different light intensity the brightness o...

Страница 186: ...www keyestudio com 183...

Страница 187: ...www keyestudio com 184 Controlling RGB Flash Hookup Guide Upload the Code...

Страница 188: ...ould See Upload the code successfully when the measured light intensity is less than 50 RGB lights are turned on Light 1 flashes in red light 2 flashes in green light 3 flashes in blue light 4 flashes...

Страница 189: ...www keyestudio com 186...

Страница 190: ...www keyestudio com 187...

Страница 191: ...for organic light emitting diode On the microscopic level an OLED display is a matrix of organic LEDs that light up when they emit energy Our EASY Plug OLED displays are perfect when you need a small...

Страница 192: ...e phones and portable digital media players car radios and digital cameras among others Specifications 0 96 diagonal OLED Pixels 128 64 Color Depth Monochrome White 5V power Brightness cd m2 100 Typ C...

Страница 193: ...www keyestudio com 190 What You Should See Done uploading the code you should be able to see the text is displayed on the OLED screen...

Страница 194: ...s the most likely case is a confused Board and serial port you should firstly select your proper board and port Or make sure you have placed all the libraries below into arduino 1 8 5 libraries folder...

Страница 195: ...www keyestudio com 192...

Страница 196: ...e amount of moisture present in the soil surrounding it It s an ideal for monitoring an urban garden or your pet plant s water level This soil moisture sensor uses the two probes to pass current throu...

Страница 197: ...Easy plug Power Supply 3 3V or 5V Working Current 20mA Output Voltage 0 2 3V Sensor type Analog output Surface finish immersion tin Connect It Up Connect the EASY Plug soil sensor to control board usi...

Страница 198: ...www keyestudio com 195 What You Should See...

Страница 199: ...com 196 Done uploading the code open the serial monitor and set the baud rate to 9600 you can see the analog value is 0 When place the two probes of moisture sensor into your plant soil you can see th...

Страница 200: ...www keyestudio com 197 Adding OLED Display If you want to display the soil moisture value more convenient you can add OLED screen Hookup Guide Test Code...

Страница 201: ...www keyestudio com 198 What You Should See Upload success you should see the soil value is showed on the OLED screen...

Страница 202: ...www keyestudio com 199...

Страница 203: ...Y plug Analog Gas Sensor This analog gas sensor MQ2 is used in gas leakage detecting equipment in consumer electronics and industrial markets This sensor is suitable for detecting LPG I butane propane...

Страница 204: ...www keyestudio com 201 Connect It Up Connect the EASY Plug analog gas sensor to control board using an RJ11 cable Upload the Code...

Страница 205: ...www keyestudio com 202 What You Should See Done uploading the test code open the serial monitor and set the baud rate to 9600 you should be able to see the analog value...

Страница 206: ...www keyestudio com 203...

Страница 207: ...www keyestudio com 204 Adding OLED Display If you want to display the gas analog value more convenient you can add OLED screen Hookup Guide Test Code...

Страница 208: ...www keyestudio com 205 What You Should See Upload success you should be able to see the analog value is showed on the OLED screen...

Страница 209: ...www keyestudio com 206...

Страница 210: ...ion EASY plug SR01 Ultrasonic Module This EASY Plug SR01 Ultrasonic module includes ultrasonic transmitter receiver and corresponding control circuit It should be connected to the double digital inter...

Страница 211: ...quency 40KHz Max Range 3 5m Min Range 2cm Measuring Angle 15 degree Trigger Input Signal 10 S TTL pulse Interface double digital Connect It Up Connect the EASY Plug Ultrasonic module to control board...

Страница 212: ...keyestudio com 209 What You Should See Done uploading the code open the serial monitor and set the baud rate to 9600 You should see the measured distance between the ultrasonic sensor and front obsta...

Страница 213: ...www keyestudio com 210...

Страница 214: ...www keyestudio com 211 Turn on Light When the measured distance between an obstacle and ultrasonic sensor is less than a certain range turn the led on Hookup Guide...

Страница 215: ...www keyestudio com 212 Test Code What You Should See Upload success when the measured distance is less than 30 the LED will be turned on Otherwise the LED is turned off...

Страница 216: ...www keyestudio com 213...

Страница 217: ...www keyestudio com 214 Little Knowledge You can modify the setting distance in the code here so that turn on or off led according to the obstacle distance measured by ultrasonic sensor...

Страница 218: ...duction EASY plug DS18B20 Temperature Sensor The DS18B20 temperature sensor is exactly what it sounds like a sensor used to measure ambient temperature The usable temperature ranges from 55 C to 125 C...

Страница 219: ...estudio com 216 Supply Voltage 3 3V to 5V Temperature range 55 C to 125 C Interface Digital Connect It Up Connect the EASY Plug DS18B20 temperature sensor to control board using an RJ11 cable Upload t...

Страница 220: ...www keyestudio com 217 What You Should See...

Страница 221: ...www keyestudio com 218 Done uploading the code open the serial monitor on the window will print out the Celsius and Fahrenheit value...

Страница 222: ...www keyestudio com 219 OLED Display Hookup Guide Connect the EASY Plug DS18B20 temperature sensor and OLED module to control board using RJ11 cables Test Code...

Страница 223: ...www keyestudio com 220 What You Should See Upload success you should be able to see the Celsius and Fahrenheit value are printed out on the OLED screen...

Страница 224: ...www keyestudio com 221...

Страница 225: ...ssfully but LED still not lights up Make sure your board and OLED module are connected correctly Upload Failed This happens sometimes the most likely case is a confused Board and serial port you shoul...

Страница 226: ...www keyestudio com 223...

Страница 227: ...ntegrated temperature compensated crystal oscillator TCXO and crystal A real time clock RTC is a computer clock most often in the form of an integrated circuit that keeps track of the current time It...

Страница 228: ...www keyestudio com 225 Connect It Up Upload the Code...

Страница 229: ...www keyestudio com 226 What You Should See Done uploading the code open the serial monitor and set the baud rate to 9600 you should be able to see the date and the time...

Страница 230: ...r Module 1 EASY plug LED Module 1 RJ11 cable 2 USB cable 1 Component Introduction EASY plug IR Receiver Module Infrared receiver is a component with functions of reception amplification and demodulati...

Страница 231: ...www keyestudio com 228 RJ11 cable Upload the Code What You Should See...

Страница 232: ...one uploading the code when aiming at the IR receiver press down the key on an IR remote controller you should see the key decoding is displayed on the serial monitor If long press the key it will app...

Страница 233: ...www keyestudio com 230 Little Knowledge This test can record all your remote control key decoding So you can apply them to the next experiment to control LED lights...

Страница 234: ...www keyestudio com 231 Remote Controlled Light Hookup Guide Connect the EASY Plug Infrared receiver module and LED module to control board using RJ11 cables Test Code...

Страница 235: ...www keyestudio com 232 What You Should See Upload success press the key 1 on your remote controller LED lights up Then press the key 2 LED is turned off...

Страница 236: ...ww keyestudio com 233 Little Knowledge If you want to change another remote control key you should be able to change your remote key decoding Shown below After that upload the code again and have a tr...

Страница 237: ...o WIKI Website http wiki keyestudio com User Guide Download https drive google com open id 18LIx8Tp8oUYidKidEuqbhHS_EktBGEBp Download all the information here https drive google com open id 1yuif8ccIu...

Страница 238: ...velopment production and marketing Keyestudio is a best selling brand owned by KEYES Corporation our product lines range from Arduino boards shields sensor modules Raspberry Pi micro bit extension boa...

Страница 239: ...APU90DTITU5DG JP Amazon storefront http www amazon jp shops AE9VWCCXQIC6J 9 Customer Service As a continuous and fast growing technology company we keep striving our best to offer you excellent produc...

Отзывы: