Search models, users, collections, and posts

Remote Control Light Switch cover (Flat Switch) V1

Remixed by
GIF

Print Profile(1)

All
P1S
H2D
X1E
X1 Carbon
X1
H2D Pro
P1P
P2S
H2S
H2C
A1
X2D
A2L

All Parts in One Plate
All Parts in One Plate
Designer
5.4 h
1 plate

Open in Bambu Studio
Boost
8
11
3
1
1
0
Released 

Bill of Materials

Bambu Filaments
Select all
Black (14100) / Filament with spool / 1 kg
Matcha Green (14500) / Filament with spool / 1 kg
List other parts
  • Micro Bread Board x 1:
  • Female to Male Jumper Wires x 3:
  • ir Remote x 1:
  • ir Sensor x 1:
  • Super Glue x 1:
  • Dual AA Battery Packs x 2:
  • 9g Servo x 1:
  • Male to Male Jumper Wires x 5:
  • Arduino Micro x 1:

Description

If you like my work and enjoy my models please consider Boosting
 

Arduino Micro, Ir Remote. Replace the Hex Values in the code with your own ir remote button codes.

 

 

CODE:

#include <IRremote.hpp>

#include <Servo.h>


 

#define IR_RECEIVE_PIN 2


 

Servo myServo;


 

void setup() {

Serial.begin(9600);

IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);

myServo.attach(9); // Servo on pin 9

}


 

void loop() {

if (IrReceiver.decode()) {


 

unsigned long code = IrReceiver.decodedIRData.decodedRawData;

Serial.println(code, HEX);


 

if (code == 0xE916FF00) {

myServo.write(30);

}

else if (code == 0xF30CFF00) {

myServo.write(120);

}


 

IrReceiver.resume();

}

}


 

 

 

 

If you want the behind the scenes of any of my existing/upcoming models please check out my Linktree.

 

If you would like to kindly leave a donation, you may do so here.

 

Comment & Rating (3)

(0/1000)