SRF485 with Arduino

General & specific discussions on our Ultrasonic Rangers

Moderator: chris

SRF485 with Arduino

Postby charalambos00 » Fri Jul 06, 2012 10:28 pm

Hello,

I recently bought an SRF485 ultrasonic ranger which I want to interface with an Arduino Uno.
I went through the technical specifications, but I am not sure exactly how to send commands to the SRF485 via the Arduino.
1) How do I send a break ?
2) Are digital pins 0,1,2 used to send/receive data to the SRF485 module?
3) If so, how would I send the commands using digitalWrite/digitalRead?
I would imagine they need to be sent serially, not with digital pins.
4) I connected A to RS485+ and B to RS485-, is that right?

Thank you.
charalambos00
 
Posts: 2
Joined: Fri Jul 06, 2012 9:05 pm

Re: SRF485 with Arduino

Postby Gerry » Mon Jul 09, 2012 10:28 am

Sorry, we have never written an example for the Arduino/SRF485.
Also, I'm fairly sure the Uno does not have an RS485 interface so you would need to wire it up to an RS485 driver chip.
User avatar
Gerry
Site Admin
 
Posts: 245
Joined: Wed Nov 08, 2006 12:28 pm

Re: SRF485 with Arduino

Postby charalambos00 » Mon Jul 09, 2012 9:36 pm

Yes I have an expansion board by DFRobot.

One very important question I have though regards the "break" command.
How can I send it programmatically to the SRF485 in order to begin transmitting a packet?
charalambos00
 
Posts: 2
Joined: Fri Jul 06, 2012 9:05 pm


Return to Ultrasonic Sensors

Who is online

Users browsing this forum: No registered users and 1 guest

cron