Communication, Embedded systems

Time for Some Remote Control with 315MHz Remote Controller

In this article, we’ll look at how to interface a 315Mhz 4 channels wireless remote control with Arduino UNO. Specifically, we’ll be looking at how to control the inbuilt LED.

What you’ll need to carry out this project

Hardware

  • 315MHz 4 channels wireless remote control, get it here
  • Arduino UNO micro-controller, get it here
  • Breadboard and jumper wires, get here

Software

  • Arduino IDE, get it here

Introducing the 315MHz wireless Remote Control

RF modules offer the capability to wireless transmit data on electronic and robotics projects, this modules are extremely easy to use and are quite cheap which make them ideal for projects. The receiver/transmitter uses an IC PT2272. They are commonly used in inexpensive wireless devices to control garage doors, fans, toys and even some alarm systems. These ICs utilize fixed address codes and no encryption so they should not be used for security projects. The transmitter has 4 buttons which activates 4 pins on the receiver module.

NOTE: THE RECEIVER NEEDS A MAXIMUM OF 5V FOR CORRECT FUNCTIONALITY

315MHz 4 channels wireless control
315MHz 4 channels wireless control

IMPLEMENTATION

Step 1: CIRCUIT CONNECTION

                                        
                                                      315MHz Arduino circuit

STEP 2: UPLOAD THE CODE

Start your Arduino IDE  and upload the following code

#define ledPin 13

void setup()
{
 Serial.begin(9600);
 pinMode(ledPin, OUTPUT);
 Serial.println(F("Use the buttons on the transmitter to turn on/off the LED on the Arduino"));
}
 
void loop()
{ 
 while (digitalRead(9) == HIGH)
 { 
   Serial.println(F("Button 1 pressed")); // Button 1 pressed
   digitalWrite(ledPin, HIGH); //Turn led ON
 }
 
 while (digitalRead(10) == HIGH) 
 { 
   Serial.println(F("Button 2 pressed")); // Button 2 pressed
   digitalWrite(ledPin, LOW); //Turn led OFF
 } 
 
 while (digitalRead(11) == HIGH)
 { 
   Serial.println(F("Button 3 pressed")); // Button 3 pressed
   digitalWrite(ledPin, HIGH); //Turn led ON
 }
 
 while (digitalRead(12) == HIGH) 
 { 
   Serial.println(F("Button 4 pressed")); // Button 4 pressed
   digitalWrite(ledPin, LOW); //Turn led ON
 }
}

STEP 3: RESULTS

  • Start your serial monitor and set the BAUD rate to 9600.
  • Press button 1/3 on the transmitter and watch the Arduino LED come on
  • Press button 2/4 on the transmitter and watch the Arduino LED turn off.

Further steps

This project can be extended upon. You can incorporate it in the building of a remote controlled robotic vehicle, control your garage door. Let your creativity guide you.

 

Leave a Reply

Your email address will not be published. Required fields are marked *