|
|
View previous topic :: View next topic |
Author |
Message |
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
RF Link problems... |
Posted: Mon Feb 23, 2009 5:52 am |
|
|
Hello all...
I acquired both sparkfun WRL-08948 receiver and WRL-08945 transmitter.
My problem is in their communication...
I'm able to communicate with PC using MAX232...
As soon as I connect my transmitter to PIN_B5(TX) my computer stops reading anything....the problem is that if I connect MAX232 pin11 to my receiver it doesn't get anything either :/.
Code: | #include <16F88.H>
#fuses INTRC_IO, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=8000000)
#use rs232(baud=2400, xmit=PIN_B5, rcv=PIN_B2, ERRORS)
//============================
void main()
{
int8 c;
while(1)
{
putc('A'); // Send it back to the PC
delay_ms(50);
}
} |
Any tips?
Thank you all ;) |
|
|
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
|
Posted: Tue Feb 24, 2009 3:08 pm |
|
|
Anyone? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Feb 24, 2009 7:02 pm |
|
|
Code: |
PIC ===> RF Link ~~~~~~ RF Link ===> PC
Transmitter Receiver
|
Is this a correct schematic of your connections ?
Does the PIC board (on the left) have a MAX232 chip on it ? |
|
|
Guest
|
|
Posted: Tue Feb 24, 2009 10:03 pm |
|
|
Well...I use a PIC to transmit data...and receiver+MAX232 to get data...something like:
PIC----->transmitter
receiver-->MAX232
So, the receiver doesn't connect to the PIC, only transmiter...
Thanks PCM ;) |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Guest
|
|
Posted: Thu Feb 26, 2009 3:09 pm |
|
|
still nothing :/
Ill give more info...
Receiver:
My receiver's digital output is connected to pin 11 of MAX232N (tried both analog and digital outputs). both 3 GND's are shorted, same for both +5V, both connected to GND and +5V.
MAX232N:
4 capacitors, all 1uF 63V, 1 connected to pin +1-3, other +4-5, other from pin +2 to VCC, from 6 to +VCC.
(+ indicates the positive of the capacitor)
Pin 16 to VCC, 15 to GND, 14 to RxD (serial port).
Pin 11 to receiver.
0V from serial to GND.
(it may look a bit complicate but its the typical connection, and it works, just doesnt work with the RF receiver, problem must be in the receiver).
Transmiter:
GND to GND, +5V to VCC, DATA to PIC'c pin b5.
Im not using any antennas, but i tried with antennas, still no luck...
Im using the same protoboard for both transmiter, receiver, MAX232 and PIC.
Im using the same "power source" for all 4...
My power source comes from an usb port at the same computer where the serial cable connects to. (cool thing is that I dont need GND pin from usb, since its shared, but im using it anyway).
Thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|