ESP8266 AC Controller Shows Whats Possible

People often get the impression that home built hardware is destined to have a certain amateurish look or feel to it. It’s as though just because you didn’t buy it in a store, it will look cheap or thrown together. While it’s true a hacked together device could look like it was built from the parts bin (and to be fair, sometimes it is), there are plenty of examples of DIY hardware that could give commercial offerings a run for their money.

A case in point is this fantastic ESP8266 air conditioner controller created by [Sitinut Waisara] (Google Translate). Between the simple yet elegant 3D printed enclosure to the very slick user interface on its OLED screen, this project could easily pass as a commercial device. In fact, we’ve seen commercial offerings that didn’t look half this good, let alone offer the same features for what this cost in components and printer filament. It’s a perfect example of what the modern hacker or maker is capable of with the wide array of tools and components currently available to us.

What’s perhaps the most impressive about this project, especially given how good it looks on the outside, is how little there really is on the inside. Beyond the NodeMCU board and SSD1332 OLED display, the only components inside the device are the three tactile buttons, a photoresistor so it can dim the display’s brightness based on ambient light level, an IR LED so it can send commands to the AC unit, and a handful of passives. The hardware side of this design is so simple that [Sitinut] was able to put the whole thing together on a scrap of perfboard. Not that you’d be able to tell when it gets installed into the 3D printed wall-mount enclosure, complete with printed button caps.

While the hardware side of the project might be rather light, the software is anything but. [Sitinut] really went all-in writing his code for the ESP, adding in the little features like the automatic screen dimming and pulling the current time from NTP that often get overlooked in our rush to get a project out the door. He even included a whole collection of icons to display on the OLED screen, which goes a long way towards selling that professional look. But his effort wasn’t limited to cosmetics or clever features, there was also plenty of work put into decoding the IR signals used to control the AC unit and getting all the features and functions plugged into MQTT.

We’ve seen a number of projects that aimed at dragging an existing HVAC system kicking and screaming onto the “Internet of Things”, some considerably less complex than others. But few have had the level of polish that [Sitinut] has put into his controller, so we take our hats off to him.

Continue reading “ESP8266 AC Controller Shows Whats Possible”

Pac-Man Fever Comes To The Pano Logic FPGA

If you’ve been reading Hackaday for a while now, you might recall the tale of Pano Logic that we first covered all the way back in 2013. They were a company that put out some very interesting FPGA-based thin clients, but as occasionally happens in situations like this, the market wasn’t ready and the company went belly up. These thin clients, now without official support, invariably got dumped onto the second-hand market. Shame for Pano Logic and their staff, but good news for hackers like [Skip Hansen].

After seeing a few posts about the Pano Logic devices and general FPGA hacking, he decided to grab a few on eBay and dive in. Using open source tools and the wealth of information that’s available [Skip] was able to get a Pac-Man simulator up and running over his holiday break, and he tells us his life may never be the same again. FPGA hacking is a fascinating subject with a lot of activity right now, and since you can get these Pano Logic boxes on eBay for less than $10 USD in some cases, now is as good a time as ever to get your feet wet.

Like many open source projects, [Skip] says his code is built upon the existing work of a number of other programmers, which let him get up and running much faster than if he had to start from scratch. He describes his code as the “glue” that mashes these projects together, but we think he’s being somewhat modest there. It took more than copying and pasting some code into an IDE to get Blinky, Pinky, Inky and Clyde doing their thing on the Pano Logic.

The biggest challenge was the lack of I/O. The Pano Logic thin clients have USB ports, but it seems nobody has quite figured out how to get them working yet. To talk to the outside world, you’ve got to get a little more creative. Eventually [Skip] was able to track down four lines he could effectively use as GPIO: two which are used to drive the LEDs on the device, and two which are used for the VGA port’s Display Data Channel (DDC) pins. Soldering jumpers from the LEDs to the unused pins in the device’s VGA connector meant he was even able to get these four GPIO lines accessible from the outside of the Pano Logic without having to cut any holes in the case.

Anyone with a Pano Logic client that has a VGA port, an Atari 2600 joystick, and who doesn’t mind soldering a couple of wires can now play Pac-Man with the bitstream [Skip] has provided. But where do we go from here? How long until we see DOOM running on it? Perhaps one of you fine readers should pick one up and see what you can do to advance the state of Pano Logic hacking. Just be sure to let us know about it.

