General

Expansion board v5.0 with SRF485 ultrasonic ranger and Arduino

userHead charalambos00 2012-07-08 13:16:16 6663 Views3 Replies
Hello,

I recently bought an SRF485 ultrasonic ranger which I want to interface with an Arduino Uno. I am thus using DFRduino expansion board v5.0
I went through the technical specifications for SRF485, 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.
2025-02-27 14:57:58

Hi,


Did you buy the SRF485 sensor from us?


Here is a similar product which should give you an idea of how to connect and talk to the sensor.
https://www.dfrobot.com/wiki/index.php?t ... U:SEN0002) 
 

You should have enough sample code and instructions to build your own sketch.


You will probably need to modify the instruction set provided in the library

userHeadPic Hector
2012-08-24 16:54:28 Hey,


Sorry, I don't have an idea now...Have you read through the documentation I suggested?

userHeadPic Hector
2012-08-23 23:49:06 Hello Hector,

Thank you very much for the info and I apologize for the late reply.

I have one issue though. I am not sure how to actually code/program the 'break' that is necessary for the SRF485, prior to sending any other command (to read distance, turn on LEDs, etc).

Do you have any hints on this?
userHeadPic charalambos00