Why do you say a i2c expander will only give 16 outputs and that limits to 44 I/O?davidcoton wrote: ↑Thu Nov 16, 2017 10:48 pmWhile you could also do this in conjunction with i2c expansion boards, they cost the same as a Pi0W and only provide 16 outputs per board, whilst swallowing two of the Pi's GPIOs. So Pi + expander gives 44 GPIOs, four such is only 176 outputs.
Read my post again. I did not say that 44 output per Pi was a limit, I said you could get that with a single expander on a Pi. And pricewise, I looked at one of the mainstream UK suppliers, where the boards will be properly supported and will have a warranty. Of course you can get cheap Chinese, they probably work (while some of the imports I've seen have been very good, others are utter rubbish and even dangerous), but get a problem and you won't get support -- it's hard work even getting a refund for incorrectly described goods. And you won't get next day delivery at those prices, though some Chinese imports are now held in warehouses here.achrn wrote: ↑Fri Nov 17, 2017 3:47 pmWhy do you say a i2c expander will only give 16 outputs and that limits to 44 I/O?davidcoton wrote: ↑Thu Nov 16, 2017 10:48 pmWhile you could also do this in conjunction with i2c expansion boards, they cost the same as a Pi0W and only provide 16 outputs per board, whilst swallowing two of the Pi's GPIOs. So Pi + expander gives 44 GPIOs, four such is only 176 outputs.
MCP23017 is indeed 16 outputs, but has a range of eight possible I2C addresses, so you can put eight on a single pi and have 128 I/O without using any of the Pi GPIO other than the I2C. They are about 1GBP each. You'd only need two pis that way.
So you were deliberately describing an option knowing it to be both more costly and further from the OP's aspiration than alternatives. Fair enough - I assumed otherwise, but since you tell me that's what you were doing then I'll accept your statement.davidcoton wrote: ↑Fri Nov 17, 2017 8:26 pmRead my post again. I did not say that 44 output per Pi was a limit, I said you could get that with a single expander on a Pi.
farnell.co.uk. Personally, I consider them a mainstream supplier, though I think they no longer ship from the UK. 96.3p + VAT is 'about 1GBP' to my mind, but again if you disagree that's your prerogative.And pricewise, I looked at one of the mainstream UK suppliers,
That would be great, but you seem to be confusing the price of a bare chip with the price of a plug-in complete module. Complete modules from Farnell cost around £30! (Not a comprehensive search.)achrn wrote: ↑Fri Nov 17, 2017 10:20 pmSo you were deliberately describing an option knowing it to be both more costly and further from the OP's aspiration than alternatives. Fair enough - I assumed otherwise, but since you tell me that's what you were doing then I'll accept your statement.farnell.co.uk. Personally, I consider them a mainstream supplier, though I think they no longer ship from the UK. 96.3p + VAT is 'about 1GBP' to my mind, but again if you disagree that's your prerogative.No, on the price I had it was more expensive than my preferred option (Pi0W without expanders). I was making the point about the cost-effectiveness of a bunch of Pi0W to provide 179 GPIO connections.
How do you know more about the OP's aspiration than is in the post? The OP asked for alternatives to multiplexed GPIO expansion. The variety of responses opens possibilities from which the OP can select the most suitable, including the original known method of multiplexed GPIO expansion. The OP also asks for "better", but with no judgement criteria. I offered a more cost-effective solution, which also has other characteristics that may or may not be suitable. As others have pointed out there are considerations of space and geography that will affect the selection of a solution, but for which we don't have the data.
That's rich coming from Mr "Read my post again"!davidcoton wrote: ↑Sat Nov 18, 2017 11:26 amThat would be great, but you seem to be confusing the price of a bare chip with the price of a plug-in complete module. Complete modules from Farnell cost around £30! (Not a comprehensive search.)