Send data to a 2x16LCD wirelessly (TX/RX)

jst3712

Member
Hi guys,

I've been using Picaxe for a while now, but I'm fairly new to the RX/TX wireless communications stuff.

What I want to do is, send 2 strings of text from Picaxe 1 and display the text on a 2x16 character serial LCD connected to Picaxe 2, wirelessly.

I would normally send commands directly to the LCD like this:

serout 4, T2400,(254,128,"TOP LINE ") '1st line of LCD
serout 4, T2400,(254,192,"BOTTOM LINE ") '2nd line of LCD

How can I send these commands to the LCD via the TX/RX modules? Please keep in mind that I want a string of text to appear on the first line and second line separately.

Block diagram:
Picaxe 1 > TX module ..(((wireless))).. RX module > Picaxe 2 > 2x16SerialLCD

I will also be wanting some relatively simple code to deal with packet loss, noise/garbage from other sources etc., so if anyone can come up with some sample code for me, it would greatly appreciated!

My hardware:
- Picaxe 18M2 (sending end)
- Picaxe 18X (receiving end)
- 2x16 character serial LCD
- 433MHz Data Transceiver (TX/RX)
http://www.altronics.com.au/index.asp?area=item&id=Z6900
http://www.altronics.com.au/index.asp?area=item&id=Z6905


Many thanks in advance :)
 

westaust55

Moderator
Step 1 would be to get the comms and what you want working with a wire between the two PICAXE chips

Step 2 is then to introduce the Tx and Rx modules.

Many folks jump in and try to do the entire project in one go and then they are not sure where any bug is and may blame the wrong part of the code/project.
Getting it working with a wired conenction (don't forget to conenct the ground on both cirucits) will prove the basis of sending, receiving and sennding information on to the LCD.

If both PICAXE chips had been M2 parts then you could consider the RFIN and RFOUT commands. Those commands do however require you to send blocks of 8-bytes of data so that would possibly involve some padding of the data.

Next have a look at this thread I started some years ago. Post 35 here has a basic program with the usual preamble, pause and data transmission (including a qualifier) to give you a starting point: http://www.picaxeforum.co.uk/showthread.php?11463-433MHz-Radio-Links-in-Australia/page4

For some background on why $55 should be used for the preamble and other pertinent matters have a look at the threads I gave links to in post 56 here (same thread):http://www.picaxeforum.co.uk/showthread.php?11463-433MHz-Radio-Links-in-Australia/page6
 
Last edited:

jst3712

Member
Step 1 would be to get the comms and what you want working with a wire between the two PICAXE chips

Step 2 is then to introduce the Tx and Rx modules.

Many folks jump in and try to do the entire project in one go and then they are not sure where any bug is and may blame the wrong part of the code/project.
Getting it working with a wired conenction (don't forget to conenct the ground on both cirucits) will prove the basis of sending, receiving and sennding information on to the LCD.

If both PICAXE chips had been M2 parts then you could consider the RFIN and RFOUT commands. Those commands do however require you to send blocks of 8-bytes of data so that would possibly involve some padding of the data.

Next have a look at this thread I started some years ago. Post 35 here has a basic program with the usual preamble, pause and data transmission (including a qualifier) to give you a starting point: http://www.picaxeforum.co.uk/showthread.php?11463-433MHz-Radio-Links-in-Australia/page4

For some background on why $55 should be used for the preamble and other pertinent matters have a look at the threads I gave links to in post 56 here (same thread):http://www.picaxeforum.co.uk/showthread.php?11463-433MHz-Radio-Links-in-Australia/page6
Thanks westaus55.
I agree that trying it out via a wire link first before introducing the RX/TX modules is a great idea. I'll have a go, referring to your links if I need to, and then go from there.
I'll come back here when I get stuck, but I probably won't get a chance to start on this till the weekend.

Cheers.
Jason.
 
Top