TransWikia.com

Arduino Programming IR Sensors and Actuators

Engineering Asked by laurenq on March 17, 2021

Create the circuit below (Arduino)

enter image description here

You are supposed to use the following code (must download correct library if IDE is too old):

#include <IRemote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
 Serial.begin(9600);
 irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
 if (irrecv.decode(&results))
MECH 303
Page 5 of 6
 {
 Serial.println(results.value, HEX);
 irrecv.resume(); // Receive the next value
 }
}

Now, I am trying to figure how to make different keys. I should be able to
transmit the code received by the IR
remote in your starter kit. I want to write down at least the codes for at least four keys. I need to be able to write the
keys of: forward, backword, 0, and 1.

I am pretty stuck and need help making these keys for all 4 movements

Thank you
Lauren Quinones

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP