
dalex
Belgium
Asked
— Edited
Hi Hardware,
I have a HC-SR04 Distance Sensor plugged into my ez-b (or some other device that needs both digital input and output). I want to unplug the connecting digital wires, and in their place, send the digital signals via some kind of RF transceiver. So there would be one module connected to the ez-b, and other connected to the HC-SR04 Distance Sensor, simply performing the function of the two digital wires. Preferably the transceiver should act like a "blackbox" i.e. acts the same as the two digital cables without any extra programming required.
Does such a thing exist? What's the cheapest version of it?
David.
Wireless serial digital port maybe?
Can I just plug this into the ez-b, and have another connected to the HC-SR04 Distance Sensor?
http://products.li2.in/69-arduino-bluetooth-wireless-serial-port-module.html
No extra smarts required?
if yes, that would be about $8 per connection. Can it be done cheaper?
No that wouldn't work, that's a bluetooth ttl module, like what connects the ez-b to the pc (which are in the shop here just fyi)
Hoi Dalex,
Waarvandaan ?
PhG: 3000
I am not sure about the distance and exact usage. You need an intelligent transmitters that requires a built in micro-controller to be involved. The hard way and the cheap one is to add nRF24L01 to a mC of your choice to handle the same functionality . With some additional programming you may can connect to multiple remote sensors modules if needed. A lot of article on google for arduino can help in that.
Updated: The easiest but sure not the cheapest is to add another EZ-B as per @DJ suggestion
what you're looking for is a second EZ-B, or a programmable microcontroller (such as arduino). The only issue with using an arduino, is the hardware and cost would be more than a second EZ-B
Also, keep in mind that you would not be able to transmit the actual digital port status from the HC-SR04. This is because the digital ports on the HC work in nano seconds. They also cannot have any delay or latency. You would need to determine the distance at the HC-SR04 with a Microcontroller, then transmit the distance as a value to the other micro or PC.
How an HCSR04 works is by sending a ultrasonic ping. the time it takes for the ping to return can be calculated into a distance. This is all measured by the speed of sound, which is very fast. Any digital to analog frequency transmitter/receiver would not be able to encode/transmit/decode at that speed.
Thanks Hhammoud and DJ for your detailed answers. I guess I'll have to wait a few years till someone shrinks all the functionality of an ez-b down to a single micro-chip and sells it for $1.
This is probably the cheapest route at the moment: http://lifehacker.com/5989906/build-your-own-arduino-clone-for-less-than-5 (also adding a bluetooth module).
But it's hardly 'out of the box', which is what I need since I'm not a hardware person.