So some time I ago I worked on voice commands and light conversation to my raspberry pi3 using espeak in the last post. In this way I could simply ask my computer things as opposed to a keyboard and mouse and it could also learn new words and how to use them through conversation via machine learning.
So I thought I’d take that further by strapping sensors to it,afterall, it Wouldn’t really be living if it couldnt take in the environment and have those things influence it’s “personality” as well.
So what I did was, combine what I learned with espeak with SENSOR data..
Set up the pi3 for Grove sensors:
Now tested with the Raspberry pi 3b+
My computer was talking at this point and had one or two learning systems in it that made a little more of an individual. But was still confined to a digital space. I wanted my computer to interact with the ever changing environment around it, not just the people it talks to.
Environmental interactivity and inspection
Ha, some of this idea came from this hundred year old house I’m living in. I was curious about the air quality. 🙂 Most sensor set ups I’ve seen with the raspberry pi are terribly invasive or an eyesore to look at and theres never enough room for the kinda crazy shit I had in mind.
I wanted something cleaner and reusable while being able to fit lots of them at once. So I bought the Grovepi+ starter kit for raspberry pi 3.
Grove sensors are sick because they’re totally modular(swap out sensors) and are pretty much plug and play once your pi is configured. it even comes with examples for most of the sensors you’ll ever use.
Ok, first thing is to head over to Dexter industries for a nice straight forward tutorial to configure it to your pi.
Make sure your grove pi firmware is up to date to avoid heart breaking errors that come up out of the blue. (You can temporarily fix such errors by completely shutting down your pi and cutting off power) So make sure you update that firmware frequently!!
most of my sensors came with the kit but its well worth it to look into other sensors that you could upgrade your system with and really bring out the most in your imagination.
I currently use…
Your pitch perfect potentometer. Great for adjusting sensitivity levels or switching modules.
this fun sensor is basically a button that reads the human touch and can even do it while covered. Make a great panic button. I use it as an input button by simply touching near it.
High pitched, loud and obnoxious..the perfect alarm.
displays information in the form of color and text. Its a great way for an a.I. to express itself. And to also display information from other sensors with text and their status with colors.
colorful lights are always fun tho with the LCD I don’t really need these as much for my projects.
simple but essential raspberry pi temperature sensor. A constant update of the temperature and humidity. Great for weather functions.
for a more complete readout of the altitude and air pressure. I thought it would also come in handy for a future drone project.
reads all parts of sunlight. Great for finding perfect planting spots. Or solar panel spots. Or a weather system. Can read visible light, uv levels and the infrared spectrum.
For testing moisture levels. Can be used for many things but its perfect for testing the soil for water levels. And combined with the sunlight sensor makes a more complete tool for planting.
measures light levels.think this can be used as a light meter for photography. Can also be used for an automatically adjusting light system.
detects motion of lifeforms. Great for security systems and lot projects.(automatic doors etc) if you were looking for a raspberry pi motion sensor, look no further.
A kind of directed sonar. Tells you the distance of a solid object. For robots, its used for obstacle avoidance, I thought I’d use it for a blindfly program where I can be guided through a dark room or judge the distance from a jump or even make a Spidey sense system with a few more plugged in.
A noise detector. Can be used for “wake up calls”.
this is more of a computer vision thing to me, I wanted my computer to respond to and single out color.
ugh love this thing. It lifts about as much as it looks like it could it picked up 4keys on the ring but not much more. I hooked up the touch sensor as an on switch and shuts off when released.
I use this as another a.i. add-on. Says ouch when you hit it. Think I can use it as a low grade pedometer or something as well. Fell like this would be better suited for a robot though. Though it can in theory, be applied to an airbag system..
Fire detector. Perfect for a fire alarm.
for overall air cleanliness. Very general handy information about the air. On a scale from 0-700+ it tells you how clean the air is 700 being dangerous levels. My room is in the 400s usually.
another safety tool i think every home should have. This checks for multiple Kinds of harmful gases.
A beautiful piece of hardware that lets you connect a higher voltage power source to a heavier duty motor using the pi to activate it. Say there’s too much pollution around you, you can activate high speed fans to blow it all away. Diy a power drill for some multitool action etc.
if your project requires more 12c slots than the board has and you don’t really need/want to stack them, get a 12 expander it increases the slots by 3.
Great if you need your sensors to have more reach. As you can see by the picture, the 50cm is a little more than double the standard connector size.
If you need more more space, you can always attach 2 sensors on a single branch cable. Both sensors share the same slot and can be called up independantly. Highly useful.
Phew. So after i got to know the sensors indiviually, i modified them all and put them into a single class called Hazard
Which works as a customizable main menu to access and read any connected sensor through the lcd so that it wont need any monitors in the future. Then i took the necessary logic and put it all in a LOGIKA folder and appended the path nice and tidy 😉
Well I’d say that’s just about it for this post. In the next post, I’ll attempt to make my new computer wearable with 3d printed parts, demo videos and more.
As usual, stay tuned!, like!, share! and comment!