Can Espruino program a ATMEGA168-20PU? #672
Replies: 2 comments
-
Posted at 2015-01-25 by DrAzzy There are a few questions here:
However - do not despair - there are ways to expand the IO available to an MCU board:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-26 by @gfwilliams 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
Then all devices will execute the code, but only the devices with the correct names will actually run the command after the Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-01-25 by user52526
I'm super duper new to robotics, but it seems like there needs to be some way to use the limited number of pins available on Espruino (or any other microcontroller) to control an unlimited number of pins if used recursively... I've been looking for ideas of how to do this and found this https://www.youtube.com/watch?v=exD4jzZFYN0 where the microcontroller was programmed with an Arduino... if you could pre-program a set of functions into a second or third microcontroller and have the original microcontroller first initiate a function in the second and then wait for signals indicating a certain state to either initiate the next function or to move on to some other process with another component or microcontroller, it would seem do-able, though I'm not sure how this can be done and was wondering if anybody could link me to tutorials or examples if this is possible?
Would these external microcontrollers be programmed in Javascript if I use Espruino?
Beta Was this translation helpful? Give feedback.
All reactions