Last time, I talked about a simple kind of neural net called a perceptron that you can cause to learn simple functions. For the purposes of experimenting, I coded a simple example using Excel. That’s handy for changing things on the fly, but not so handy for putting the code in a microcontroller. This time, I’ll show you how the code looks in C++ and also tell you more about what you can do when faced with a more complex problem.
Skills356 Articles
Machine Learning: Foundations
When you want a person to do something, you train them. When you want a computer to do something, you program it. However, there are ways to make computers learn, at least in some situations. One technique that makes this possible is the perceptron learning algorithm. A perceptron is a computer simulation of a nerve, and there are various ways to change the perceptron’s behavior based on either example data or a method to determine how good (or bad) some outcome is.
What’s a Perceptron?
I’m no biologist, but apparently a neuron has a bunch of inputs and if the level of those inputs gets to a certain level, the neuron “fires” which means it stimulates the input of another neuron further down the line. Not all inputs are created equally: in the mathematical model of them, they have different weighting. Input A might be on a hair trigger, while it might take inputs B and C on together to wake up the neuron in question.
Continue reading “Machine Learning: Foundations”
ESP32 Modules Popping Up Everywhere, In Stock Almost Nowhere
We know what it’s like to wait for newly released electronic parts. Clicking refresh every day at your favorite online retailers, reading reviews published by the press who got preview units, and maybe even daring to order implausibly cheap devices from foreign lands. The ESP32 has many of us playing the waiting game, and we’ll level with you — they’re out of stock most places. But, if you look hard enough you can find one. At least, you could find them before we wrote this quick roundup of ESP32 hardware. If hearing about parts that are just out of reach is your sort of thing, then read on, you masochist!
Continue reading “ESP32 Modules Popping Up Everywhere, In Stock Almost Nowhere”
SSH Enters The Mosh Pit
With so many systems depending on Linux, the secure shell SSH has become a staple for many developers. If you are connected to your Raspberry Pi via a cable or a wireless router a few feet away, SSH can provide you with an encrypted connection straight to the box. However, if you have a system out in a swamp somewhere with intermittent slow network access, SSH can be a real pain. When your IP address can change (for example, roaming on a cellular network), SSH has problems, too.
To combat these and other problems, you might consider an open source program called Mosh (mobile shell). There’s two parts to Mosh. One part works as a server while the other is the client application. Neither of these require root access. You can see a video about Mosh below.
Not Quite 101 Uses For An ATX Power Supply
The PC power supply has been a standard of the junk box for the last couple of decades, and will probably continue to be for the foreseeable future. A product that is often built to a very high standard and which will give years of faithful service, yet which has a life of only a few years as the PC of which it is a part becomes obsolete. Over the decades it has evolved from the original PC and AT into ATX, supplying an ever-expanding range of voltage rails at increasing power levels. There have been multiple different revisions of the ATX power supply standard over the years, but they all share the same basic form factor.
So a pile of ATX supplies will probably feature in the lives of quite a few readers. Most of them will probably be old and obsolete versions of little use with today’s motherboards, so there they sit. Not small enough to ignore, yet Too Good To Throw Away. We’re going to take a look at them, try to work out what useful parts they contain, and see a few projects using them. Maybe this will provide some inspiration if you’re one of those readers with a pile of them seeking a purpose.
Continue reading “Not Quite 101 Uses For An ATX Power Supply”
A Machine Shop In A Toolbox: Just Add Time
You don’t need any fancy tools. A CNC machine is nice. A 3D printer can help. Laser cutters are just great. However, when it comes to actually making something, none of this is exactly necessary. With a basic set of hand tools and a few simple power tools, most of which can be picked up for a pittance, many things of surprising complexity, precision, and quality can be made.

A while back I was working on a ring light for my 3D printer. I already had a collection of LEDs, as all hackers are weak for a five-dollar assortment box. So I got on my CAD software of choice and modeled out a ring that I was going to laser cut out of plywood. It would have holes for each of the LEDs. To get a file ready for laser cutting ook around ten minutes. I started to get ready to leave the house and do the ten minute drive to the hackerspace, the ten minutes firing up and using the laser cutter (assuming it wasn’t occupied) and the drive back. It suddenly occurred to me that I was being very silly. I pulled out a sheet of plywood. Drew three circles on it with a compass and subdivided the circle. Under ten minutes of work with basic layout tools, a power drill, and a coping saw and I had the part. This was versus the 40 minutes it would have taken me to fire up the laser cutter.
Continue reading “A Machine Shop In A Toolbox: Just Add Time”
Skynet Takes Over…Academia?
A telescope isn’t an unusual thing to own if you are technically inclined. You might have even made one, at some point. However, despite improvements in optical technology and computer aiming devices, your four to twenty-inch instrument is never going to show you images like you see from big giant telescopes. The problem is, going really big requires a lot of investment in time, money, and sometimes even real estate. The big scopes get buildings constructed for them, and in exotic locations; why would you build a 24-inch scope only to try to see through the light pollution in your backyard?
Here’s an idea: take an astronomy class at a college and use their big telescope. Well, who has the time and money for that? Actually, you do. Skynet is a global network of telescopes headquartered at the University of North Carolina. As part of their mandate, they offer several tuition-free astronomy classes over the Internet. The best part? You also get free time on Skynet’s telescopes to complete your class assignments. There is a small fee (between $45 and $65) to a “benefit corporation” to administer assignments. You do get a certificate upon graduation. If you don’t want to do the assignments and you don’t want a certificate, you can still “take” the classes by simply watching them on YouTube. You can see one of the classes in the video below.





