Hi
Im trying to make 10 steps for a servo motor, with the remote for my tv.
So first i found witch code my remote sends on the diffrent buttons. Heres what i got..
1: 6604CFE0
2: 6604CFD0
3: 6604CFF0
4: 6604CFC8
5: 6604CFE8
6: 6604CFD8
7: 6604CFF8
8: 6604CFC4
9: 6604CFE4
0: 6604CFC0
Next i want to make a switch using the codes I just got..
Heres what i wrote in the loop()
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
switch(results.value) {
case '6604CFE0': //Step 1
val = map(1, 0, 9, 0, 179);
myservo.write(val);
delay(15);
break;
case '6604CFE4': //Step 9
val = map(9, 0, 9, 0, 179);
myservo.write(val);
delay(15);
break;
}
irrecv.resume();
}
Im using the IR Library form Ken Shirriff's blog http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
However, when i push a button on my remote, it shows in the serial monitor, but my servo does nothing.
What am I missing??
Thanks in advance.