PCBWay 3rd PCB Design Contest
VOTE NOW!
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Design 1/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Usability 2/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Creativity 3/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Content 4/4

This circuit needs maximum 5v - 7v if powered directly through DC power supply only. If ur supplying AC current,

you need to have a transformer that outputs 12v ac current to it. You also need to add a 5v potentiometer to it ,to control the voltage. (if u don't have it, u can fix a 1k resistor to it.)


once u solder the components to the circuit, simply upload the code to the arduino pro.(Do not solder the arduino pro directly to the PCB. u can use female pin headers and fix it.) . make sure to put ur remote's decode results to the code.


these are the components,


  • arduino pro mini (5v)
  • 5v relay
  • 3 pin screw header
  • 2 pin screw header
  • LM317
  • 5k potentiometer or 1k resistor
  • 2200 uF capacitor
  • 100uF capacitor
  • 2N3904 transistor
  • LED'S (2)
  • VS1838 IR receiver
  • 1n4007 diode (4)
  • 1k resistor (2)
  • 220 ohm resistor(2)
  • 10k resistor
  • 0.33uF ceramic capacitor
  • dip switch


for more info about this circuit, check out my project in instructables.


https://www.instructables.com/id/ARDUINO-IR-REMOTE-CONTROLLED-RELAY/


hope u enjoyed this project. plese like :)

if u have any questions, u are welcomed to ask in the comment section :)



#include <IRremote.h>


int RECV_PIN = 3;
int RELAY_PIN2 = 8;

IRrecv irrecv(RECV_PIN);
decode_results results;

void dump(decode_results *results) {
  int count = results->rawlen;
 
}

void setup()
{
  pinMode(RELAY_PIN, OUTPUT);
  pinMode(13, OUTPUT);
  digitalWrite(13,LOW);
    Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

int on = 0;
unsigned long last = millis();

#define BUTTON_1 0xFF30CF  //make sure u put ur decoded results here!





void loop() {
  if (irrecv.decode(&results)) {
  
    if (results.value == BUTTON_1)
    {
    
      on = !on;
      digitalWrite(RELAY_PIN2, on ? HIGH : LOW);
      digitalWrite(13, on ? HIGH : LOW);
      dump(&results);
    }

else{
  digitalWrite(13,LOW);
}
}


Apr 16,2019
523 viewsReport item
  • Comments(2)
  • Likes(4)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
    View More
    VOTING 12 votes
    • Ilya Galkin from RUSSIAN FEDERATION, THE
      Senior hardware engineer
      • 6
        design
      • 8
        usability
      • 7
        creativity
      • 5
        content
      6.50
    • Omer Faruk Ucar from TURKEY
      Founder of the project ‘Lezzetli Robot Tarifleri’ In the frame of this project he produces Turkish contents about electronics/software and serves it to people for free. He produced many jammer devices mostly drone dropper weapons while working in electronic defense industry. He gave lessons to teachers about software and electronics in a program which supported by the government. And now he is working as a hardware engineer on SCADA systems syber security.
      • 3
        design
      • 4
        usability
      • 3
        creativity
      • 4
        content
      3.50
      • 8
        design
      • 7
        usability
      • 7
        creativity
      • 7
        content
      7.25
    • Catia Diaz from MEXICO
      Catia Diaz director of YouTube channel catykanal that was created to insentiate the taste for electronics with tutorials explained in a simple and fun way. Teacher with more than 3 years of experience in promoting the learning of electronics to children and young people.
      • 7
        design
      • 5
        usability
      • 5
        creativity
      • 1
        content
      4.50
    • Jiri Praus from CZECH REPUBLIC, THE
      If you got a low score from me, I don't think you fit for I can solder content. Sorry for that, at least I tried to rate your design. I am an artist. I design electronics and brass wire sculptures. www.jiripraus.cz
      • 5
        design
      • 5
        usability
      • 1
        creativity
      • 1
        content
      3.00
    • Oyvind Dahl from NORWAY
      NOTE: If you have a project that I don't think is for beginners (or I don't understand what it is/lacks documentation) - you'll automatically get a low score from me even though your project is really cool. Sorry! ABOUT: Author of Electronics For Kids. Creator of Ohmify.com and the electronics blog build-electronic-circuits.com.
      • 5
        design
      • 5
        usability
      • 5
        creativity
      • 5
        content
      5.00
    • Ever since I was a kid, I love tinkering with anything that involves energy from toys to cellphones. I love designing and creating projects that could be innovative with the use of electronics. I was also appointed team leader of the University of Sto. Tomas team for the Shell Eco-marathon Philippines Competition in 2018.
      • 7
        design
      • 8
        usability
      • 6
        creativity
      • 7
        content
      7.00
    • LUIS HARO from
      Youtuber & PCB Designer
      • 7
        design
      • 8
        usability
      • 8
        creativity
      • 8
        content
      7.75
    • J_RPM from SPAIN
      My name is José Ramón Pueyo, I live in Spain. For more than 40 years he has worked in the radio communication sector, mainly with RF equipment and developing control and monitoring systems.Five years ago I opened a channel on YouTube (J_RPM) in order to share some developments and divulge technical information.
      • 9
        design
      • 8
        usability
      • 8
        creativity
      • 9
        content
      8.50
    • www.cursoderobotica.com
      • 8
        design
      • 7
        usability
      • 7
        creativity
      • 8
        content
      7.50
    • Engineer from INDIA
      • 10
        design
      • 10
        usability
      • 10
        creativity
      • 10
        content
      10.00
    • umar_khalid from SRI LANKA
      i love PCBs
      • 10
        design
      • 10
        usability
      • 10
        creativity
      • 10
        content
      10.00
    View More