Grove Button
Last updated
Last updated
Grove - Button is a momentary push button. It contains one independent "momentary on/off" button. “Momentary” means that the button rebounds on its own after it is released. The button outputs a HIGH signal when pressed, and LOW when released. The button signals the SIG Pin of the Grove Interface while NC is not used at all. There are two versions of this button available as showed in the pictures. The only difference between them is the direction of the Grove socket.
Easy to use momentary ON/OFF button
Uses Standard 4-pin Grove Cables to connect to other Grove modules such as Grove Power Modules and Grove - Base Shield
!!!Tip More details about Grove modules please refer to Grove System
Standalone
Follow these steps to build a sample circuit using this module but without using any microcontroller:
Connect the button module to the input side of your circuit (to the left of the power module). On the output side of the circuit, you may use a range of User Interface modules (Grove - Red LED, Grove - LED String Light, Grove - Mini Fan, Grove - Buzzer, Grove - Recorder etc.)
Power up the circuit when complete.
The button module can now be used to trigger an output. For example:
When used in conjunction with a Grove - Red LED output module, observe that the LED turns ON when you press the button and turns OFF when you stop pressing it.
In terms of power modules, use either the Grove - USB Power module or the Grove - DC Jack Power module for the Grove circuit.
With Arduino
Follow these simple steps to build a Grove circuit using the momentary ON/OFF button:
When using the module in conjunction with an Arduino or a Seeeduino, use the Grove - Base Shield and connect the Grove - Button module to the shield using a designated Grove interface. Also attach an output module such as a Grove - Red LED which will get triggered based on input received from the button. Upload the following sample sketch to make the LED turn ON and OFF based on input from Grove - Button:
With Raspberry Pi
This is a simple example of Raspberry Pi. Run Program and press button, it will print 1 on the terminal, else print 0. Such as the picture below.
Run The Program
Find the path to the file(According to your own path)
Run Progrom
Related Grove Packer
The standard Grove - Button module is available as part of the following Grove Kit Series:
Alternatively, it can be bought stand-alone hereat the Seeed Studio Bazaar. To buy the Panel Mount version of the module, go to here
Inspired by OVERWATCH, we have made a very cool Wooden Laser Gun toy for fun these day!
The Wooden Laser Gun and the Gun Target are all based on an Arduino board called Seeeduino Lotus. The laser emitter on the Laser Gun is controlled to fire laser pulse to "activate" the Gun Target. And there are 3 light sensors on the Gun Target to detect the laser pulse. It seems very simple right? If you are interested in our project, please make one for yourself or your child! It's worth to spend one day DIY it as a Xmas present.