We’ve previously covered one of the projects used to get this Pac-Man simulator off the ground, a very cool ray tracing demo for the Pano Logic developed by [Tom Verbeure]. In fact, [Skip] says that project was what got him interested in FPGA hacking in the first place. If you’re thinking of following his lead, you might also want to check out our FPGA Boot Camp.

Electrifying A Vintage Outboard Motor

Clamped or bolted to the stern of the boat, outboard motors offer a very easy and (relatively) economical way of powering small craft. The vast majority of these outboards are gasoline powered, with electric models generally limited to so-called “trolling motors” which are often used to move slowly and quietly during fishing. That might be fine for most people, but not [Olly Epsom].

An engineer focusing on renewable energy by profession, [Olly] wanted to equip his small inflatable dinghy with a suitably powerful “green” propulsion system. Deciding nothing on the market quite met his requirements, especially for what manufacturers were charging, he decided to convert an old gas outboard to electric. Not only did he manage to do it for less money than a turn-key system would have cost, but he ended up with a system specifically geared to his exact requirements. Something he says will come in handy if he ever gets around to converting the dinghy to remote control so he can use it as a wildlife photography platform.

Put simply, an outboard motor consists of a gasoline engine with a vertical shaft that’s coupled to a right-angle gearbox with a propeller on the end. Beyond that they’re a fairly “dumb” piece of gear, so replacing the engine on top with something else should be (at least in theory) a pretty simple job. Especially on the small older model that [Olly] decided to use as a donor unit. The 1974 Johnson 2 HP motor didn’t have any tricky electronics in it to contend with; the thing didn’t even have a clutch.

Once [Olly] had removed the old gas engine from the top of the outboard, he designed an adapter plate in OnShape and had it cut out of aluminum so he could mount a beefy 1 kW 48 V brushless electric motor in its place. Connecting the new electric motor to the carcass of the outboard actually ended up being simpler than putting the original motor on, as this time around he didn’t need to reconnect the cooling pumps which would usually pull water from down by the propeller and recirculate it through the engine.

While the mechanical aspects of this project are certainly cool, we’re especially interested in the control system for this newly electric outboard. It uses a 3.2 inch Nextion color touch screen and Arduino Nano to provide a very slick looking digital “dashboard” which can convey motor status and other information at a glance. Unfortunately, [Olly] says the details on that part of the project will be saved for a future post, leaving us with only a single picture of the system’s interface for us to drool over until then.

We’ve seen the occasional seafaring project that made use of an electric trolling motor, and we’ve even seen an electric drill put in some overtime spinning a prop in the water. Converting gasoline boat over to electric is however a rarity. But much like electric car conversions, such projects may become more common as the cost and complexity of powerful electric propulsion systems continues to fall.

[Thanks to Alex for the tip.]

Is Baking A Raspberry Pi The Recipe For Magic Smoke?

No, Hackaday hasn’t become a baking blog. We’re just here to give you a bit of advice: if [MickMake] ever offers you one of his fresh-baked Pis, proceed with caution. While we have no doubt that there will be some interesting smells wafting out of his kitchen, these aren’t the tasty pies you’re looking for. There’s no delicious home-baked treat when that timer dings, just a handful of Raspberry Pis that have had an exceptionally hard day.

To properly explain the odd sight of some Raspberry Pis laid out on a cookie sheet, we need to take a step back. [MickMake] originally set out to see how everyone’s favorite Linux SBC would handle the harsh Australian heat, and thought that setting them up on his car’s dashboard would be a suitable torture test. But as luck would have it, a storm rolled in while he was making the video which brought temperatures down to a “cool” 30 C (86 F); basically jacket weather at the bottom of the world. So naturally, he decided to put them in his oven instead.

Placed on an insulating sheet and with a thermocouple between them to get an accurate idea of the temperature they were experiencing, an original Pi, a Pi 2, and a pair of Pi 3s were sent on the ride of their lives. In addition to monitoring them over the network, he also added a “heartbeat” LED to each Pi so he’d be able to tell at a glance if any of them had given up the ghost. As if these poor little Pis didn’t have it bad enough already, [MickMake] decided to take things a step farther and run sysbench on them while they took their trip through Hades.

