Remote Encoding Query - Keywish Hummer-Bot Instruction Manual

Table of Contents

Advertisement

3, Copying the following program to IDE (you can also directly open the matching program in the CD), and
downloading to the development board, pulled out the transparent plastic sheet marked as "1" in the
Fig.3.2.33. Then opening the serial port monitor, observing and recording the values on it while pressing
keys on the remote control towards the receiving head as shown in Fig.3.2.37.
#include <IRremote.h>
int
RECV_PIN
= 12;
IRrecv
irrecv(RECV_PIN);
decode_results
results;
void
setup()
{
Serial.begin(9600);
irrecv.enableIRIn();
}
void
loop() {
if
(irrecv.decode(&results))
{
Serial.println(results.value, HEX);
Serial.println();// Add a blank line for easy viewing of the output
irrecv.resume();
// Receive the next value
}
// Define the IR receiver pin to be 12
// Initialize the infrared receiver
Fig.3.2.37 Remote Encoding Query
// Output the receive code in hexadecimal
}
82

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Hummer-Bot and is the answer not in the manual?

Questions and answers

Related Products for Keywish Hummer-Bot

Table of Contents

Save PDF