hi
in my new project,I've used every digital pin and even I setup analog pins to work as digital ones...
so now,i don't have any free pin remaining in my board,and yet I need more pins to connect more sensors and modules...
is there a way -like using a shield- to expand my pins and have more of 'em in the same UNO board or any other boards?!
I already read about I2C and serial connections between boards BTW.
One way can be to use multiplexers for both analog and digital I/O. I2C is an economical way to go. Else, change to a MEGA, or some other controller, having more inbound I/O.
you can also use shift registers to increase your I/O's
if you need to read more than one item on an analog pin you can utilize the ADC to read resistance based on a network you create.
I2C is another good one
I'm sure there are other tricks out there.
Many tricks... there are chips out there that can give you 100's of pins.
wolframore:
you can also use shift registers to increase your I/O's
if you need to read more than one item on an analog pin you can utilize the ADC to read resistance based on a network you create.
I2C is another good one
I'm sure there are other tricks out there.
Many tricks... there are chips out there that can give you 100's of pins.
I'd love to have 100 pins!!!
can you gimmie a clue to find those solutions pls?!
There are STM32 chips, compatible with Arduino... :). It comes with it's own challenges... you really need to design your own boards at this point or find a development board that supports it... not sure haven't dug too far into this but here's the info:
wolframore:
There are STM32 chips, compatible with Arduino... :). It comes with it's own challenges... you really need to design your own boards at this point or find a development board that supports it... not sure haven't dug too far into this but here's the info:
Daisy chain a bunch of 74HC595 shift registers. 12 of them for 96 outputs, using only three Arduino pins to control.
Or 8x MCP23017 or 8x PCF8575 chips. Each of those offers 16 I/O pins, 128 total. Two Arduino pins: it's I2C. Use 8 of each and you have 256 I/O on two pins.
But before you go that route: why do you need them? There may be other way to instantly reduce pins (matrixes for LEDs or buttons; both have special ICs to help you out and make life even easier).