hello guys well i have done a project using geeetech voice recognition module to activate lights using arduino uno using this code :
int led1 = 2;
int led2 = 3;
byte com = 0;
void setup()
{
Serial.begin(9600);
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
delay(2000);
Serial.write(0xAA);
Serial.write(0x37);
delay(1000);
Serial.write(0xAA);
Serial.write(0x21);
}
void loop()
{
while(Serial.available())
{
com = Serial.read();
switch(com)
{
case 0x11:
digitalWrite (led1, HIGH); //turn on ligh 1
break;
case 0x12:
digitalWrite (led1, LOW); // turn off light 1
break;
case 0x13:
digitalWrite (led2, HIGH); // turn on light 2
break;
case 0x14:
digitalWrite (led2, LOW); // turn off light 2
break;
case 0x15:
digitalWrite (led1, LOW);
digitalWrite (led2, LOW); // turn both lights off
break;
}
}
}
but i want to make a remote using nrf24l01+ modules. can anyone suggest me how to send the serial date from nano (transmitter) to an uno (receiver) wirelessly.