What If It Doesn’t Work?
If you cannot make this chapter’s code run, you should download the code from the book’s website and try to run it. Make sure you’re using the correct serial port in the code/RemoteControl/TvRemoteUI/js/remote.js file.
In this chapter, we mainly used LEDs and an Ethernet shield, so all of the advice from Chapter 3, Building Binary Dice, and Chapter 10, Networking with Arduino, also applies to this chapter.
In addition, you have to be careful of more things. The distance between an infrared LED and its receiver is important. To be on the safe side, you should position the LED near the receiver. It should also be placed right in front of the receiver, and you should make sure there’s not too much ambient light that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access