Manual
www.nexusrobot.com Robot Kits manual
23
void loop()
{
incomingByte = ((10485/(analogRead(ISRpin[0])+5))-4); //read the data from signal pin
Serial.println(incomingByte,DEC); // display
delay(500);
}
¾ External device modules
¾ Dual Ultrasonic Sensor (DUS)
¾ Introduction
DUS is based on RS485 interface. It allows a number of sensors working together. Up to 32 units may be
connected together in a RS485 network.
The ultrasonic sensor allows you to determine the exact distance of an obstacle in the sonar field of view.
The cleverness of your robot will depend on a sensitive sensor similar to the one bats use to know their
position and track prey. With advanced programming, you can design compensators in order to perfectly
control your motors according to the obstacle's distance.