0% found this document useful (0 votes)
38 views

Ultrasonic

This document discusses how visual perception works in humans and bats. It explains that a workshop will demonstrate how bats and dolphins use echolocation to navigate instead of vision. The workshop will provide a Roboduino board to program ultrasonic sensors and measure distance without using sight. Instructions are given to connect an ultrasonic sensor to the Roboduino board and program it to ping the sensor and output the distance measured in inches and centimeters to the serial monitor.

Uploaded by

jaxshah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Ultrasonic

This document discusses how visual perception works in humans and bats. It explains that a workshop will demonstrate how bats and dolphins use echolocation to navigate instead of vision. The workshop will provide a Roboduino board to program ultrasonic sensors and measure distance without using sight. Instructions are given to connect an ultrasonic sensor to the Roboduino board and program it to ping the sensor and output the distance measured in inches and centimeters to the serial monitor.

Uploaded by

jaxshah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

By ROBOSPECIES

Visual perception is the ability to interpret the


surrounding environment by processing
information that is contained in visible light
In human brain is the main part which
interpret the light sensing of eyes into an
image

But what happens in the case of bats ?


How does a shrew or dolphins or tooth
whales find their way
How can you find a creak in metal without
seeing it
All those things will be explained in workshop

Roboduino board will be provided with help


of which we can do lots programming
Function of Roboduino board is explained
Now make the following connections:

Connect Vcc of Ultrasonic Sensor to 5V Pin of


Roboduino
Connect Trig. Pin with Digital Pin no.11
Connect Echo Pin with Digital Pin no.10
Connect GND pin of Sensor with GND pin of
Roboduino Board.

PROGRAM IT:
#include <NewPing.h> //include library
#define TRIGGER_PIN 11
#define ECHO_PIN
10
//declare pin nos.
#define MAX_DISTANCE 200
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE);
// NewPing setup of pins and maximum distance.
int DistanceIn;
int DistanceCm;
//declare variables
void setup()
{
Serial.begin(9600);
Serial.println("UltraSonic Distance Measurement");
}

void loop()
{
delay(100);// Wait 100ms between pings (about 10 pings/sec). 29ms
should be the shortest delay between pings.
DistanceIn = sonar.ping_in();
Serial.print("Ping: ");
Serial.print(DistanceIn); // Convert ping time to distance and print
Serial.print(" in
");
// result
delay(100);// Wait 100ms between pings (about 10 pings/sec).
DistanceCm = sonar.ping_cm();
Serial.print("Ping: ");
Serial.print(DistanceCm);
Serial.println(" cm");
}

You might also like