Last week I purchased a transmitter and receiver from Ebay and found little to no documentation about them. All I know is:
Transmitter has 4 pins: +, -, data, enable. Receiver has 4 pins: ground, data, data, vcc.
I connected it all (+ and vcc to 5V, - and gnd to ground) and made two projects in C - one transmitter and one receiver.
First off, why does the receiver have two data pins? They seem to act exactly the same. Anyway, I used just one of them.
Now, all pins are configured and I'm sending 0s and 1s from the transmitter to the receiver and printing whatever is coming through in a never ending loop. I don't really know what the Enable pin does. I just keep it at 0. I tried setting it to 1 too, no difference.
When I set the databit on the transmitter to 1, the receiver understands this as 0 and the device prints just 0 over and over again. When I set the databit on the device with the transmitter to 1, the receiver seems to understand this as both 1s and 0s so the device prints 1s and 0s randomly on the screen. I have no idea how these work and I'd like to be able to send binary codes like 1011 etc to the device with the receiver. I see no pattern at all and I don't how to send information that I can actually interpret.
Could anyone shed some light on the matter?
Transmitter has 4 pins: +, -, data, enable. Receiver has 4 pins: ground, data, data, vcc.
I connected it all (+ and vcc to 5V, - and gnd to ground) and made two projects in C - one transmitter and one receiver.
First off, why does the receiver have two data pins? They seem to act exactly the same. Anyway, I used just one of them.
Now, all pins are configured and I'm sending 0s and 1s from the transmitter to the receiver and printing whatever is coming through in a never ending loop. I don't really know what the Enable pin does. I just keep it at 0. I tried setting it to 1 too, no difference.
When I set the databit on the transmitter to 1, the receiver understands this as 0 and the device prints just 0 over and over again. When I set the databit on the device with the transmitter to 1, the receiver seems to understand this as both 1s and 0s so the device prints 1s and 0s randomly on the screen. I have no idea how these work and I'd like to be able to send binary codes like 1011 etc to the device with the receiver. I see no pattern at all and I don't how to send information that I can actually interpret.
Could anyone shed some light on the matter?