technology workshop craft home food play outside costumes
Arduino using Ultrasonic sensor to count/ log objects on a conveyor
by KEAprojects on September 21, 2015
Table of Contents
Arduino using Ultrasonic sensor to count/ log objects on a conveyor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Intro: Arduino using Ultrasonic sensor to count/ log objects on a conveyor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 1: Partlist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 2: Connecting the Ultrasonic Sensor to your Arduino board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 3: Write your code – Or download it from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Step 4: .................................................................................................................. 4
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
http://www.instructables.com/id/Arduino-using-Ultrasonic-sensor-to-count-log-objec/
Author: KEAprojects author's website
KEA is located in the Danish capital of Copenhagen where we teach more than 9000 students in the disciplines within design and technology. These
instructables are created by students as documentation of their projects.
Intro: Arduino using Ultrasonic sensor to count/ log objects on a conveyor
Intro:
This is a instructable that will describe how to use an ULTRASONIC SENSOR with Arduino to count/ log different packages on a conveyor. The instrucable will cover the
physical setup and the program in Arduino. This instrucable will NOT cover how to build the lasercutted conveyor that is powered by a stepper motor.
The result will a log over the counted packages in the serial monitor.
Step 1: Partlist
· Arduino UNO board
· SR04 Ultrasonic Sensor
· USB cable type A/B
· Universal 4 pin Grove Cable
Step 2: Connecting the Ultrasonic Sensor to your Arduino board
Use the Universal 4 pin Grove Cable to connect the Ultrasonic Sensor to your Arduino board in pin D7. Use the USB A/B cable to connect the Arduino board to your
computer. The The distance between the sensor and the floor is 128 mm.
http://www.instructables.com/id/Arduino-using-Ultrasonic-sensor-to-count-log-objec/
Step 3: Write your code – Or download it from here.
When you have uploaded the code to your Arduino you should see something similar to this when opening the serial monitor.
You can edit the intervals in the if-statement to match the objects you want to count.
Hope you enjoy!
File Downloads
transportband_log_implement1.ino (3 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'transportband_log_implement1.ino']
http://www.instructables.com/id/Arduino-using-Ultrasonic-sensor-to-count-log-objec/
Step 4:
Related Instructables
How to use How to Arduino
Arduino Mega Arduino Uno Read analog #1 - Installing
2560 as Arduino Program data directly in Arduino and
Intro Plus Control Arduino
isp by tsillen Arduino Pro uploading a
Projects by Board Processing by
Mini Using Wirelessly With sketch (video) by
electronics for snebtor
Arduino Uno by iPhone, iPad or meanpc
everyone
vigneshraja iPod Using
iArduino App
and Ethernet
Shield by
DjTronix
Advertisements
Comments
http://www.instructables.com/id/Arduino-using-Ultrasonic-sensor-to-count-log-objec/