![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) | ||
| Quote:
Quote:
| |||
| |
| | (permalink) | |
| Quote:
Just one thing about RF data transfer with wireless modules, Is it better to transmitt in inverted mode rather than normal mode to reduce the error rate? (if so, why)
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| I've just soldered the RF modules and inverters on. Yet to test it, but was wondering whether inversion is necessary for AM modules too? Also, probably a silly question but I'd rather ask it than not: can the the RX and the TX modules share the same antenna? This is assuming that only one module is on at a time.
__________________ www.myspace.com/crimsonroadmap | |
| |
| | (permalink) | ||
| Quote:
Quote:
| |||
| |
| | (permalink) |
| Ok so I'm testing the system step by step and heres what I've come across: 1.Master is sending a 01010101 in a loop out of a a generic digital I/O pin 2.AM TX module modulates amplitude between about 10V RMS and 6V RMS 3.AM RX module on Slave gives pulsed output, but since I only have a multimeter I can't really say whether the high pulse out of the RX module's digital out pin is over 2V for TTL high. This is because I need a fairly long high pulse for the multimeter to settle and show me the right voltage. I understand that if I do try to send too long a high pulse from the TX module, the output from the RX will fall low after a period of a few 100us. I've tried varying the distance between the two modules for the same duration high pulse, and either: 1.the voltage for digital output high from the RX module decreases with increase in distance, or 2.the pulse duration gets shorter with distance - I can't say which again because of not having a scope and only a multimeter. Ok so I'll get access to a scope in the morning but I'd rather have an answer now than wait till tomorrow. :P Basically what I want to know is whether these AM RX module's voltage for digital output high varies with distance from the TX module, or is it the pulse duration which shortens? If it is the latter I guess I'm going to have to go with Manchester coding after all...if it's the first, this is a much bigger problem! Another couple of questions (if you don't mind :P): -the TX module can take up to 14V in and is currently powered via a 5V regulator, I'm thinking of giving it about 12.6V out of the 12V regulated mains PSU which powers the whole board. Would I need another 12V regulator just for the TX module or can I do without it? -I got a couple of 1/4 wave 433MHz flexible whip antennas (monopole), one connected to the antenna pin on the TX module and another to the antenna pin on the RX module. I'm guessing that's good enough for about 5 metres through one wall? Thanks in advance!
__________________ www.myspace.com/crimsonroadmap Last edited by NJ Roadmap; 25th February 2007 at 08:36 PM. | |
| |
| | (permalink) |
| bump.. ..sorry.
__________________ www.myspace.com/crimsonroadmap | |
| |
| | (permalink) |
| Get the scope on and see what's happening, I've never used AM modules so I can't comment on them. | |
| |
| | (permalink) |
| I haven't looked at the scope but I have managed to get it working without Manchester coding and using the USART over a distance of about 10m through a 1-foot concrete wall with minimal errors. I am however going to use a modified version of Manchester Coding by sending 8 normal bits followed 8 inverted bits so that the number of 1's and 0's balance out. Now all I have to do is remember how to convert an ASCII char into binary and invert it! :P
__________________ www.myspace.com/crimsonroadmap | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| I send 8 bits at a time by loading TXREG. I plan to send this: 11001100 followed by another 8 bits, except inverted: 00110011 Net number of 0's and 1's over each set of 8 bits are the equal.
__________________ www.myspace.com/crimsonroadmap | |
| |
| | (permalink) |
| I forgot you were using the USART, to invert the byte just XOR with 0xFF. | |
| |
| | (permalink) |
| thanks. i'm using the '~' command in C.
__________________ www.myspace.com/crimsonroadmap | |
| |
| | (permalink) |
| P.s. do you know anything about antenna's and ground planes? i understand that having a ground plane close to the antenna base reduces losses..
__________________ www.myspace.com/crimsonroadmap | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| 18f452 usart (rs232) and pic | BOBKA | Micro Controllers | 5 | 20th February 2007 06:17 AM |
| PIC USART: Help Please | mortuzahasan | Micro Controllers | 2 | 11th February 2007 07:28 PM |
| Newcomers, please read! (PIC regarded) Upd. 0xD | Jay.slovak | Micro Controllers | 0 | 17th April 2005 02:05 PM |