RF transmitter working with LCD


hi everyone,

i'm new forum , new arduino. i'm looking advice on how create device receives signal rf transmitter , displays message on arduino lcd when receiver within range of transmitter.

i've been trying myself following these instructions , using virtualwire library:

http://www.instructables.com/id/rf-315433-mhz-transmitter-receiver-module-and-ardu/

unfortunately, i've been struggling adapting code in order display message on lcd when transmission signal received.

i've been using following equipment far:

2 x arduino uno

rf transmitter & receiver kit 433mhz (http://www.ebay.co.uk/itm/131144682267?sspagename=strk:mewnx:it&_trksid=p3984.m1497.l2649)

lcd arduino starter kit

if has advice on how adapt code instructables instructions in order include lcd appreciated i'm struggling! or if has advice on better way it, appreciated.

thanks,

john

i think i've managed figure out, using code transmitter:

#include <virtualwire.h>
void setup(){
 vw_setup(2000); // bps
 }
void loop(){
   send("hello_world"); //your message
 delay(1000);
 }
void send (char *message){
 vw_send((uint8_t *)message, strlen(message));
 vw_wait_tx();
 }


and code receiver:

#include <virtualwire.h>
#include <liquidcrystal.h>

// initialize library numbers of interface pins
liquidcrystal lcd(12, 10, 5, 4, 3, 2);

byte message[vw_max_message_len];
byte messagelength = vw_max_message_len;
void setup(){
 serial.begin(9600);
 serial.println("device ready");
 vw_setup(2000); //bps
 vw_rx_start();
 }
void loop(){
 if (vw_get_message(message, &messagelength)){
   lcd.begin(16, 2);
   // print message lcd.
   lcd.print("hello_world");
     for (int = 0; < messagelength; i++){
       serial.write(message[ ]);
       }
     serial.println();
   }
 }


now need adjust code message disappears when rf transmitter out of range. if has advice doing appreciated.


Arduino Forum > Using Arduino > Project Guidance > RF transmitter working with LCD


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support