Minimal MQTT: Building A Broker

In this short series, we’re going to get you set up with a completely DIY home automation system using MQTT. Why? Because it’s just about the easiest thing under the sun, and it’s something that many of you out there will be able to do with material on-hand: a Raspberry Pi as a server and an ESP8266 node as a sensor client. Expanding out to something more complicated is left as an exercise to the motivated reader, or can be simply left to mission creep.

We’ll do this in four baby steps. Each one should take you only fifteen minutes and is completely self-contained. There’s a bunch more that you can learn and explore, but we’re going to get you a taste of the power with the absolute minimal hassle.

In this installment, we’re going to build a broker on a Raspberry Pi, which is the hub of your MQTT network. Next time, we’ll get an ESP8266 up and running and start logging some data. After that, we’ll do some back-end scripting in Python to make the data speak, and in the last installment, we’ll explore some of the useful frills and fancy bits. Let’s get started!

Continue reading “Minimal MQTT: Building A Broker” →

The Coming Wide-Spread Use Of Drones In Agriculture

Whether you call them UAVs (Unmanned Aerial Vehicles), UAS (Unmanned Aerial System), Drones, or something less polite – people are more familiar than ever with them. We’ll call them drones, and we’re not talking about the remote-controlled toy kind – we’re talking about the flying robot kind. They have sensors (GPS and more), can be given a Flight Plan (instructions on where to go), and can follow that plan autonomously while carrying out other instructions – no human pilot required. Many high-end tractors are already in service with this kind of automation and we’ve even seen automated harvesting assistance. But flying drones are small and they don’t plant seeds or pull weeds, so what exactly do they have to do with agriculture?

There are certain things that drones are very good at, and there are things in agriculture that are important but troublesome to do or get. Some of these things overlap, and in those spaces is where a budding industry has arisen.

Continue reading “The Coming Wide-Spread Use Of Drones In Agriculture” →

Which Wireless Tech Is Right For You?

It seems these days all the electronics projects are wireless in some form. Whether you choose WiFi, Bluetooth Classic, Bluetooth Low Energy, ZigBee, Z-Wave, Thread, NFC, RFID, Cell, IR, or even semaphore or carrier pigeon depends a lot on the constraints of your project. There are a lot of variables to consider, so here is a guide to help you navigate the choices and come to a conclusion about which to use in your project.

We can really quickly reduce options down to the appropriate tech with just a few questions.

Continue reading “Which Wireless Tech Is Right For You?” →

Analog To Digital Converter (ADC): A True Understanding

Back in the day where the microprocessor was our standard building block, we tended to concentrate on computation and processing of data and not so much on I/O. Simply put there were a lot of things we had to get working just so we could then read the state of an I/O port or a counter.

Nowadays the microcontroller has taken care of most of the system level needs with the luxury of built in RAM memory and the ability to upload our code. That leaves us able to concentrate on the major role of a microcontroller: to interpret something about the environment, make decisions, and often output the result to energize a motor, LED, or some other twiddly bits.

Often the usefulness of a small microcontroller project depends on being able to interpret external signals in the form of voltage or less often, current. For example the output of a photocell, or a temperature sensor may use an analog voltage to indicate brightness or the temperature. Enter the Analog to Digital Converter (ADC) with the ability to convert an external signal to a processor readable value.

Continue reading “Analog To Digital Converter (ADC): A True Understanding” →

Getting Ugly, Dead Bugs, And Going To Manhattan

Back in the 1980s I was a budding electronics geek working in a TV repair shop. I spent most of my time lugging TVs to and from customers, but I did get a little bench time in. By then new TVs were entirely solid-state and built on single PC boards, but every once in a while we’d get an old-timer in with a classic hand-wired tube chassis. I recall turning them over, seeing all the caps and resistors soldered between terminal strips bolted to the aluminum chassis and wondering how it could all possibly work. It all looked so chaotic and unkempt compared to the sleek traces and neat machine-inserted components on a spanking new 19″ Zenith with the System 3 chassis. In a word, the old chassis was just – ugly.

Looking back, I probably shouldn’t have been so judgmental. Despite the decades of progress in PCB design and the democratization of board production thanks to KiCad, OSH Park, and the like, it turns out there’s a lot to be said for ugly methods of circuit construction.

Continue reading “Getting Ugly, Dead Bugs, And Going To Manhattan” →

Carbon Monoxide: Hunting A Silent Killer

Walt and Molly Weber had just finished several long weeks of work. He was an FBI agent on an important case. She had a management job at Houghton Mifflin. On a sunny Friday evening in February of 1995, the two embarked on a much needed weekend skiing getaway. They drove five hours to the Sierra Mountains in California’s Mammoth Lakes ski area. This was a last-minute trip, so most of the nicer hotels were booked. The tired couple checked in at a lower cost motel at around 11:30pm on Friday night. They quickly settled in and went to bed, planning for an early start with a 7am wakeup call Saturday morning.

When the front desk called on Saturday, no one answered the phone. The desk manager figured they had gotten an early start and were already on the slopes. Sunday was the same. It wasn’t until a maid went to check on the room that the couple were found to be still in bed, unresponsive.

Continue reading “Carbon Monoxide: Hunting A Silent Killer” →

The Dark Arts: Anonymity

Love him or hate him, Edward Snowden knew a thing or two about anonymity. In June of 2013, he blew the whistle on the NSA’s out-of-control programs that can target virtually anyone plugged into the digital age. The former CIA employee was working as a contractor for the NSA, where he had access to highly classified documents for many of these general populace surveillance programs. He eventually took off to Hong Kong and released the documents to a handful of reporters. One of these documents was a power point presentation of the NSA complaining about how the TAILS operating system was a major thorn in their side. Naturally, Snowden insisted that the reporters and himself only communicate via the TAILS O/S. He used PGP, which is an encryption method with the highly sophisticated title of “Pretty Good Privacy”, and asked not to be quoted at length for fear of identification via stylometry.

In this article, we’re going to go over the basics of anonymity, and introduce you to methods of staying anonymous while online.

Continue reading “The Dark Arts: Anonymity” →