
www.keyestudio.com
207
Project 19: Ultrasonic ranging
Overview
The distance sensors are really commonly seen in robotics projects. So in
this project we will measure the distance with an ultrasound sensor.
Component Required:
EASY plug control board*1
EASY plug SR01 Ultrasonic *1
EASY plug LED module *1
RJ11 cable *2
USB cable *1
Component Introduction:
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 interface with only one line,
which is very convenient. The distance sensor are really common in robotics
projects, very useful for automation, interactive art and motion sensing.
The module comes with four fixed holes, so that can easily fix it on other
devices, such as the servo plastic platform and so on.
Operating Voltage: DC 5V
Operating Current: 15mA
Summary of Contents for EASY PLUG Ultimate Starter Kit
Page 1: ...keyestudio www keyestudio com EASY PLUG Ultimate Starter Kit For Arduino STEM EDU...
Page 8: ...5 28 USB cable 1...
Page 10: ...7...
Page 12: ...9 2 2 In Out Block...
Page 17: ...14 2 3 Control Block...
Page 23: ...20 2 4 Math Block...
Page 28: ...25 2 5 Text Block...
Page 31: ...28 2 6 List Block...
Page 34: ...31 2 7 Logic Block...
Page 37: ...34 2 8 Variable Block...
Page 39: ...36...
Page 40: ...37 2 9 SerialPort Block...
Page 44: ...41...
Page 45: ...42...
Page 46: ...43 2 10 Communicate Block...
Page 49: ...46...
Page 50: ...47 2 11 Sensor Block...
Page 53: ...50 2 12 Actuator Block...
Page 56: ...53 2 13 Monitor Block...
Page 60: ...57 2 14 Functions Block...
Page 63: ...60...
Page 64: ...61...
Page 79: ...76 Note to avoid errors the COM Port should keep the same as the Ports shown on Device Manager...
Page 80: ...77...
Page 85: ...82...
Page 87: ...84 2 Open the Program Click Open to open your first program Hello World Follow the steps below...
Page 88: ...85 Or you can double click or directly drag the program to open Hello World Then you...
Page 89: ...86 should see the Blocks code shown below...
Page 90: ...87 After that select the proper Board and Port Upload the code to your EASY Plug control board...
Page 95: ...92 Example 2 LED Blink Test Code What You Should See...
Page 101: ...98...
Page 103: ...100...
Page 106: ...www keyestudio com 103 Upload the Code...
Page 108: ...www keyestudio com 105...
Page 112: ...www keyestudio com 109...
Page 115: ...www keyestudio com 112...
Page 117: ...www keyestudio com 114 Upload the Code...
Page 122: ...www keyestudio com 119 Open the monitor it will print out the value read from the touch sensor...
Page 125: ...www keyestudio com 122...
Page 138: ...www keyestudio com 135 Upload the Code What You Should See...
Page 147: ...www keyestudio com 144 Upload the Code...
Page 148: ...www keyestudio com 145 What You Should See...
Page 153: ...www keyestudio com 150 What You Should See...
Page 157: ...www keyestudio com 154...
Page 158: ...www keyestudio com 155 Controlling Servo Angle Hookup Guide Test Code...
Page 162: ...www keyestudio com 159 Upload the Code What You Should See...
Page 164: ...www keyestudio com 161...
Page 167: ...www keyestudio com 164 Upload the Code What You Should See...
Page 170: ...www keyestudio com 167 Controlling Fan Motor Hookup Guide Test Code...
Page 172: ...www keyestudio com 169...
Page 173: ...www keyestudio com 170...
Page 176: ...www keyestudio com 173 What You Should See...
Page 178: ...www keyestudio com 175 Controlling LED Lights Hookup Guide Test Code...
Page 180: ...www keyestudio com 177 Z axis will control the LED light connected to D7...
Page 181: ...www keyestudio com 178...
Page 184: ...www keyestudio com 181 What You Should See...
Page 186: ...www keyestudio com 183...
Page 187: ...www keyestudio com 184 Controlling RGB Flash Hookup Guide Upload the Code...
Page 189: ...www keyestudio com 186...
Page 190: ...www keyestudio com 187...
Page 195: ...www keyestudio com 192...
Page 198: ...www keyestudio com 195 What You Should See...
Page 202: ...www keyestudio com 199...
Page 206: ...www keyestudio com 203...
Page 209: ...www keyestudio com 206...
Page 213: ...www keyestudio com 210...
Page 216: ...www keyestudio com 213...
Page 220: ...www keyestudio com 217 What You Should See...
Page 224: ...www keyestudio com 221...
Page 226: ...www keyestudio com 223...
Page 228: ...www keyestudio com 225 Connect It Up Upload the Code...
Page 231: ...www keyestudio com 228 RJ11 cable Upload the Code What You Should See...