I have 433 mhz arduino software partially working.
I can send "this is a string" but cant send number
for (int i=0; i <= 4000; i++){
...send this is string number i
}
i would also like the 433 mhz units to have two way coms between multiple units.
ie temperature of three separate arduino units broadcast to each of them
// [login to view URL]
transmitter with an TX-C1 module
// See VirtualWire.h for detailed API docs
#include
#undef int
#undef abs
#undef double
#undef float
#undef round
void setup()
{
[login to view URL]("setup");
// Initialise the IO and ISR
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(2000); // Bits per sec
int loops = 0;
}
void loop()
{
int loops;
int loops2;
loops=loops2+1;
loops2=loops;
//String stringOne = "Hello String";
for (int i=0; i <= 4000; i++){
String testone="test";
String testtwo=String(testone) +String(i,DEC);
[login to view URL](testtwo);
const char *msg = "hello Bj";
//char *msg = "hello Bj" + String(i,DEC);
char msg = "hello Bj" + i;
[login to view URL]("start");
delay(500);
digitalWrite(13, true); // Flash a light to show transmitting
vw_send((uint8_t *)msg, strlen(msg));
// vw_send((uint8_t *)testtwo, strlen(testtwo));
vw_wait_tx(); // Wait until the whole message is gone
}
}
this is the hardware connected to pins 11(xmit) & 12 (rcv)
[login to view URL]:L:OC:AU:3160
no hardware needs to be built or supplied on this project.