![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I am using a PC to transmit data using the serial port. The signals will go through a MAX232 chip before going into the RF transmitter module that i got. At the receiver module, it is connected to a PIC microcontroller. The PIC can't seem to respond to the RF tranmission (it was ok without RF transmission) I tested the RF transmitter and receiver using switches, LEDs and encoder / decoder chips and it was working. Using: Transmitter AM-RT4 http://www.farnell.com/datasheets/33590.pdf Receiver AM-HRR3 http://www.farnell.com/datasheets/33591.pdf So is the problem something to do with the baud rate? The transmission baud rate is currently 9600. According to the transmitter datasheet, it can only accept data rates of up to 4000Hz. The receiver can have data rate of only 2000Hz. Is this enough for a 9600 baud transmission? | |
| |
| | (permalink) |
| try dropping down the baud rate , it couldent hurt.. from what i see your reciever is capable of 4800 baud .. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | ||
| Quote:
But you should be aware that generally you can't send plain RS232 via these radio modules, you need some kind of encoding (None Return to Zero - NRZ) for it to work. I have done it (for a crude example), but I had to invert the RS232, as the modules won't transfer a continuous high level (as RS232 sends in between bytes). You can buy more expensive modules which provide the encoding/decoding in the modules (usually with on-board PIC's) - these allow standard RS232 to be sent and received. | |||
| |
| | (permalink) |
| http://www.dutchforce.com/~eforum/in...topic=2403&hl= There is also a minimum data rate. | |
| |
| | (permalink) |
| From a quick reading of the datasheets it infers that you can connect a TTL/CMOS level signal directly to the transmitter module and it will be transferred to the output of the receiver. You have demonstrated this with your switches and LEDS. An external modem should not be necessary. The receiver is stated to allow a signal of 2000hz. This is your problem if running at 9600 bits/sec. Consider a data signal with alternating 0 1 0 1 0 1 etc. This is a squarewave with a frequency of half the bit rate. so a 9600 bps signal will be equivalent to a 4800hz square wave. To transmit this you need AT LEAST 4800 hz frequency response through your system. Try turning your speed down to 1200 bps and try again, it should work ok. When you have that working, try turning the speed up. I guess it will stop working around 4000 bps (+/- a lot!). JimB | |
| |
| | (permalink) | |
| Quote:
If the radio link can cope with 50 to 2000 Hz then I suspect it will need more than a 'simple' data stream to be successful. I have a hunch you will need something along the lines of a modem at each end to turn data into tones (encoder / decoder?), transmit two tones and then decode them back to data. If I am right then your data rate may end up below 1200 baud before it works reliably. You also mentioned a MAX232 line driver - NO !
__________________ I need a memory upgrade ... My head is full ! | ||
| |
| | (permalink) |
| You probably want to get the RF600T from the same manufacturer as your TX/RX modules. Here's the link: http://www.rfsolutions.co.uk/acatalo...ceiver_IC.html | |
| |
| | (permalink) | |
| Quote:
I tried with baud rates as low as 300 but it still won't work. It displays lots of weird symbols and characters when i just send an ASCII code. P.S: Is it just me or is the forum server facing problems because it seems to be down quite often | ||
| |
| | (permalink) | ||||
| Quote:
Quote:
Quote:
| |||||
| |
| | (permalink) | |
| Quote:
The project in this link seems to be able to send serial data in this way: http://www.seattlerobotics.org/encod...robarnold.html | ||
| |
| | (permalink) | |||
| Quote:
Quote:
The link you posted solves the problem the same way I did, by using a software UART (there is no hardware one in the F84). By using a software UART you can invert the serial data in the software - if you use a hardware UART you can't do that!. | ||||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| ok i think i beginning to get what u mean. So is it something like the picture below? So the problem is caused because the signal will have a sequence of highs until the next byte of message is sent. These highs will cause problems in the transmission (synchronization??). So we need to invert the signals at transmission and then invert back at the receiver side to eliminate these continuous highs. Am i correct on this?? Really thanks a lot. This is a real mystery problem to me until now... i think | |
| |
| | (permalink) | |
| Quote:
You can either set your connection speed to 2Kbps or change your FM receiver to 4Khz so that you can get a 4Kbps data rate. By the way, I take that "whatever" baud equals "whatever" bits per second, but baud rate doesn't always mean bits per second. | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |