I think when you start doing stuff, you'd actually be quite surprised by how much you can get done with the pins on a single microcontroller - for instance you could have one servo motor per pin, and there are around 40 pins available.
But as @DrAzzy says, there are lots of ways of getting more pins from a single microcontroller.
As he hinted at, if you have lots of Espruinos you can chain them together very easily. For instance, you can connect pin A10 (Serial receive) of all the 'slave' Espruinos together, and can connect that to A9 (Serial transmit) of the 'master' Espruino.
As long as each of the slaves has a variable called NAME that is unique, you can send JavaScript commands straight to any of the slaves. For instance on the 'master':
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think when you start doing stuff, you'd actually be quite surprised by how much you can get done with the pins on a single microcontroller - for instance you could have one servo motor per pin, and there are around 40 pins available.
But as @DrAzzy says, there are lots of ways of getting more pins from a single microcontroller.
As he hinted at, if you have lots of Espruinos you can chain them together very easily. For instance, you can connect pin A10 (Serial receive) of all the 'slave' Espruinos together, and can connect that to A9 (Serial transmit) of the 'master' Espruino.
As long as each of the slaves has a variable called
NAME
that is unique, you can send JavaScript commands straight to any of the slaves. For instance on the 'master':Then all devices will execute the code, but only the devices with the correct names will actually run the command after the
if
statement.Hope that helps!