Lurker News
I have Raspberry Pi and I mainly use it for VPN and piHole. I’m curious if you have one, have you found it useful? What do you do with your Raspberry Pi?

Comments (1,069) 486 threads

Earlier comments
secure#
I control my home automation: https://github.com/stapelberg/hmgo for sensors and valve drives, https://github.com/stapelberg/zkj-nas-tools/tree/master/avr-... controls multimedia devices, https://github.com/stapelberg/zkj-nas-tools/tree/master/dorn... orchestrates backups.

I run one as an appliance hooked up to my document scanner which places the documents on Google Drive: https://github.com/stapelberg/scan2drive
I run two more for automatically testing new releases of https://gokrazy.org/
All of this is implemented in Go on top of https://gokrazy.org/, without any Linux distribution in the mix :).

supernova87a2 replies#
I don't have a project yet -- but one I'm really interested in is having a Raspberry Pi run and store historical data from an air quality (particle) measurement sensor. I'm hoping to measure how the air quality outside my home (near a freeway) changes during the day and night with traffic, and also how the indoor air quality is impacted.

It outputs UART 9600 baud data (https://sensing.honeywell.com/honeywell-sensing-particulate-...).
Does anyone have a good link to some simple guides / advice on how to run such devices using a RPi?
Thanks!

weaksauce2 replies#
Uart is just serial, you’d connect it to your serial pins on the pi and read serial from Linux like normal. Data is whatever the protocol Honeywell is using. Could be any range of things sent in a predictable pattern. Could be timestamp,temp,air quality,status, and then some kind of delimiter like newline or eor. Note the pi devices use 3.3 volts instead of 5 so you have to make sure Honeywell is not sending too much voltage as a logical high. There’s probably an easy way to convert it though using a voltage devider.

How much do those sensors cost?

klodolph#
Minor clarification: UART is “just serial” but when people say “serial” they usually mean RS-232 or RS-422, and these don’t use 0V / 5V like you would for 5V logic. They use anywhere from 3-25V signals, with positive voltages for zeroes and negative voltages for ones. Your PC, if it has a serial port on it, probably sends around +/- 13V (this is typical, IIRC).

So don’t hook up 5V logic parts to a serial interface. If you look at RS-232 interface chips they have integrated charge pumps and external capacitors to generate the Tx voltages from Vcc.

weaksauce#
actually I looked at it again and the honeywell uses 0-3.3vdc so you should be ok to use that directly. (obviously double check before wiring)

you need to setup the device by sending a few packets to enable sensing/auto-sending of data that is a particular 32byte structure.

TeMPOraL#
I have a spare RPi2 sitting next to my router and running InfluxDB precisely for collecting Luftdaten readouts.
mindcrime#
I have one set up with the RetroPi distribution, that I carry around with me, along with two USB game-pad controllers, so I can engage in retro-gaming wherever I'm at (assuming there's an HDMI display available).

I'm also dabbling with embedding one in the gutted out shell of an old boom-box, and making it a portable Alexa-like "smart speaker" of sorts. Looking at using something like Mycroft[1] or something of that ilk.
But outside of running Mycroft or whatever, I want to load this thing down with sensors (microphone, webcam, GPS, SDR, accelerometer, temperature, humidity, ultrasonic, infrared, whatever I can) and stream the data to a server where I can do more intensive AI related work. The idea is that this thing is the front-end to experimenting with "embodied AI" and having an AI "thing" that can really sense and experience it's environment.
This whole thing is very incipient, but I'm looking at seeing what I can do with something like OpenCOG, or SOAR or ACT-R, coupled with various ML techniques, to give this thing some level of smarts.
[1]: https://mycroft.ai/

Perceptes1 reply#
I have several of them:

* 1 original model that runs pi-hole for the household
* 1 RPi 3 running RetroPie for emulating classic video games
* 1 RPi 3 connected to an official RPi touch screen display that runs a Home Assistant UI
* 4 RPI 3s running as a Kubernetes cluster, mostly just for the fun of setting it up, but I have a few odd jobs that run on them, such as chat bots
I don't have a picture of the cluster all hooked up, but this is what it looks like without any cables attached: https://twitter.com/jimmycuadra/status/846935997619200000

diehunde1 reply#
How difficult was to setup the cluster using kubeadmin? did you run into too many issues because memory, cpu, etc?
Perceptes#
It's been a while so the details are not fresh in my mind, but it wasn't the easiest thing in the world. I think most of my trouble came from the general lack of polish on Kubernetes (from a cluster operator's perspective) than from the specifics of the Raspberry Pi. One thing I remember clearly is that kubeadm has completely failed to upgrade k8s from one minor version to the next every time I've tried it. I always end up just saving my k8s resources, blowing away the cluster, creating a new one, and resubmitting the resources to the new cluster.

Load more comments