Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 21st February 2007, 10:36 PM   (permalink)
Default

Quote:
Originally Posted by NJ Roadmap
I am confused about this, can you elaborate a bit about when a signal may drop too weak? (whats confusing me is that i am using inversion so surely a drop in signal should keep it high?)
Sorry, it's not the logic level going low, it's the signal level going low - this may (and WILL for FM) cause the logic level to randomly change.

Quote:

I am planning to use ZTX653 NPNs for the signal inversion and planning to transmit and receive at 300bps to start off with to reduce chances of errors. Hopefully this will work tomorrow!
As in your other post, the simple NOT gate will be fine, there's no impedance problems to worry about, it's all just logic.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 22nd February 2007, 04:51 PM   (permalink)
Default

Quote:
Originally Posted by NJ Roadmap
Heres a link where I'm getting my info for the transistor inverters:
http://www.kpsec.freeuk.com/trancirc.htm
Thats a great site!!

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
gramo is offline  
Old 22nd February 2007, 06:04 PM   (permalink)
Default

Quote:
Originally Posted by gramo
Thats a great site!!

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)
Check my PIC Wireless tutorial at http://www.winpicprog.co.uk/pic_tutorial12.htm which explains why!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 24th February 2007, 03:32 PM   (permalink)
Default

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
NJ Roadmap is offline  
Old 24th February 2007, 05:02 PM   (permalink)
Default

Quote:
Originally Posted by NJ Roadmap
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?
I would have thought so, it's the AC coupling which requires it.

Quote:

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.
It's usually done via PIN diode switching, I wouldn't suggest just connecting them together.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 25th February 2007, 08:30 PM   (permalink)
Default

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.
NJ Roadmap is offline  
Old 26th February 2007, 04:29 PM   (permalink)
Default

bump..

..sorry.
__________________
www.myspace.com/crimsonroadmap
NJ Roadmap is offline  
Old 26th February 2007, 10:38 PM   (permalink)
Default

Get the scope on and see what's happening, I've never used AM modules so I can't comment on them.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 27th February 2007, 06:42 PM   (permalink)
Default

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
NJ Roadmap is offline  
Old 27th February 2007, 06:49 PM   (permalink)
Default

Quote:
Originally Posted by NJ Roadmap
Now all I have to do is remember how to convert an ASCII char into binary and invert it! :P
What's to convert?, it's presumably already stored as a binary value in a GPR (or W) just send it a bit at a time (check my RS232 tutorial).
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 27th February 2007, 07:07 PM   (permalink)
Default

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
NJ Roadmap is offline  
Old 27th February 2007, 07:26 PM   (permalink)
Default

I forgot you were using the USART, to invert the byte just XOR with 0xFF.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 27th February 2007, 08:40 PM   (permalink)
Default

thanks. i'm using the '~' command in C.
__________________
www.myspace.com/crimsonroadmap
NJ Roadmap is offline  
Old 27th February 2007, 08:41 PM   (permalink)
Default

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
NJ Roadmap is offline  
Old 27th February 2007, 09:30 PM   (permalink)
Default

Quote:
Originally Posted by NJ Roadmap
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..
A 1/4 wave whip is essentially a dipole, with the other half 'reflected' in the ground plane - so a 1/4 wave whip mounted on a ground plane works a LOT better than without one.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
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



All times are GMT. The time now is 07:35 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker