Author Topic: 140 GPIO Microcontroller  (Read 2604 times)

0 Members and 1 Guest are viewing this topic.

Offline joniengr081Topic starter

  • Regular Contributor
  • *
  • Posts: 208
  • Country: no
140 GPIO Microcontroller
« on: September 07, 2023, 10:40:12 am »
Hi, I am looking for microcontroller PIC by Microchip or Arduino having 140 plus I/O for temperature/humidity monitor. There are solutions with external serial/parallel chips and external multiplexers but it's not so easy to find compact solution for which we don't need to make a big PCB. I appreciate if you have any suggestion in selecting Microcontroller with 130 plus I/O.
 

Offline ppTRN

  • Regular Contributor
  • *
  • Posts: 160
  • Country: it
Re: 140 GPIO Microcontroller
« Reply #1 on: September 07, 2023, 11:00:41 am »
Hi, if all of this GPIO's are needed to monitor temperature and humidity in a lot of points using lots of sensors maybe you should consider I2C or SPI sensors that allows to be easily controlled by one bus only, decreasing a lot the cost of the uC
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6539
  • Country: es
Re: 140 GPIO Microcontroller
« Reply #2 on: September 07, 2023, 11:02:33 am »
What sensors are you interfacing to?
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: langwadt, joniengr081

Offline jpanhalt

  • Super Contributor
  • ***
  • Posts: 4250
  • Country: us
Re: 140 GPIO Microcontroller
« Reply #3 on: September 07, 2023, 11:49:33 am »
Microchip has several chips with a pin count of 144 to 288.  The high range are 32-bit units.  144 pins are also available in a 24F version.

https://www.microchip.com/content/mchp/en-us/parametric-search.html/1023?filters=eyJzbGlkZXJGaWx0ZXJzIjp7IlBpbiBDb3VudCI6eyJtaW52YWwiOiIxNDIiLCJtYXh2YWwiOiIyODgifX19

https://www.microchip.com/en-us/product/PIC24EP256GU814

I didn't go through the datasheets, but in general every pin except the two (or more) power pins are I/O.

Edit: You may get an "error in loading" message.  Just wait.  My PC takes several seconds, but then the page appears.
« Last Edit: September 07, 2023, 11:51:53 am by jpanhalt »
 
The following users thanked this post: joniengr081

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 4052
  • Country: nl
Re: 140 GPIO Microcontroller
« Reply #4 on: September 07, 2023, 08:18:49 pm »
The uC's with more I/O tend to be 32-bitters. but you can always intertwine a bunch of 8-bitters by with some I2C or SPI wires. This may even make your PCB more compact, because pins are on the circumference, and that only increases linearly while surface area is quadratic. (Or you have to go to BGA's, but that is not so common for 8-bitters either). With a few uC's you can also place them closer to connectors, so there is less overall routing on the PCB.
 

Offline pqass

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: ca
Re: 140 GPIO Microcontroller
« Reply #5 on: September 07, 2023, 10:24:06 pm »
You're going to want signal conditioning/integrity protection for any distance greater than a couple of meters to the sensors.

It's just not practical to measure analog sources from 10 to 100's of meters away nor run I2C/SPI TTL at that distance over a building-local area.   The overall cheapest, dumb-nodes solution for dozens of sensors is probably 4-20mA current-loop over twisted pair.
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2291
  • Country: au
Re: 140 GPIO Microcontroller
« Reply #6 on: September 08, 2023, 04:49:39 am »
Hi, I am looking for microcontroller PIC by Microchip or Arduino having 140 plus I/O for temperature/humidity monitor. There are solutions with external serial/parallel chips and external multiplexers but it's not so easy to find compact solution for which we don't need to make a big PCB. I appreciate if you have any suggestion in selecting Microcontroller with 130 plus I/O.
Exactly how many connections are you making to these sensors ? What exact sensors ?

It is all that IO that usually determines the board size, not the chip/s in the middle.
How much processing power do you need ?

On the general MCU pin curve, anything with 140io, has gone into the quite large resource and quite expensive basket.  Digikey says ~$10/100, and 2MByte flash ballparks.
Checking smaller MCUs at lcsc, finds 48 pin parts start at under 50c/100 with 43io, needing about 4 parts to give your target IO.
64 pin parts with 60io are about 55c/100, and maybe 3 of those can do ?
That's how the MCU price curve works.



 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3325
  • Country: ca