The Pis are actually rated for temperatures up to 85C, and all the participants of the experiment hit that point without any issues. At 87.3 C (~190 F) the original Pi dropped off the network, but its LED was seen bravely blinking on. At 105.7 C (~222 F) it finally breathed its last, followed by the pair of Pi 3s tapping out at 112 C (233 F). The Pi 2 fought on, but it fell right at the 119 C (246 F) mark.

But what about when they cooled off? Somewhat surprisingly, [MickMake] successfully powered all four back up and was unable to find any damage to the Pis, either physically or operationally. Even the SD cards survived, and the Pis popped right back onto the network and were ready for another round of Silicon Chef. Not bad considering they were subjected to temperatures three times higher than the official limit.

Testing electronics in your home oven might seem a bit suspect, and admittedly we’d probably turn down a slice of the next few frozen pizza’s [MickMake] runs through it, but it’s not really so far removed from how proper reliability testing is performed.

Continue reading “Is Baking A Raspberry Pi The Recipe For Magic Smoke?”

Vintage Programmer Gets Modern Chip Adapter

While trying to revive a Donkey Kong Jr arcade board, [Jelmer Bruijn] found himself in the market for an EPROM programmer and became the proud owner of a 1990’s era Dataman S4. Despite its age, it’s a fairly nice tool which allows you to read and write a laundry list of different EPROM types, all without being tied to a computer. The only catch is that a few types of chips need an adapter to work in the Dataman S4, some of which are unsurprisingly no longer available.

After some above and beyond support from the current crew at Dataman set him on the right track, [Jelmer] decided to try his hand at reverse engineering how the old adapters worked so he could build his own. His ultimate goal was to read 40 pin EPROMs on the 32 pin Dataman S4, but in the end he says the information he gathered should be applicable for building other adapters if you ever find yourself in need of such things.

As you might expect, there’s a bit more to the project than a simple pin adapter. [Jelmer] assumed some kind of shift register or latching arrangement would be required to make up for the shortage of pins on the Dataman S4’s ZIF socket. It was just a matter of figuring out how it all went together.

Luckily, [Jelmer] found that the programmer would happily attempt to perform operations on a 16 bit EPROM even though no adapter was physically present. This gave him a chance to probe around with a logic analyzer to figure out what it was trying to accomplish. The trick turned out to be splitting the 16 bit bus into two 8 bit buses which are requested sequentially.

With careful observation, close studying of 16 bit chip datasheets, and much brow furrowing, he was eventually able to come up a design that used five 74xx573 latches and put a schematic together in Eagle. There were a few kinks to iron out when the boards finally arrived, but ultimately the design worked on the first try. [Jelmer] says the same technique should work for 42 pin EPROMs, but as Dataman still actually sell adapters for those he decided not to supply schematics for it.

[Jelmer] tells us that he was inspired to send this success story our way after reading how our very own [Elliot Williams] took the long away around to erase a couple UV EPROMs recently While this isn’t the first time we’ve seen somebody have to hack support for 16 bit EPROMs into their programmer, it’s good to see that the manufacturer at least had the customer’s back in this case.

An Electronic Love Letter To The Wind

Home weather stations are a great way for hackers and makers to put their skills to practical use. After all, who wants to hear the current conditions for the whole city when they could setup their own station which drills that information down to their very own street? Such a setup doesn’t need to be any more complex than a temperature sensor wired up to a microcontroller, but then not all of us are quite the weather fanatic that [Richard] clearly is.

The system he’s built to monitor the wind over his home is, to put it mildly, incredible. We might not all share the obsession [Richard] apparently has with the wind, but we can certainly respect the thought and design that went into this comprehensive system. From his scratch built anemometer to the various ways he’s come up with to display the collected environmental data throughout his home, if this build doesn’t inspire you to hack together your own weather station then nothing will.

At the heart of the system is the anemometer itself, which makes use of several scavenged parts such as the bottom halves of plastic Easter eggs as wind cups. The cups spin on a short length of M5 threaded rod inside of a 635ZZ bearing, which ultimately rotates a “light chopper” placed between a red LED and a OPL550A optical sensor. In a particularly nice touch, [Richard] has even included a few power resistors arranged around the moving parts to use as a heater which keeps the device from freezing up when the temperature drops. The sensor creates eight digital pulses per revolution, and feeds data into the base station though a 30 meter (98 feet) cable.

