Here we go again . . . another story of following the instructions for a project exactly and failing miserably. A while back, I got a GrovePi and a bunch of sensors. It would be perfect for adding inputs to the Raspberry Pi since it has temperature, pressure, flame, light, sound, knock, distance, and more sensors. So, first, I decided to try the joystick. I went to the website for GrovePi and found instructions there (dexterindustries.com or seedstudio.com). Wait . . . what? The kit didn’t come with any cables. Huh? The one in the picture has a white plastic connector with four pins. Mine has no connector and 5 pins! What’s going on here?
I found out that the sensors that I bought on Amazon are not GrovePi sensors at all. They are compatible . . . sort of, but they are not the GrovePi sensors. They came with some connector wires (that don’t fit) and a ribbon cable (which is pretty useless). The little instruction book only has a picture of each sensor and no instructions whatsoever. There is an instruction manual online, but it sounds like it was written in another language and translated by a 4-year old. Here are a couple of quotes:
“13 comes with digital interfaces of the LED, the shock sensor access number 3 interface, when a sense of shock sensor”
“The reason why we feel that infrared is really a wonderful thing, it is because we are invisible, intangible, but Okay, we do not need that, too, can control it and make it serve us, in fact, we are more magical, Is not?”
“The amount of points we can hand to block receiver module, see also the normal communication between them do? The following is the receive window Ah, looked at the window, and we all know it. . .”
I don’t mean to make fun of anyone and their English ability, but these sentences are so confusing that I cannot figure any of them out. And it’s only written for Arduino (yuck!), not Raspberry Pi.
The reason for all of this is that I purchased a kit on Amazon called the SunFounder 37 modules Raspberry Pi Sensor Kit. This kit is no longer available, but there are still Arduino kits like this one. You can still get the old kit at Amazon.de, but I wouldn’t recommend it.
Bottom line is that the GrovePi is a great product. It has solved all of the issues that I blogged about before with using analog sensors on the Raspberry Pi (here). The GrovePi library has all of the code for accessing the analog ports on the GrovePi with simple code. But I would highly recommend buying actual GrovePi sensors (like this one), not SunFounder sensors. Support for GrovePi sensors on the Raspberry Pi is pretty good, but the software comes with sample code that can easily be modified to use most of the sensors and there are a few cool projects on their website (here). (Note: This kit no longer says on the advertisement that it works with GrovePi and it comes with an instruction book. I don’t have the book, so I cannot tell you if it’s good or not.)
I’ll blog later about how I used the code for the analog temperature sensor to make the SunFounder analog sensor work and then modified that code to make the Photo Resistor Sensor work with very few changes. I’ve added some error handling that people on a forum told me about, so the program doesn’t crash anymore. My ultimate goal is that some of the students at my school are planting an experimental citrus grove and we want to use moisture sensors to automatically trigger an irrigation system. So, it would have about 40 moisture sensors and a couple of relays to trigger water pumps connected to a tank of reclaimed water. We might also get a water flow meter to measure how much water we’ve used and track whether the system is working.