Re: 140 GPIO Microcontroller
« Reply #7 on: September 10, 2023, 02:49:38 pm »
How far apart the sensors are? I guess quite far, since it doesn't make sense to measure humidity just few feet apart. In this case, it's better to go with a distributed network, such as CAN. CAN is wired as a chain (not as a star), so you may save big on wires.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6539
  • Country: es
Re: 140 GPIO Microcontroller
« Reply #8 on: September 10, 2023, 03:53:55 pm »
However, you don't forcefully need a 140+pin MCU.
You can have, for example 3x 64-pin, or 2x 100pin mcus, one being the master and the rest slaves, telling the master through SPI.
Definitely way more common packages, you'll have plenty to choose from and probably cheaper overall.
1-pin sensor, measuring humidity and temperature... are you interfacing DHT11 sensors?

Alternatively, you could distribute the signals through several CD4051 8:1 multiplexers.
So in the end you would only need 140/8=18x 4051s (Starting from 8 cents @ lcsc).
Reducing the GPIO requirement to just 18+3=21 GPIOs  (18 for the sensors + 3 for switching the 4051s).

I doubt you could process the 140 sensors concurrently anyways!
« Last Edit: September 10, 2023, 04:05:06 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 28724
  • Country: nl
    • NCT Developments
Re: 140 GPIO Microcontroller
« Reply #9 on: September 10, 2023, 06:24:37 pm »
However, you don't forcefully need a 140+pin MCU.
You can have, for example 3x 64-pin, or 2x 100pin mcus, one being the master and the rest slaves, telling the master through SPI.
Definitely way more common packages, you'll have plenty to choose from and probably cheaper overall.
Only if this is for a huge number of devices. Creating a system that is decentralised is harder then it looks. Think about process synchronisation and dealing with errors. What if one of the microcontrollers isn't responding? What to do in case of a communication isn't working (communication will fail)? It takes a very carefull division of tasks and a good plan for handling errors in order to make such a system work predictable & reliable.

And ofcourse there is debugging and firmware versions. All of the sudden you have two pieces of firmware to write & maintain. In the end you end up spending a lot more money on development. So if this product isn't sold in huge numbers, the NRE costs will swamp any savings on parts.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4393
  • Country: us
Re: 140 GPIO Microcontroller
« Reply #10 on: September 11, 2023, 06:34:21 am »
Quote
Creating a system that is decentralised is harder then it looks.
Creating a system with 140 IOs is harder than it looks, too.  Especially if that's 140 "sensors" rather than 140 GPIOs driving some smaller number of sensors.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 28724
  • Country: nl
    • NCT Developments
Re: 140 GPIO Microcontroller
« Reply #11 on: September 11, 2023, 07:41:26 am »
Quote
Creating a system that is decentralised is harder then it looks.
Creating a system with 140 IOs is harder than it looks, too.  Especially if that's 140 "sensors" rather than 140 GPIOs driving some smaller number of sensors.
That is still unclear. If the OP wants to have off-board sensors, then using I/Os to generate some kind of board level communication protocol like I2C or SPI is the wrong choice anyway.
« Last Edit: September 11, 2023, 08:28:57 am by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline HarryDoPECC

  • Regular Contributor
  • *
  • Posts: 74
  • Country: au
    • The Dawn of Personal Electronic Calculators and Computers
Re: 140 GPIO Microcontroller
« Reply #12 on: September 12, 2023, 04:34:40 am »
Yeah, this looks like an X-Y problem.

You have thought that you want xxxGPIOs

Whereas the group are suggesting that what you really want is to measure lots of sensors (and their location, environment, reading rate, etc, etc, etc may be very significant).  And they are suggesting a lot of possible ways to approach that goal.

It's a good group, isn't it?

 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 16280
  • Country: fr
Re: 140 GPIO Microcontroller
« Reply #13 on: September 12, 2023, 04:42:41 am »
Who knows, the OP is probably long gone.
 

Offline liaifat85

  • Regular Contributor
  • *
  • !
  • Posts: 172
  • Country: bd
Re: 140 GPIO Microcontroller
« Reply #14 on: September 15, 2023, 12:55:22 pm »
I think the Microchip forum will be better for this question.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf