12-16-2016, 04:21 PM
(12-16-2016, 08:09 AM)pine.adam Wrote:(12-16-2016, 08:06 AM)KnReLe Wrote: Hardware-wise you seem to be OK. The problem is with high-level software (the python library that talks to the /dev/i2c-1 device).
You might want to check out the RPi.GPIO-PineA64 library that was linked to by martinayotte on this thread;
http://forum.pine64.org/showthread.php?tid=2935
I haven't done that much with this myself, but the idea is to provide a similar utility library for the PineA64 as is seen on Raspberry Pi machines.
Will do - I was just in the process of digging through the ADS1x15 python code to try to understand it a little better.
Thanks!
-Adam
Was messing with the pine today and realized I didn't need the ADS1115. Used my arduino uno instead.
Successfully measuring 0-5v through the analog input and python code watching the the arduino output connected through the usb/serial.
Even better, writing to a .csv file
had a 3.3v through a 10k ohm potentiometer watching the outputs change.
Had to leave some work for Monday - add 1min delay in voltage print loop, add date/time stamp, and write to a new line in the .csv instead of overwriting first line in every instance.
should be pretty simple.
Happy to be doing this on the pine.
Thanks!