- KEYWORDS: SeeedStudio,Grove,System
The Seeed Studio Grove System is an open modular toolset, designed to minimize the difficulty of electronic engineering. Each board has unified 4pin interface and standardized jigsaw shape for easy combination.
When using the Arduino adaptor shield on the Pico, just plug the Grove Arduino Shield on top of it. A direct Grove Pico adaptor will be available soon as well.
Otherwise, you need to wire each module up to GND, VCC, and to signal wires on the Pico. The connections should be written on the board. If it specifies SDA
/SCL
, make sure you use pins on the Pico that can handle [[I2C]].
Each 'Grove' library in Espruino expects to be given an array of 2 pins as an argument, for instance [A0,A1].
To make this easier we've added some modules with these arrays already defined, just choose from the table:
Adaptor | Module |
---|---|
Arduino Adaptor shield for Pico | [[GroveArduinoPico.js]] |
Pico Mini Adaptor Shield | [[GrovePico.js]] |
Once you're using the correct module, for instance with var grove = require("GrovePico");
,
you can then access the relevant pins just by typing grove.NAME
where NAME
is the name
written on the Grove board. For instance for a button connected to D2
on the Pico Shield,
you'd simply do:
var grove = require("GrovePico");
new (require("GroveButton"))(grove.D2, function(e) {
if (e.state) console.log("Pressed");
else console.log("Released");
});
If you've wired up a grove module manually, just put the 2 pins you used in an array, and use that instead:
new (require("GroveButton"))([A0,A1], function(e) {
if (e.state) console.log("Pressed");
else console.log("Released");
});
- APPEND_JSDOC: GroveButton.js
- APPEND_JSDOC: GroveBuzzer.js
- APPEND_JSDOC: GroveTouch.js
- APPEND_JSDOC: GroveRotation.js
- APPEND_JSDOC: GroveLightSensor.js
- APPEND_JSDOC: GroveTemperature.js
- APPEND_JSDOC: GroveRelay.js
- APPEND_JSDOC: GroveLCDRGB.js
The Grove System Starter kits and individual parts are available directly from SeeedStudio in China, or from a range of distributors.