So I plan on using my Uno coupled with a "Keyes" IR shield aswell as the remote to remotely turn on my computer. This is quite easy, as to turn on the computer via the motherboard is just powering it with 5V.
I have managed to successfully test out my IR and it works fine with the following code that I copied from someone.
#include <IRremote.h> //include the library
//PIN
int receiver = 11;
IRrecv irrecv(receiver); //create a new instance of receiver
decode_results results;
void setup() {
Serial.begin(9600);
irrecv.enableIRIn(); //start the receiver
}
void loop() {
if (irrecv.decode(&results)) { //we have received an IR
Serial.println (results.value, HEX); //display HEX
irrecv.resume(); //next value
}
}
The only problem now is once a IR signal is received how do I tell the Arduino to output a 5V signal via a pin?
Is there a command. Sorry I am a real newb to this