An ESP8266 Based Smartmeter

During these last weeks we’ve been talking a lot about the ESP8266, a $4 microcontroller based Wifi module. As the SDK was recently released by Espressif a lot of cheap Internet of Things applications were made possible.

[Thomas] used one module to make a simple smartmeter measuring the active time of his heater together with the outside temperature. He added 2 AT commands starting/stopping the logging process and used one GPIO pin to monitor the heater’s oil pump state. The measurements are then periodically pushed via a TCP connection to his data collecting server, which allows him to generate nice graphs.

In the video embedded below you’ll see [Thomas] demoing his system. On his hackaday.io project page he put up a very detailed explanation on how to replicate his awesome project. All the resources he used and create can also be downloaded on the project’s GitHub page.

Continue reading “An ESP8266 Based Smartmeter”

Turning The Raspberry Into A CAD Workstation

Inventables has been working hard on a successor to the extremely popular Shapeoko CNC milling machine, and to bring digital fabrication to the masses, they’ve created Easel, possibly the easiest 3D design software you’ll ever use. [Sacha] was trying out the beta version of Easel and mentioned to the dev mailing list he was running his installation on a Raspberry Pi. One of the developers chimed in, and after a bit of back and forth we now have a workflow to use Easel with the Raspberry Pi.

Easel is a web app, but since the graphics, design, and g-code generation are handled locally, even the most rudimentary CAD suite would choke the decidedly low power Raspi. Instead, [Sacha] is using the Raspberry to grab 2D and 3D files, turn that into g-code for a machine, and send it off to a Shapeoko router.

Easel doesn’t yet have local sender support that works on Linux, so a separate piece of software is used to shoot the g-code over a serial port to the machine. That’s something that will probably be added in a later version of Easel, making a Raspberry Pi a great way to control router or milling machine.

A Remote Control, Swing Wing F-14

Anyone can build a remote control airplane with a sheet of foam, some glue, and a handful of servos. Building an F-14, complete with the swing wing mechanism? [Thomas] found built one that’ll take you right into the danger zone.

This was [Thomas]’ first go at scratch building a RC airplane, and wanted a lot of electronics inside. His choice of airframe was the venerable F-14 Tomcat, complete with wings that swing out for landing and swing in for high-speed flight. This isn’t just taking off-the-shelf receivers and putting them in a fancy airframe, either: [Thomas\ is reading the PWM signals from the receiver with a small electronics board, mixing the elevons with his own code, and implementing an auto stabilization system with an accelerometer.

Most of the work on the airframe was done by [Maybz] over on the RCGroups forums. That’s an impressive thread spanning seven years of posts. [Thomas] doesn’t see his F-14 as an end goal, though: he’s using this as a stepping stone to learn about building unstable planes for a more complex UAV.

Videos below, with a warning to headphone users.

Continue reading “A Remote Control, Swing Wing F-14”

Delicious Dash Pi Driving Data

A few weeks ago, [sentdex] described how Python has changed his life. In particular, it has allowed him to mine Bitcoin automatically, teach other people programming, and realize a full in-car computer for less than $100 using a Raspberry Pi.

It’s based on a model B, which he’s enclosed in a beefy Pi camera case  that sits on the dash of his Honda S2000. The screen is a $17 internet special with composite in, which keeps the BOM way down. A 3A switch wired into the ignition ensures that power to the Pi is not rudely interrupted.

A script takes the Pi directly into desktop mode when [sentdex] starts the car. His main goals for the project were setting up a dash cam and communicating with the OBD computer. The Pi pulls various data points including the throttle position, and the user moves through the list with the arrow keys of one of those roll-up keyboards.

In the future, he’d like to upgrade it to live graph the throttle position and add a sensor to show the brake position. Be sure to check out the walk-through/demonstration video after the break.

Continue reading “Delicious Dash Pi Driving Data”

Making A Speaker With Resin, Magnets, And Wire

A speaker is just about the simplest electronic component possible, just barely more complex than resistors and wire. They’re also highly variable in their properties, either in size, shape, frequency response, and impedance. Obviously, building custom speakers would be of interest to a lot of people, but there aren’t many people out there doing it. [Madaeon] is one of those people. He created a speaker from scratch, using nothing but magnets, wire, and a bit of UV curing resin.

The frame of the speaker contains a magnet, and the coil of wire is carefully attached to the 0.1mm thin speaker cone with a bit of UV curing resin. All the parts are available on Thingiverse, but you will need a UV resin printer with a low layer height to print this thing out.

The speaker was built by [madaeon] as a demonstration of what the printer he built can do. It’s a fairly standard resin-based 3D printer built around a DLP projector. It’s also cheap, and unlike some other cheap resin-based 3D printers, there’s a reasonable likelihood his will ship within the next few months.

Which Way Are We Going? Concepts Behind Rotary Encoders

[Pete] needed a rotary encoder for one of his project so he set out to build his own. As the name implies, a rotary encoder measures rotation by encoding “steps” into electrical signals which can be measured by a microcontroller (or used in numerous other ways). Knowing the degrees of movement for each step will allow you to calculate precise distance traveled in applications like robot wheels. Or you can simply use the rotating shaft as an input device which navigates menus or settings.

This concept is a good one to understand. We had originally planned to build rotary encoders for the multi-person Duck Hunt at Hackaday’s 10th Anniversary but the build-off crew had difficulty getting the system to work. In [Pete’s] case he’s using photointerrupters (apparently the IR beam is easily detected through the white paper but usually these parts would be cut out of the disk). We were using reflectance sensors. Either way there’s a trick to detecting which direction a rotary encoder is turning. We’ll explain that for you after the break.

Continue reading “Which Way Are We Going? Concepts Behind Rotary Encoders”

Arietta G25 Has Us Wondering Where ARM Boards Are Going

ARIETTA-G25-256

This tidy little ARM board is the Arietta G25. It’s based around an AT91SAM9G25 which is an ARM9 chip running at 400MHz. Paired with the DDR2 RAM (in 128 or 256 meg options) to the left, the board runs Linux and runs it well. After the break you can see the obligatory running of Doom. But in this case it doesn’t just run a demo, but is playable from momentary push buttons on a breadboard (props to the Arietta team for using wire wrap for that setup).

See the vertical row of pads between the processor and the SD card slot? That’s a breakout header designed to accept a WiFi module. In at €20-30 based on your RAM choice and just €7 for the WiFi module this board is certainly a contender for any embedded Linux projects. But it does have us wondering, should be thinking of these as ARM boards, or forget the low-level development and just think of them as a Linux machines with plenty of GPIO available?

The 20×2 pin header breaks out a lot of the SAM9’s features. We really like the interactive pinout posted for this device. For instance, there are three sets of USB host lines available. But you’ll want to click on each to see that one set is in use for the SD card, and another is used by the WiFi module. The documentation that has been posted for the Arietta G25 is one of its strongest point. Nice work there!

Continue reading “Arietta G25 Has Us Wondering Where ARM Boards Are Going”