I'm afraid it looks like the motor draws around 60mA, which is too much for the Puck to output directly. You're going to need to add a transistor or FET to amplify the Puck's signal.
Adafruit themselves will have some good parts/suggestions. As a simple device that's massive overkill you could use this: https://www.adafruit.com/product/355
There should be smaller ones around, but that one will turn pretty much anything on or off from Puck.js :)
One thing to note is the CR2032 battery itself isn't meant to provide anywhere near 60mA - so while it might work, really you ought to use a bigger battery because it'll flatten itself in no time :)
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.
Hi!
I'm afraid it looks like the motor draws around 60mA, which is too much for the Puck to output directly. You're going to need to add a transistor or FET to amplify the Puck's signal.
Adafruit themselves will have some good parts/suggestions. As a simple device that's massive overkill you could use this: https://www.adafruit.com/product/355
There should be smaller ones around, but that one will turn pretty much anything on or off from Puck.js :)
One thing to note is the CR2032 battery itself isn't meant to provide anywhere near 60mA - so while it might work, really you ought to use a bigger battery because it'll flatten itself in no time :)