Integrate hardware components with pluggable systems
Application Examples
In a typical application scenario, a small-board computer (SBC) or microcontroller controls several sensors and outputs the data on a display. System providers offer suitable HATs for this purpose – or shields for the Arduino world.
The SparkFun Qwiic HAT has four I2C connections, although your devices must be on different addresses [6]. The Grove HAT (Figure 4), on the other hand, offers different connections – an I2C, PWM, and UART each – as well as two digital connections with two connected GPIOs each and three analog-to-digital converters (ADCs) with two channels each. The HAT has its own microcontroller for analog input and is available for $10 (~EUR10) – and in a variant with even more connections for the large Raspberry Pi models. The ADC connector alone is worth the money. For a Pico, it is best to go for the Maker Pi Pico by Cytron with its six sockets [7].
The double push button in Figure 3 ($2.40/EUR2.20; $2.10/EUR1.90 as a single button) is clear evidence that the plugin system is useful for solder agnostics. The cost might seem quite high at first sight, in that typical 6x6mm buttons cost just a few cents; however, the Grove push button sits on a carrier board with a socket on the back, which means you can mount it easily in a housing. As a bonus, it comes with caps in different colors. Even if DIY is not rocket science, the time you save easily justifies the price.
Grove tags these components as optimized for assembly with a P suffix (for "panel"). The button is also available in a version with the connector pointing upward, which is ideal for prototyping. A mini-breadboard ($3.20/EUR3) is also intended for the same purpose (Figure 5). You can use it to test your own components. A fuse (aptly labeled FUSE on the board) protects the connection.
Adapter cables with Dupont plugs or sockets at one end provide an alternative to normal breadboards. You can use them to connect Grove devices directly to a Raspberry Pi or Pi Pico, and vice versa to connect existing sensors with classic pins to a Grove HAT. The other manufacturers also offer this kind of adapter cable.
If you want your device to have a permanent Grove connection, a small proto shield (Figure 6) offers the solution ($2.10/EUR1.90). Strictly speaking, you would still need voltage converters, but for your own tinkering, you can do without them as long as you know your device's limits.
Assembly-optimized breakouts, a mini-breadboard, and the proto shield are good arguments for the Grove system, against which other manufacturers can't compete.
Conclusions
None of the plugin systems take the work of programming off your hands. However, you can concentrate fully on the software instead of being driven to despair by assumed programming errors that turn out to be bad connections after hours of troubleshooting. Nor do the manufacturers leave you high and dry with the programming: Each manufacturer provides wikis and sample code for its products. Seeed even gives developers a complete Python library [8] for Grove, which gives you a standardized way to control the sensors.
If you are not a hard core solderer or a penny-pincher, then it is definitely worthwhile investing in a cable. The system decision is more about the HAT (or the shield) than the sensors, which can be connected with an adapter cable. If you are a newcomer, Grove is the best choice. Seeed's system offers the greatest flexibility, and the connectors are more robust than those of the smaller alternatives STEMMA-QT and Qwiic, which are restricted to I2C.
Infos
- STEMMA: https://www.adafruit.com/category/1005
- Grove: https://www.seeedstudio.com/category/Grove-c-1003.html
- Qwiic: https://www.sparkfun.com/qwiic
- Gravity: https://www.dfrobot.com/gravity.html
- Tinkerforge: https://www.tinkerforge.com/
- Qwiic HAT hookup guide: https://learn.sparkfun.com/tutorials/qwiic-hat-for-raspberry-pi-hookup-guide
- Maker Pi Pico: https://www.cytron.io/p-maker-pi-pico
- Python library for Grove: https://github.com/Seeed-Studio/grove.py
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.