433 mhz radio transmitter and receiver (RFA001) HELP!

Reefrich

New Member
Hi all, I'm afraid this might be a bit of a rem question and I would be really grateful if someone could help me.

The basics are I am trying to build a circuit that will send a signal via the 433mhz systems when a button is pressed, all I want it to do is simply turn on a light on the reiceiver breadboard when I press a button on the transmitter board. Nothing fancy or anything.

I have built the circuits needed but having issues with the program.

Can any ne help, I imagine it is simply but I just can;t seem to get it going.

Thanks
 

russbow

Senior Member
I have built the circuits needed but having issues with the program.

Can any ne help, I imagine it is simply but I just can;t seem to get it going.
Indeed it is easy, but posting your current circuit diagram and code would help.
 

Dippy

Moderator
"I am trying to build a circuit..."
&
"I have built the circuits needed but having issues with the program."
-?? Have you built them or still prototyping?

Post your EXACT circuit.
Post your current programme code.
Tell us about your power supply including component specs and links if appropriate.
Tell us what checks, if any, you have done so far.

Any other helpful details would be good too.
 

Morrolan

New Member
I believe this is for a slightly different module, but 433Mhz AM pairs are usually "Dumb", i.e. they just transmit and receive serial and 4 pin modes.

Below is some doctored and untested code from the link I gave you earlier - it is a simple serial transmit with a piece of data from a DS18B20 using the 'readtemp' command.


Transmitter code:

Code:
'------------------------------------------------------------
'08M Project Board - Transmitter

SYMBOL TX_PIN = 1
SYMBOL TXLED_PIN = 2
SYMBOL TempSend_PIN = 4

SYMBOL BAUDRATE = N1200
SYMBOL TmpReading = b1
pause 2000
main:

'read temp
readtemp TempSend_PIN,TmpReading     ' read value into b1
pause 150

'blink LED
high TXLED_PIN
pause 50
low TXLED_PIN


pause 50
SerOut TX_PIN, BAUDRATE, ("UUUUUUUUUUUUUUUUUUUUU")   ' We use U's because in Binary they are 01010101, which means it establishes a nice clean signal on this wavelength to start with.

pause 20
	if TmpReading > 127 then 'negative number
		let TmpReading = TmpReading - 128 ' adjust neg value
		b2 = "-"
	Else 'positive
		b2 = " "
	End if


' This next line is Important - we send 3 pieces of data.  The string "TP" as a beginning string and to confirm we are to listen to this packet of data, the data itself stored in TmpReading, and then a check digit of "x" which means "yes we've finished this packet of data" - you'll see why in the receiver code.
serout TX_PIN, BAUDRATE, ("TP",b2,TmpReading,"x")


SerTxD (#TmpReading)   - output the temp to the debug/serial line.

goto main

RETURN
End
'------------------------------------------------------------
Hopefully that makes sense, now for the receiver code (cannabalized to simplify it):

Code:
'------------------------------------------------------------
'18X - Receiver
SYMBOL RCV_PIN = 7
SYMBOL DATA_RCVD =w3
SYMBOL DATA_RCVD_SIGN = b3
SYMBOL CHECK_DATA= b1
SYMBOL BAUDRATE = N1200 'Must b T2400 if using USB-Serial

symbol temp = b12
symbol Cnt= w2 ' Counter


PAUSE 1000



main:
LOW 5
LOW 6

SERIN RCV_PIN, BAUDRATE,("TP"), DATA_RCVD_SIGN, DATA_RCVD, CHECK_DATA  ' As you can see, we receive the string "TP" as a start point, then the +  or - symbol, then the temp, then the check digit of "x". 


'  Now we check we actually got valid and sensible data.
	if CHECK_DATA = "x" then

		SERTXD ("Val ", DATA_RCVD_SIGN, #DATA_RCVD,13,10)

		'turn green
		LOW 5
		HIGH 6
		pause 100


		'Turn Red
		LOW 6
		HIGH 5

	End if

	pause 100
	
let cnt = DATA_RCVD

GOTO main


'RETURN
'------------------------------------------------------------
The code has been syntax-checked, but I don't have my receivers setup at the moment to test it.

Hopefully that should be enough code-wise, but we really need to see your circuit to see where the fault may lie.

Regards,
Morrolan
 
Last edited:

MPep

Senior Member
Sorry to point this out, but with such a simple requirement, a PICAXE is not even needed!
The button should apply power to the transmitter, and on the receiver the output should have a transistor to drive a LED/lamp.

Did I miss something??
 

eclectic

Moderator
Sorry to point this out, but with such a simple requirement, a PICAXE is not even needed!
The button should apply power to the transmitter, and on the receiver the output should have a transistor to drive a LED/lamp.

Did I miss something??
But we still don't know
how the OP has built his circuit.

e
 
Top