Infrared Receiver reads all buttons as CLR?


#1

I just got the Robot Starter Kit (V2.0) with Me_Board. Everything seems to respond right. When I upload the code for the Ultrasonic_Car it works like a charm. When I upload the IR_control example sketch I cannot control the robot. To troubleshoot I tried to upload the example sketch “TestInfraredReceiver”. Every button on the remote seems to send fine, and the receiver gets the signal. BUT every button-push gets translated to IR_BUTTON_CLR (= dec num 13).

The Me_Board is based on the Arduino Leonardo. I guess that is why the code uses SoftwareSerial, right? I have tried to connect the IR receiver decoder to PORT 6 (default code), PORT 5, and PORT 3. Same error.

Any suggestions?


#2

SOLVED, I guess?

I think I have narrowed it down to just one bad part: The remote. When I point the remote at a mobile camera, the LED is flashing constantly without any keypresses. When I press any key it stops flashing as long as I press. I don’t bother to read the raw IR data, because I’m sure the remote is just malfunctioning sending the “Clr”-code all the time.

Do Makeblock send a new part?


#3

Hi @Heine_Ravnholt,

I’m sorry for that error. it seems like that the remote controller does have some problem. Can you tell me your order number by the private message (on the right-up corner of the page)? After I check that with my colleague, I will send a new one to you ASAP.


#4