From there, the base station uses an ESP8266 to upload wind and temperature data to ThingSpeak and Weather Underground to be viewed through their respective web interfaces and applications. The project really could have ended here and still been impressive in its own right, but the station also includes 433 MHz and NRF24L01 transmitters to send the data to the other display devices which [Richard] has designed.

The 433 MHZ display is built into the frame of a lantern, and shows the current time and temperature on an LED readout as well as historical wind and temperature graphs on a 2.2 inch ILI9341 TFT screen which [Richard] has rotated into a portrait layout. There’s a red light on top that blinks whenever a signal is received to show that the system is working, and even a touch sensor which can be used to turn off the TFT screen at a tap if you’re not interested in seeing the full charts.

The other display, which [Richard] calls the “picture frame” utilizes a dizzying array of single LEDs, a handful of digital LED readouts, and even an OLED screen for good measure. They all work together to show the current wind speed as well the averages for the past day in three hour segments. As this display features a real time display of current wind conditions and averages for as short a period of two minutes, it uses the NRF24L01 receiver to get data from the base station at a rate of 3 Hz.

In the past we’ve seen 3D printed weather stations, and of course some pretty simple affairs using little more than an ESP8266 board and some sensors. But few have ever put so much thought into how to present the collected data to the user. If you’re serious about knowing what it’s like outside the confines of your bunker, [Richard] has got some tricks to show you.

Continue reading “An Electronic Love Letter To The Wind”

Building An ESP8266 Doorbell On Hard Mode

It certainly seems as though it should be an easy enough project; all [Miguel De Andrade] wanted was to receive a notification when somebody was pressing his doorbell, and thought it would be a good project to get his feet wet in the wonderful world of ESP8266 hacking. But as fate would have it, not everything went according to plan. In the end he got it sorted out, but it’s an interesting look at how even the “easy” projects can call the gremlins out of hiding.

Arguably, the problems started when [Miguel] picked up an ESP-01 module from a local electronics retailer. While the convenience of buying the hardware in a brick and mortar store can’t be overstated, it did mean he was stuck with a slightly more spartan experience compared to the more common ESP “development boards”. Programming it externally with a Teensy ended up not being much of an obstacle, but it did mean he was stuck with only two GPIO pins.

At any rate, with ESP in hand, the next step was figuring out how the existing bell and intercom system even worked. Unfortunately, after some experimentation [Miguel] found there was a bit more going on there than he’d hoped. According to his multimeter, the one line from the intercom sits at approximately 5 VDC when it’s open, and drops down to 2.5 VDC when pressed. If that wasn’t bad enough, picking up the handset to answer the intercom sent the voltage up to a microcontroller-killing 12 VDC. To complicate maters further, the supply line for the intercom was 23 VAC, so he’d need to rectify that somehow if he wanted to avoid a separate power supply for the ESP.

To turn this jumble of voltages into a nice clean 0 – 3.3 V signal for the ESP8266, he came up with a circuit based around the LM358 comparator that utilizes an LM117 regulator to power itself and the ESP at the same time. A couple of diodes are there to block the AC component from causing trouble, and an A2N2222A transistor is used as a buffer amplifier to boost the output of the comparator so it registers as a digital HIGH on the ESP. The circuit took a bit of fiddling to get sorted out, but in the end [Miguel] says it seems to get the job done.

You might think the problems were solved, but this is where it gets really annoying. The system would work fine for awhile, and then inexplicably go silent. In diagnosing the problem he realized that his circuit connected to GPIO_0 was inadvertently putting the ESP8266 into programming mode, since it was holding the pin LOW unless the intercom button was pressed. He assumed he could just move the circuit to the other GPIO pin, but as that one has the board’s LED on it, that caused its own problems. For now, [Miguel] hasn’t come up with a solution to this issue, and has learned to live with the fact that the system won’t come back up cleanly should it lose power for any reason.

If you’re looking for a slightly classier look than a scrap of perfboard stuck on the wall with what appears to be chewing gum, we’ve also seen the ESP8266 used in some more ornate doorbell setups. Of course if you still haven’t gotten your head wrapped around the whole Internet-connected button thing, you can always start with something a little easier.