interfacing elegoo uno R3 to pine64

elegoo UNO R3 interfaced to a pine64 via UART
elegoo UNO R3 interfaced to a pine64 via UART

I’m really late to just now be getting on board (no pun intended) with arduino.  Until now, I have focused on SBC’s that run a full linux distribution.  I just bought an elegoo 37 sensor kit off amazon, and it was only $11 to throw in an elegoo UNO R3.

Just to try it out, I modified the serial output example.  Instead of using a potentiometer,  I used a 16K ohm photoresistor in a voltage divider circuit with a 330 ohm resistor.  When the binary value of the analog read drops below 200,  digital pin 13 turns on an LED so you can have some light.

Analog binary value on the pine64 to the left of the IDE
Analog binary value on the pine64 to the left of the IDE

Here’s the setup->

elegoo UNO R3 photo resistor voltage divider analog read
elegoo UNO R3 photo resistor voltage divider analog read

Leave a Reply

Your email address will not be published. Required fields are marked *