Go Down

Topic: SRF485 ultrasonic ranger and Arduino Uno (Read 1 time) previous topic - next topic

charalambos

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.

AWOL

Quote
How do I send a break ?


Quote
Break - is defined as a continuous low in excess of 22 bit periods, followed by a high of 2 bit periods. Each bit is 26uS at 38400 baud, so 22 * 26uS = 572uS, it's ok to be longer.


Why chose such an interface, when simpler ones with less rigorous specs are available?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

charalambos

I want to try this interface because of the capability of placing many sensors on one bus.


I want to try this interface because of the capability of placing many sensors on one bus.


Good point, RS485 can support multiple devices on one bus.  But, with the high cost per sensor, it seems it would be cheaper to go with multiple SRF05's and just use hardware with more pins available.  Keep in mind that the SR04 and SRF05 can be wired to use only one pin each when used with the NewPing library.  Also, they are extremely cheap, like 1/10th the price of a RS485.

Tim
Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

AWOL

Or even I2C like an SRF02 for medium length cables.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

charalambos

Thanks everyone. So I guess nobody ever tried SRF485 with Arduino?
Also note I am using DFRobot's expansion board V5.0


Thanks everyone. So I guess nobody ever tried SRF485 with Arduino?
Also note I am using DFRobot's expansion board V5.0


Just not popular I'm sure due to the high cost.  SR04 sensors can be purchased for <$3 on eBay.  And if your project will use multiple sensors, the difference in price is even greater.  How many sensors do you plan on having?  How many pins do you have available?

Tim
Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

charalambos

Not sure how many sensors yet. I just want to interface two for the time being for the sake of testing them.

charalambos

Hello again,

Just making a note that I want to use the SRF485 not only because of the capability of placing many sensors in one bus, but also because of the capability of driving 3 LEDs at once.


Hello again,

Just making a note that I want to use the SRF485 not only because of the capability of placing many sensors in one bus, but also because of the capability of driving 3 LEDs at once.


You can drive 3 LEDs with any ultrasonic sensor.  There's nothing magic about the SRF485 that allows you to use more LEDs.

Tim
Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

Go Up