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 8th August 2007, 06:50 PM   (permalink)
Default RF Link Issues

Hello I am using a RF Transmitter/Receiver pair from here:
http://www.sparkfun.com/commerce/pro...oducts_id=7813

I wrote this code in the BX24 to test the RF Link:

'--------------------------------------------------------------------
Option Explicit

Dim Com3_In(1 to 30) As Byte
Dim Com3_Out(1 to 30) As Byte

Public Sub Main()

Do

Call PutPin(25, 0) 'Turn on Red LED to represent the Transmit
signal being sent

'Define pins for Com3 (TX = pin8).
Call DefineCom3(0, 8, bx1000_1000)
'Open Com3 serial port queues.
Call OpenQueue(Com3_Out, 30)
Call OpenQueue(Com3_In, 30)
'Open Com3 at 2400, N, 8, 1
Call OpenCom(3, 2400, Com3_In, Com3_Out)

Call PutQueueStr(Com3_Out, "Transmit ")

Delay(1.0)
Call PutPin(25, 1) 'Turn off Red LED
Delay(1.0)

Loop

End Sub
'--------------------------------------------------------------------

More info:
Pin 8 on the BX24 is tied to the TX data pin
Data pin on the RX is tied to what Pin 1 on the BX24 would normally
be connected to
12v supplied to the TX
5v supplied to the RX
Setup the Monitor Port to:
Com Port 1
Baud 2400
Parity None
Data Bits 8
Stop Bits 1

I was hoping the code would allow for the RF link to work, so that
way I could in the future "debug.print" info to my PC while the BX24
is not connected. Any reason why the code does not work?

I appreciate any info you can share.

Conrad
Conrad_Turbo is offline  
Old 8th August 2007, 08:56 PM   (permalink)
Default

Read my tutorials about using RF modules with PIC's!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 9th August 2007, 06:48 PM   (permalink)
Default

After working on the project for a bit longer I did this:

Data pin on the RX is tied to what Pin 2 (NOT Pin 1 as I stated earlier) on the BX24 would normally
Went into "Start", "Control Panel", "System", "Hardware", "Device Manager" and changed the info on COM1 to match the info I programmed the BX24 to output
Put a LED on the data pin for the TX and RX units, the TX lights up when the data is being sent. The LED on the RX unit does get brighter when it's receiving the transmission, however once the transmission is complete the LED slightly glows.

When checking the BasicX monitor screen the message comes across "Transmit" but along with that a lot of other garbage and misc text and symbols.

So I do have a link between the two units, however is the RX data output LED supposed to glow when it's not getting a signal from the TX unit?

Nigel, I took a look at your site about Manchester coding. If I sent a signal with that type of coding, I would need a decoder on the other end then correct? I was just hoping to have a straight through RF link between the BX24 and the PC.
Conrad_Turbo is offline  
Old 9th August 2007, 09:05 PM   (permalink)
Default

Quote:
Originally Posted by Conrad_Turbo
Nigel, I took a look at your site about Manchester coding. If I sent a signal with that type of coding, I would need a decoder on the other end then correct? I was just hoping to have a straight through RF link between the BX24 and the PC.
Yes you would need a decoder, if you're wanting to do it without, then read the first part of my tutorial which explains why you may have problems.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 13th August 2007, 10:50 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Yes you would need a decoder, if you're wanting to do it without, then read the first part of my tutorial which explains why you may have problems.
Ah I understand. So what is a useful encoder/decoder for transmitting a RS232 signal via the TX/RX units I selected?
Conrad_Turbo is offline  
Old 13th August 2007, 11:13 PM   (permalink)
Default

Quote:
Originally Posted by Conrad_Turbo
Ah I understand. So what is a useful encoder/decoder for transmitting a RS232 signal via the TX/RX units I selected?
You write it in the software in the micro-controllers you use, or many radio module manufacturers sell specific chips to do it. For a PIC check my tutorials.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
RF Modulator Help! NFLBlitze1 General Electronics Chat 6 2nd August 2007 12:25 AM
bluetooth or RF ashfsk Electronic Projects Design/Ideas/Reviews 9 23rd May 2007 08:26 AM
PIC with RF module as remote control bananasiong Micro Controllers 22 20th March 2007 01:59 AM
GPS serial data over an audio rf link Geoff172 Electronic Projects Design/Ideas/Reviews 3 4th March 2007 06:59 PM
Ti-83 plus wireless link circuit help Halogrunt1234 Electronic Projects Design/Ideas/Reviews 41 13th April 2006 02:28 AM



All times are GMT. The time now is 06:11 PM.


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

eXTReMe Tracker