How to connect and use the On Shine 433MHz Low Cost Transmitter/Receiver Pair?

I have been looking at the schematics for them and I think I know how to hook up the Transmitter but I don’t know what the atn pin is for or where to hook it up. I am having the same problem with the Receiver. I know where some of the pins connect (or I have an idea where) but I do not know what all the pins do or where they all hook up. Also I do not know how to program it. I am using a PICAX 28X and just want to be able to send data back to the microntroller from my computer concerning servo control, and have my microcontroller send video and sensor data back to my computer. I have been reading through the tutorials included and have been learning a lot but there is nothing about this I could find so any and all help is appreciated.

Thanks for your help :smiley:

Ok so I just need to hook some wire to the antenna pin for an antenna. But what is the LINEAR OUTPUT pin used for and do I hook it up to an analog input or a digital input? Also for right now I just need to send back data from a camera back to my comp and servo position from my comp to the microcontroller how would I program this? There is one mention of serial communication in the tutorials but it is a debug command and uses the USB cable. I am just looking for key words or source code on how to program my microcontroler to do this.

Thank you for your help so far :smiley:

Ok I have been playing around with the serin and serout functions. I had it set to turn on a laser when it revives a 1 and off if it receives something other then 1 and I had it set at a baud rate of 2400 on an inverted output. The test was some what a success. The radio interference from the wireless network in my house turned the laser on and off randomly (at least that is what I think was causing it) so then I add the word “on” to the senin to make it more stable.

But I then was trying the time out command and set it to turn on a LED after 2 seconds. It worked in the simulations but when I tried it out it didn’t work. Is it because of the radio interference or am I missing something?

And thanks for your help so far.

Thanks for all the help :slight_smile:

Hi,

The ANT pin is where you connect your antenna. “We suggest a 6.5 Inch piece of 22 to 32 guage solid insulated wire for the antenna.”

You may want to start off by sending some serial data. Not sure if you will be able to send video as well, this will need to be tested because if there is too much data to send it may take too long or give choppy results. Usually we would suggest a seperate audio/video transmission system and to keep the OnShine modules for servo and sensor data transmission.

You can ignore the Linear Out, just use the Digital out and connect the Receiver digital out to a USB to Serial converter’s RX pin to receive data on your PC via a COM port. To send data, connect the transmitter data input to the TX pin on your PICAXE. You choose the pin you want to use.

For how to program this, check out the command reference.

SEROUT pin,baudmode,({#}data,{#}data…)

There are some variants to this command that are documented.

It could be radio interference, it could be a bad antenna or positioning. Otherwise try dropping the baud rate even more and see if it helps. Otherwise creating a more robust communication protocol by using error checking of the data, sending it multiple times and getting a confiirmation of receipt, will all help make your system more robust.