Will do, once I get it mounted. For now, you’ll need the following:
-
Arduino clone (cheap ones work great): Amazon.com
-
A Display. I chose a more modern looking OLED display - plus it was priced right and only requires four connection points. Whatever you choose, makes sure there is a library to support it. The reviews on Amazon should tell you all you need to know. http://www.amazon.com/gp/product/B00KRZY7PW?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s01
-
A Sensor - I chose the TCRT5000 because it is widely used in robotics and is dirt cheap (I bought the 10 pack for other projects): http://www.amazon.com/gp/product/B00H8SMIMK?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00
-
A 100ohm resistor and a 10kohm resistor.
-
A case - X-Carvers should really make their own case. I bought this one because it is sealed, can be cut easily and provides plenty of room inside for sloppy wiring (you won’t need a battery): http://www.amazon.com/gp/product/B003ZKJNVY?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s02
Here is the pinout for the sensor. IGNORE THE ARDUINO CONNECTION. The taper of the sensor provides orientation:
Connect the tiny monitor: Vin to 3.3v on arduino. GND to GND. SDA to A4. SCL to A5. On revision 3 Arduinos, the SDA and SCL pins could be the two unmarked pins above AREF on your Arduino (not on mine).
Connect the sensor: + to 5v pin, - to GND, The IR receiver pin before the resistor connect to D2 (because we are using interrupts).
That’s it! On your Arduino you need to install the appropriate libraries as indicated in the code below. Googling should turn them up. I soldered my sensor to a tiny piece of circuit board so it is facing sideways. This will be screwed to the bottom of my router. Will send pics later.
Here is the code. It could be cleaned up a bit but I added notes for you so you can mess with your screen (if you do not have the Arduino IDE installed you can open this in Notepad to read it):