Hi, how can we calculate the capacitor and resistor values for PWM low pass filter for converting HY-SRF05 SONAR+Arduino Leonardo Board's digital output to APM 2.6's A0 analog input?
You need to be a member of diydrones to add comments!
I don't think it will be possible to use that sonar because it doesn't output an analog voltage based on the sonar distance. Instead it requires the micro computer (i.e. APM, Pixhawk) to measure the time difference between the spikes.
Hi Randy,
Yep, it's irregular to use this way, but I haven't access to Maxbotix sonars, so I should use another sonars
But I've tested this sonar+Leonardo itself on Arduino IDE software, it reads distances correctly and shows them on serial monitor,
also I've followed this article to use this sonars: http://playground.arduino.cc/Code/NewPing
Thanks :)
Replies
Mehras,
I don't think it will be possible to use that sonar because it doesn't output an analog voltage based on the sonar distance. Instead it requires the micro computer (i.e. APM, Pixhawk) to measure the time difference between the spikes.
Yep, it's irregular to use this way, but I haven't access to Maxbotix sonars, so I should use another sonars
But I've tested this sonar+Leonardo itself on Arduino IDE software, it reads distances correctly and shows them on serial monitor,
also I've followed this article to use this sonars:
http://playground.arduino.cc/Code/NewPing
Thanks :)