Do you need a solution for home automation, hydroponics, light industrial automation, and other related predicaments? Take control of and monitor your world with Pimoroni’s Automation HAT — an ultimate jack-of-all-trades Raspberry Pi HAT!
With relays, analog channels, powered outputs, and buffered inputs (all 24V tolerant), this home monitoring and automation controller allows you to hook up a plethora of goodies to your Raspberry Pi all at once. Better still, each channel has an indicator LED which means you can see what’s happening with your setup at a glance. Even the analog channels have dimming LEDs that allow you to see the value they are currently sensing.
Compatible with all versions of Raspberry Pi that have the 40-pin GPIO header (3, 2, B+, A+, Zero), and comes fully assembled!
3 x 24V @ 2A relay (NC and NO terminals)
3 x 12-bit ADC @ 0-24V
3 x 24V tolerant buffered inputs
3 x 24V tolerant sinking outputs
15 x channel indicator LEDs
1 x 12-bit ADC @ 0-3.3V
3.5mm screw terminals
Power, Comms, and Warn! LED indicators
Extra GPIO: TX (#14), RX (#15), #25
Please note: We recommend you use a set of Brass M2.5 Standoffs with the Automation HAT to avoid pins contacting the HDMI port if the HAT is pushed down.
Back in the old days, the cool kids didn’t have an Apple II or a Trash-80. The cool kids had jobs, and those jobs had Vaxxen all over the place. The usual way of working with a Vax would have been a terminal, a VT220 at least, or in the case of [Sudos]’ experiments with a Raspberry Pi, A DEC VT510, a single session, text only serial terminal.
Usually, when we see a ‘new hardware stuffed into old tech’ project like this, the idea is simply to find a use for the old hardware. That makes sense; a dumb terminal from the late 90s should be a bit rarer than a Raspberry Pi Zero. This is not the case for [Sudos]’s build. He recently came across a few Raspberry Pi Zeros at Microcenter, and looking for a use for them, he decided to turn a serial terminal into a Real Unix System™.
As you would expect from a serial terminal, connecting a Raspberry Pi and putting some awesome character graphics on the screen is as simple as a Max3232 board picked up from eBay, a WiFi dongle, and an Ethernet adapter. Connect the Pi to the terminal with a serial adapter cable, and you’re off to the races.
While the VT510 serial terminal is just about the end of the line as far as dedicated terminals go, there are classier options. The VT100 terminal, older than most of the Hackaday readership, features a port on its gigantic board, meant to connect to whatever weirdness was coming out of Maynard in the late 70s. You can attach a BeagleBone to this connector, making for a very slick stealth mod.
[Cameron Meredith] starts the Hackaday.io page for one of his projects by quoting a Hackaday write-up: “A timepiece is rather a rite of passage in the world of hardware hacking“. We stand by that assertion, but we’d say most of the clocks we feature aren’t as capable as his project. He’s made a real-time-clock module controlled by a rubidium frequency standard, and since it also includes a GPS clock he can track local time dilation effects by comparing the two.
Surplus rubidium standards are readily available, but each description of one seems to feature a lot of old-fashioned hardware hacking simply to get it working. This one is no exception, an unusual connector had to be replaced and an extra power supply module attached. Once those modifications had been made and a suitable heatsink had been attached, he was able to bring the rubidium standard, an RTC module, and GPS module together with an ATMega32U4 miniature Arduino-compatible board and an LCD display. The firmware is functional, but he admits it is not finished.
All the project’s files can be found on the Hackaday.io page linked above. Future plans include also monitoring the NIST WWVB radio time signal from Fort Collins, Colorado, for an extra time dilation comparison.
We’ve featured innumerable clocks over the years here at Hackaday, but among them have been a few based upon atomic standards. More than one has been used as a lab reference standard, but most similar to this build is [Max Carters] experiments to check the accuracy of an atomic standard, also using the WWVB transmissions.
Group entry hacks are a favorite for hacker social groups. Why use old fashioned keys when you can use newfangled electronic keys? If you are looking to build a simple RFID-based security system to secure your important stuff, this project from Resin.io is a good place to start. In it, [Joe Roberts] outlines the process of building a simple RFID-triggered mechanism for their office door.
It’s a pretty simple setup that is composed of an RFID reader, a Rasperry Pi and a Neopixel ring. When someone places an RFID card against the reader hidden behind a poster by their front door, the reader grabs the code and the Pi compares it with a list of authorized users. If the card is on the list, the Pi triggers the door lock using a signal line originally designed to work with an intercom system. If the user isn’t on the list, a laser is triggered that vaporizes the interloper… well, that’s perhaps in the next version, along with an API that will allow someone to open the door from the company chat application.
At the moment, this is a clean, simple build that uses only a few cheap components, but which could be the basis for a more sophisticated security system in the future.
[Irene Sans] and [Alvaro Ferrán Cifuentes] feel that electric wheelchairs are still too expensive. On top of that, as each person’s needs are a little different, usually don’t exactly fit the problems a wheelchair user might face. To this end they’ve begun the process of creating an open wheelchair design which they’ve appropriately dubbed OpenChair.
As has been shown in the Hackaday Prize before, there’s a lot of things left to be desired in the assistive space. Things are generally expensive. This would be fine, but often insurance doesn’t cover it or it’s out of the range of those in developing nations. As always, the best way to finish is to start, so that’s just what [Irene] and [Alvaro] has done.
They based their initial design on the folding wheel chair we all know. It’s robust enough for daily use and is fairly standard around the world. They designed a set of accessories to make the wheelchair more livable for daily use as well as incorporating the controls.
The next problem was locomotion. Finding an off-the-shelf motor that was powerful enough without breaking the budget was proving difficult, but they had an epiphany. Why not use mass production toy crap to their advantage. The “hoverboards” that were all the rage this past commerical holiday season were able to roll a person around, so naturally a wheelchair would be within the power range.
They extracted the two 350 watt hub motors, batteries, and control boards. It took a bit of reverse engineering but they were able to get the hub drive motors of the hoverboard integrated with the controls on their wheelchair.
In the end they were able to cut the price of a regular electric wheelchair in half with their first iteration and set the foundation for future work on an open electric wheelchair system. Certainly more work could bring even better improvements.
Resistors are one of the fundamental components used in electronic circuits. They do one thing: resist the flow of electrical current. There is more than one way to skin a cat, and there is more than one way for a resistor to work. In previous articles I talked about fixed value resistors as well as variable resistors.
There is one other major group of variable resistors which I didn’t get into: resistors which change value without human intervention. These change by environmental means: temperature, voltage, light, magnetic fields and physical strain. They’re commonly used for automation and without them our lives would be very different.
As you can probably tell from part of the name, thermal, meaning “of or relating to heat”, these are resistors whose resistance changes with temperature. While that’s true of all resistors, with thermistors the change is larger and desired.
They come in two types:
NTC, or Negative Temperature Coefficient thermistors, where as the temperature increases their resistance decreases, and
PTC, or Positive Temperature Coefficient thermistors, where as the temperature increases their resistance increases.
Many Hackaday readers might be familiar with NTC thermistors in 3D printers where they’re used to measure the temperature of the hot end of the extruder. If your printer has a heated bed it is likely also monitored by an NTC.
And there are many more applications where they’re used for measuring temperature such as in digital thermometers, toasters, coffee makers, freezers, and so on.
But in addition to measuring temperature, NTC thermistors are also used for limiting current. As inrush current limiters they limit any rush of high current when a device is first turned on. Basically when the device is turned on, the thermistor is still relatively cool and so acts as a high resistance, limiting the current. Over time, as more current flows through the thermistor, its temperature increases and so its resistance decreases. That allows more current to flow through it, which is fine since the initial rush of high current is finished by that time.
My only experience with NTC thermistors was to play around with one that was part of an automotive sensor. The sensor was to be screwed into the engine compartment possibly for measuring the coolant or oil temperature. Of course this doesn’t measure the temperature directly. Instead a voltage is applied across it. As the temperature changes, the resistance changes and so does the voltage. The vehicle’s computer then uses a table or formula to map that voltage to a temperature.
I couldn’t find the datasheet for the automotive part and didn’t know the relationship between the thermistor’s temperature and resistance so I put it in a pot of water on the stove. As I slowly brought the water to a boil I measured the water temperature and the thermistor’s resistance, obtaining the chart shown here.
Positive Temperature Coefficient (PTC) thermistors, whose resistance increases as temperature increases, also have their uses.
One example is as a replacement for a fuse. As the current in a circuit increases, the temperature of the thermistor increases due to normal resistive heating. This heat is lost to the surroundings. But if the current is higher than it should be then at some point it will heat up faster than it can lose that heat. At that point the resistance will increase, limiting the current.
With the advent of flat panel displays there are fewer and fewer CRT displays around but some readers will remember that PTC thermistors were used in the display’s degaussing coil circuits. The degaussing coil would need to be energized briefly and turned off gradually. The current through the coil would create the needed magnetic field for degaussing, and the current would also heat up the thermistor. As it did, the thermistor’s resistance would increase in the desired gradual manner, reducing the current through the coil until the circuit shut off.
The name varistor doesn’t help much as the name’s origin comes from “varying resistor”, which is a description of all the parts covered in this article and the others in the series. A varistor’s resistance varies according to the voltage, so maybe remembering that it starts with a ‘V’ helps. In a varistor the higher the voltage, the higher the resistance, and the direction of the current doesn’t matter. It’s also much like a diode in that up to a certain minimum voltage it’s off and then turns on (see the voltage-current graph).
Most applications for varistors are in surge protection, protecting circuits from mains transients, inductive loads and from lightning. They’re usually placed across the circuit to be protected so that should the voltage rise high enough across it, the varistor will conduct and act as a short for the current, instead of the current going through the circuit.
My own experience with varistors comes from my time as a solar contractor. We’d attach lightning arresters to various components of the solar system: two arresters for the inverter, where one set of wires ran outdoors to a generator and another set went out to the loads in the cottage, and one arrester for the charge controller where wires ran out to the solar panels. These are all wire runs where voltage can be induced to damaging levels by nearby lightning.
Each of these lightning arresters contains a Metal Oxide Varistor (MOV). The varistor is connected between the wires and ground. As long as the voltage is low enough then current doesn’t conduct. But when lightning strikes somewhere nearby, the voltage on the wires rises and reaches a point where the varistor conducts to ground (e.g. 385 volts). This prevents the voltage from rising further. As long as the solar component is able to handle that voltage then it’s protected. With some standards, the solar component is designed to handle up to 2300 volts where these wires are connected.
A photoresistor’s resistance decreases as light intensity increases. You may also see it referred to as an LDR (Light Dependent Resistor). Its resistance in the dark can be in the megaohms but with the correct wavelengths and sufficient intensity of light, it can be just a few ohms.
Photoresistors aren’t good for detecting rapid changes in light intensity. In going from complete darkness to light, there can be as much as a 10 millisecond delay before the resistance decreases fully. And when going from light to complete darkness the resistance can take as much as 1 second to increase to the megaohm range. However, there are applications where this delay is desireable such as with audio compression. Here an LED or electroluminescent panel is used to control the resistance of the photoresistor and affect the audio signal gain. Doing so is said to sound smoother by softening the attack and release than doing so without a photoresistor.
Another typical application is for a light sensor to detect if a night light should be turned on.
In my case I made a laser communicator that used an audio signal to modulate the output of a dollar store toy laser. I then shined that now fluctuating laser beam onto a distant photoresistor. The photoresistor was part of a circuit that fed an amplifier and the result was the audio signal transmitted by light and reproduced on the amplifier’s speaker. This violated what I mentioned above about not using them for rapid changes in light intensity, but it worked well enough as a fun experiment.
Magneto Resistive Sensor
The resistance of a magneto resistor can be used to detect the position, orientation and strength of a magnetic field. It uses the magnetoresistance effect. The anisotropic magnetoresistance (AMR) effect, discovered in the 1800s is sensitive to the magnetic field strength and the angle between an electric current and the magnetic field. There are other, more recently discovered effects but most conventional resistors use the AMR effect. Magneto resistive sensors that are built around these resistors are available from Digikey and Mouser among others.
I haven’t used magneto resistive sensors myself but one common application is as wheel speed sensors in automobiles. Others are magnetometry, various sensors for angle, rotation and linear positions, and for detecting vehicles on the road.
There is a lot of interesting potential applications for these sensors. At the 2013 Open Hardware Summit a 1-DOF haptick feedback kit called Hapkit was demonstrated by a group from Stanford. They used a magneto resistive sensor to detect a pendulum’s position. That position is then used by a microcontroller to power a motor to make moving the pendulum by hand feel like you’re moving a spring or click wheel.
A strain gauge is an electrical conductor that changes resistance as it’s stretched or compressed, but without breaking, buckling or otherwise permanently deforming it. To get a large enough effect to make a useful change in resistance, the conductor is usually laid out in a zigzag or serpentine pattern with the long ends oriented in the direction of the expected strain.
The change in resistance is very small and so to aid measurement the strain gauge is incorporated in a Wheatstone bridge. A full article could be written about strain gauges and their use in Wheatstone bridges so here’s just a brief overview.
The Wheatstone bridge consists of two voltage dividers, R1 and R2 being one of them, and R3 and R4 being the other one. The input voltage, called the excitation voltage (VEx), is across the outside of the bridge, and the resulting output voltage (Vo) is taken from the centers of the two voltage dividers.
The voltage output, Vo, can be calculated using the formula shown. If the ratio R1/R2 is equal to the ratio R4/R3 then calculating Vo you’ll find you get 0 volts. But if one of the resistors is replaced with a strain gauge then when it’s strained, Vo will become non-zero. Further formulas can be used to convert this to a value in a unit actually called ‘strain’.
Multiple strain gauges can also be used to further amplify the values and to compensate for temperature.
Strain gauges are found in load cells and pressure sensors, both often incorporated in Wheatstone bridges. The ones in pressure sensors are usually made with silicon, polysilicon, metal film, thick film or bonded foil.