IoT enabled lawn mower

Michel from Quebec, Canada recently bought a EGO brand battery powered lawn mower to which he added an ESP8266 module along with a PIC MCU and a couple of hall sensors to make it an IoT-enabled mowing device that is now capable of sending tweets during its mowing session. To make sure I would not void my mower’s warranty I’ve used 2 Hall Effect sensors and a few magnets: one on the bail switch, five on a wheel. Three revolution of a rear wheel represent a distance of 245cm (~96½”). There are 10 spokes on the back of the wheel.

Read more

MAX7219 LED display driver for ESP8266

Here is an Instructable on writing a MAX7219 driver for interfacing an 8-digit seven segment LED to ESP8266 platform. The MAX7219 are compact, serial input/output common-cathode display drivers that interface microprocessors (µPs) to 7-segment numeric LED displays of up to 8 digits, bar-graph displays, or 64 individual LEDs. Included on-chip are a BCD code-B decoder, multiplex scan circuitry, segment and digit drivers, and an 8×8 static RAM that stores each digit. Only one external resistor is required to set the segment current for all LEDs. A convenient 4-wire serial interface connects to all common µPs. Individual digits may be addressed

Read more

555 Timer as power usage sensor

Electricity meters usually have blinking LED lights whose flashing rate is associated with the amount of energy usage. This example shows how to use a 555 timer chip acting as Schmitt trigger combined with a phototransistor or LDR to sense the flashing LED on the electricity meter for monitoring electricity usage. The output of the 555 timer chip is connected to one of the GPIO pins on the Raspberry Pi. A Python script (executing in the background) recording 555 events is calculating actual energy usage [e.g. Watt] every time the 555 is signaling and stores epochs in an SQLite3 database. From this, another

Read more

ESP8266 MP3 decoder

This Github upload shows an example of how to use the I2S module inside the ESP8266 to output sound. In this case, it is used to output decoded MP3 data (actually, more accurately: MPEG2 layer III data): the code described here basically is a webradio streamer which can connect to an Icecast server, take the MP3 data the server sends out, decode it and output it over the I2S bus to a DAC. The MP3 decoder has been tested for bitrates up to 320KBit/s and sample rates of up to 48KHz. The biggest part of this code consists of a

Read more

Hacking a bathroom weighscale for cloud connectivity

Hardware hacker Darrel Tan has a great write-up about his experience with hacking a Chinese-made bathroom scale for cloud connectivity using a Raspberry Pi. His bathroom weighscale has a separate display part that receves the weight measurements from the scale through an infrared link. Darrel hooked up an 38kHz IR receiver to the logic analyzer and placed it near the scale as he was standing on it, so that he could decode the IR bursts. He found that the device used pulse distance coding to encode the data with ~75ms spacing between the consecutive bursts. With further analysis, he was able to figure

Read more
« Older Entries Recent Entries »