Regular readers will know about the script that Aidan Ruff and I originally developed to put Node-Red and several other packages onto the Raspberry Pi for our own home control purposes. This has been developed with help from several people and in particular my friend Antonio “Mr Shark”.
WELL – here is the script which is intended to help set-up certain Raspbian, Debian or similarly-based SBCs which now includes logging and handling Raspbian Buster (tested on Raspberry Pi 2, 3, 3B+, 4 with Stretch, 3B+ and 4 with Buster). As well as it’s original purpose of setting up a Raspberry Pi, the script also runs well with several other boards. See right hand side of the above image for what the script does, given a basic operating system install. We currently suggest NOT using this with DIET PI, original Pi or the Raspberry Pi Zero as we are no longer testing either and the latter pair are just TOO SLOW.
There are different ways to ruin a Linux system. For the Raspberry Pi which uses a micro SD card as the storage device by default, it comes with two challenges:
1.Excessive writes to the SD card can wear it out
2.Sudden power failure during a SD card write can corrupt the file system
For problem one I do I have a mitigation strategy (see “Log2Ram: Extending SD Card Lifetime for Raspberry Pi LoRaWAN Gateway“). Problem two can occur by user error (“you shall not turn it off without a sudo poweroff!”) or with the event of a power outage or black out. So for that problem I wanted to build a UPS for the Raspberry Pi.
First, I decided to upgrade from the Raspberry Pi Model B to a more recent Raspberry Pi Zero W that I had on hand. Wired Ethernet is so ~ 2013 after all, and wireless would be a lot more convenient. Next, I designed a 3D printed case for it, as my old laser-cut-acrylic-and-glue case also looked very dated. Finally, I replaced the software with a new program designed to poll the data from my octoprint server. In less than an afternoon, I had turned the old temperature/humidity display into something useful.
Eric Higgins has a nice build log on his Open Trickler project a bluetooth-enabled smart powder trickler from off-the-shelf parts for under $60:
Fundamentally, this is not a hard problem to solve. Read the value from the scale, run a motor that moves powder into the scale, turn off the motor when the scale reads the target weight. As with many projects, the devil’s in the details and there was plenty of trial-and-error during the development process to reach a working prototype.
In this project, a Raspberry Pi is used to read the weight from the scale and run a small vibration motor (like those in mobile phones) to trickle powder. An app on your phone or tablet connects to the Raspberry Pi over Bluetooth, and is used to set the target weight and start/stop the automatic trickling process.
For years I’ve followed the “uRadMonitor”, a device that does air quality monitoring and radiation monitoring. I’ve played with geiger counter projects before and frankly found them to be not very interesting. However, the idea of monitoring air quality is something that seemed like it might yield interesting data. For example, as I’ve started to become involved in 3D printing, it would be useful to see whether or not 3D printing affected the air quality. It would also be useful to correlate my results with what my region reports for outdoor air quality.
In this project we build simple I2S stereo decoder with amplifier. To decode I2S data we use Princeton Technologies PT8211 16bit DAC. KA2206 audio power amplifier is used as driver stage of this system.
Structure of this I2S amplifier is self-explanatory from the schematic. We select PT8211 and KA2206 combination due to lower cost and availability. Unfortunately PT8211 DIP package is not available in local market and we use SO package in our prototype. We design PCB for the DIP packages, and therefore we solder PT8211 SO package to PCB using “SO8 to DIP8” converter.
The implementation is simple genius. It’s a browser that starts up full screen (kiosk mode) and just sits there and updates occasionally. DakBoard provides the private webpage and tools to make that happen. You can certainly build this yourself with any number of open source tools. I chose DakBoard because it was simple, beautiful, and I was able to get the whole thing done in less than an hour. I’m sure I’ll spend many hours tweaking it through. There’s also the very popular MagicMIrror platform, so lots of choice and power in this space!
Above you can see my prototype. I’m using a 4.2″ e-Paper display from Gooddisplay, together with the Waveshare breakout board. I have a couple of ENS1J-B28-R00128 optical encoders that I attained on eBay. I specifically chose these encoders instead of traditional electro-mechnical encoders due to the high numbers of pulses per revolution. A typical electro-mechanical encoder will net about 24 pulses per revolution. The optical encoders I bought on ebay are 128 pulses per revolution. Our 4.2″ ePaper has 400×300 pixels. To traverse the major axis would require 16 full turns of the electromechical encoder but only 3 turns of the optical encoder.
The hardware is so simple that there’s not much more to say. The encoders are connected to GPIO pins of a Raspberry Pi. Note that there are resistors inline on the encoder outputs as the encoders are 5V and the Raspberry Pi uses 3.3V GPIO. The e-ink display is connected to the SPI bus.
See the full post on his blog here and the GitHub repository here.
A few days ago I started playing with some idea I had from a few weeks already, using a Raspberry Pi Zero W to make a mini WiFi deauthenticator: something in my pocket that periodically jumps on all the channels in the WiFi spectrum, collects information about the nearby access points and their connected clients and then sends a deauthentication packet to each one of them, resulting in some sort of WiFi jammer on the 802.11 level. As an interesting “side effect” of this jammer (the initial intent was purely for the lulz) is that the more it deauths, the higher the changes to also sniff WPA2 handshakes.
So if you have been following my blog lately you may have noticed me rambling on about trying to get a Xbox 360 chat pad and an ps3 keypad working with a raspberry pi to make a portable terminal. I have finally finished my quest so join me below to see how I did it