how to connect 16 inputs to pyportal?

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
micgolub
 
Posts: 6
Joined: Wed Jul 14, 2021 6:04 am

how to connect 16 inputs to pyportal?

Post by micgolub »

how to connect 16 inputs to pyportal?

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: how to connect 16 inputs to pyportal?

Post by dastels »

What do you mean by inputs?

If you digital inputs, you can use an MCP23017 https://www.adafruit.com/product/732 or the AW9523 breakout https://www.adafruit.com/product/4886. Both are I2C.

Dave

User avatar
micgolub
 
Posts: 6
Joined: Wed Jul 14, 2021 6:04 am

Re: how to connect 16 inputs to pyportal?

Post by micgolub »

I wanted to connect about 10 temperature K-type thermocouples. It looks I need a MAX6672, any sugegstions/circuits to connect to PYportal?

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: how to connect 16 inputs to pyportal?

Post by dastels »

The 6672 is a PWM output sensor. Which means you'll need to time the signals on the various sensors. You could do that using the AW9523 with an input connected to each sensor. I would use the interrupt to monitor changes on the sensor of interest (you'd read them one at a time) to get the timings.So that would require I2C and a singal digital input (to monitor the INT).

If you went with the MAX31855 thermocouple amp breakout https://www.adafruit.com/product/269 you could still use the AW9523 tas outputs to supply the select signals to the amp breakouts (which would all be in the SPI bus).

The only way to avoid needed a digital GPIO expander is to find an I2C thermocouple amp that can be set to 16 difgferent addresses (or use an I2C mux like https://www.adafruit.com/product/2717. There's https://www.adafruit.com/product/4101 which can be set to 1 or 8 addresses. Leaving them at the default address and using the mux is probably best on the PyPortal with it's single I2C connection.

Three option off the top of my head, there are probably others.

Dave

User avatar
micgolub
 
Posts: 6
Joined: Wed Jul 14, 2021 6:04 am

Re: how to connect 16 inputs to pyportal?

Post by micgolub »

but these:
https://www.adafruit.com/?q=grand+centr ... =BestMatch
would work directly with the max6672?

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: how to connect 16 inputs to pyportal?

Post by dastels »

Sure, you have tones of IO on the GrandCentral. Each sensor would have it's own pin. What's that got to do with a PyPortal though?

Dave

User avatar
micgolub
 
Posts: 6
Joined: Wed Jul 14, 2021 6:04 am

Re: how to connect 16 inputs to pyportal?

Post by micgolub »

does GrandCentral work with the pyportal?

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: how to connect 16 inputs to pyportal?

Post by dastels »

In a word, no. They're completely different boards.

While both are designed around the SAMD51 microcontroller, the PyPortal has an ESP32 wifi coprocessor and a touchscreen but with very little IO (2 digital/analog signals and an I2C connection). Wifi and the screen are the main features of the PyPortals while massive amounts of IO, memory and computational power (for a microcontroller) are the main features of the GrandCentral.

Dave

User avatar
gsrobotics2017
 
Posts: 9
Joined: Wed Jul 14, 2021 4:20 pm

Re: how to connect 16 inputs to pyportal?

Post by gsrobotics2017 »

don't know if I'm in the right place but iv got a pyportal Titano and a feather 2040 I am trying to communicate between the 2 with i2c but can't find any way to do this I'm happy to move to a different communication method lice UART or USB but I can't find anything on this ether does anyone have any advice?

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: how to connect 16 inputs to pyportal?

Post by dastels »

gsrobotics2017 wrote:don't know if I'm in the right place but iv got a pyportal Titano and a feather 2040 I am trying to communicate between the 2 with i2c but can't find any way to do this I'm happy to move to a different communication method lice UART or USB but I can't find anything on this ether does anyone have any advice?
Please make a new thread for this as it's an unrelated question.

I have some ideas.

Dave

User avatar
gsrobotics2017
 
Posts: 9
Joined: Wed Jul 14, 2021 4:20 pm

Re: how to connect 16 inputs to pyportal?

Post by gsrobotics2017 »

dastels wrote:
gsrobotics2017 wrote:don't know if I'm in the right place but iv got a pyportal Titano and a feather 2040 I am trying to communicate between the 2 with i2c but can't find any way to do this I'm happy to move to a different communication method lice UART or USB but I can't find anything on this ether does anyone have any advice?
Please make a new thread for this as it's an unrelated question.

I have some ideas.

Dave
done this viewtopic.php?f=60&t=181265

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”