Pytrack External IO Pins can be used?
-
I am using the EXT IO pins on the pytrack board (From the "External IO Header"). I have been trying to select 3 of the EXT_IO pins to use to measure voltages, however they seem to be in use (or have preset values) Voltage measurements on IO 0 and 2 are pulled down to ground by default and IO 4 is at 2.5V. I have not yet set them for use as input IO but am now worried they are predefined as output IO? Am I free to play with the IO header pins and use them for input without impacting other functionality on the pytrack board (Within normal operating tolerances of the board) ?
-
@somervda When you say "measure voltages", do you mean analog voltage? That will not be possible. No pin on the external IO header can be used as analog input. Only ADC1 is available with the MicroPython firmware. Using ADC2 is not possible.
You can however use an external ADC like the ADS1115 and talk to it via I2C. -
@robert-hh Thanks Robert, sounds like I will need to rethink how I do what I am planning and use I2C like you say. You saved me some time.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login