I'm on a project to determine the distance between two vehicles and i have used XL- MaxSonar®- AEL0™ (MB1360) (an ultrasonic device) to do it. But i'm having trouble in interfacing it to Atmega168. Can someone please help me with it. ?
I also need the codes to be burnt using an Arduino board.
Trouble ==> if i check the output from the second pin of the sensor using a multimeter i get random readings
but, when i connect it to the 'analog pin 0' it does not display any values. :~ :~ :~
codes so far ==> #inclide<LiquidCrystal.h>
int analogPin = A0; //pin connected to analog out on maxsonar sensor
int distance; // inches away from the maxsonar sensor