Ks0242 keyestudio EASY plug SR01 Ultrasonic Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 49: Line 49:
'''Hookup Guide'''<br>
'''Hookup Guide'''<br>
<br>[[File:超声波灯.jpg|500px|frameless|thumb]]<br>
<br>[[File:超声波灯.jpg|500px|frameless|thumb]]<br>
<br>
<br>
'''Test Code'''<br>
'''Test Code'''<br>
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0398 19.2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0398 19.2.png|600px|frameless|thumb]]<br>
 
<br>
<br>
'''What You Should See'''<br>
'''What You Should See'''<br>
Line 62: Line 64:
<span style="color: red">'''Little Knowledge:'''</span> <br>
<span style="color: red">'''Little Knowledge:'''</span> <br>
* 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.
* 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.
<br>[[File:ks0398 19-4.png|500px|frameless|thumb]]<br>
<br>[[File:ks0398 19-4.png|600px|frameless|thumb]]<br>




<br>
<br>
==Resources ==
==Resources ==
'''Download the Arduino Code and Datasheet:''' <br>
'''Download the Arduino Code and Datasheet:''' <br>

Revision as of 14:23, 8 May 2019

EASY plug SR01 Ultrasonic Module


Introduction

The distance sensor are really common in robotics projects, very useful for automation, interactive art and motion sensing.
This EASY Plug SR01 Ultrasonic integrates ultrasonic transmitter, receiver and corresponding control circuit.
It should be connected to the double digital interface with only one line, which is very easy to use and convenient for connection.
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.
Note: this module should be used together with EASY plug control board.

thumb


Specification

  • Operating Voltage: DC 5V
  • Operating Current: 15mA
  • Operating Frequency: 40KHz
  • Max Range: 3--5m
  • Min Range: 2cm
  • Measuring Angle: 15 degree
  • Trigger Input Signal: 10µS TTL pulse
  • Interface:double digital


Technical Details

  • Dimensions: 49mm*26mm*28mm
  • Weight: 11.3g


Connect It Up

Connect the EASY Plug Ultrasonic module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb

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

thumb
thumb


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

thumb


Test Code
Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


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

thumb


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.


thumb



Resources

Download the Arduino Code and Datasheet:
https://drive.google.com/open?id=15Aw7r31cNlzVkqcS--DO9C_4SJztmRY7

Download the Mixly Code and Datasheet:
https://drive.google.com/open?id=1BC_cCoIxkV4-ppGngI_voM4N45cfYpOl



Buy from