Hubei Hannas Tech Co.,Ltd-Professional Piezoceramic Elements Supplier
News
You are here: Home / News / Ultrasonic Transducer information / How to use Arduino and ultrasonic sensors to count objects on a production conveyor belt

How to use Arduino and ultrasonic sensors to count objects on a production conveyor belt

Views: 2     Author: Site Editor     Publish Time: 2020-09-22      Origin: Site

Inquire

facebook sharing button
twitter sharing button
line sharing button
wechat sharing button
linkedin sharing button
pinterest sharing button
whatsapp sharing button
sharethis sharing button

Step 1: Parts list

·Arduino UNO board

·SR04 ultrasonic transducer sensor

·USB cable type A/B

·Universal 4-pin Grove cable

Step 2: Connect the 200KHz ultrasonic transducer to the Arduino development board

QHA00`XE17QUKYF2)`RSLT



Use a universal 4-pin grove cable to connect the ultrasonic sensor in pin D7 to the arduino board. Using the USB A/B cable to connect the arduino development board to the computer. The distance between the sensor and the ground is 128 mm.

Step 3: Write the code-or download the code from here.

BI6FJT0)JTNAEG(IDS193V

After uploading the code to the arduino, you should see something similar when you open the serial monitor.You can edit the interval in the if statement to match the object to be counted. In the example, the height of the ultrasonic transduce distance measurement is 40 mm, 53 mm and 72 mm.

 


Feedback
Hubei Hannas Tech Co.,Ltd  is a professional piezoelectric ceramics and ultrasonic transducer manufacturer, dedicated to ultrasonic technology and industrial applications.                                    
 

RECOMMEND

CONTACT US

Add: No.302 Innovation Agglomeration Zone, Chibi Avenu ,Chibi City, Xianning, Hubei Province,China
E-mail: sales@piezohannas.com
Tel: +86 07155272177
Phone: +86 +18986196674         
QQ: 1553242848 
Skype: live:mary_14398
​        
Copyright 2017  Hubei Hannas Tech Co.,Ltd All rights reserved. 
Products