ArduinoGeneral

Arduino Shield GPIO mapping to analog ports

userHead Account cancelled 2016-08-09 16:01:20 2160 Views1 Replies
I currently have an Arduino shield (DFR0327) connected to a Raspberry Pi. I want to connect sensors to this using the analog ports on the shield (A0-A5), using python on the Pi. I am able to connect to the GPIO expansion ports and run digital devices (like lights) but currently the only way to connect to the analog sensors is to write to the Arduino directly in C, output through the serial port and read the data into the Pi.

I am trying to develop this for students who are new to programming and using both C and Python for beginners is too much, I want to use just Python. Is this possible? Is there a mapping for the analog ports to the GPIO interface so I can access the analog data directly in Python on the Pi?
2016-08-10 01:57:55 Hi neil.williams,

Sorry, the analog ports dont connect to the GPIO interface, so you cant use only Python.
userHeadPic Wendy.Hu