Blog Posts

Measuring temperature, humidity, pressure with ESP8266, BMP180/BME280 on a rechargeable battery

I recently started playing with ESP8266 and really like it. So I decided to make a simple OpenSenseMap temperature and pressure ( and humidity with BME280 ) stand-alone device. The idea was to have it run off battery for a long period of time and if needed, to charge it via solar panel(s). I decided to go with ESP-12S, which is bare-bone ESP and does not have usb input or any other schematics like Wemos D1 or similar. That’s the

Continue Reading

Simple iOS On/Off app for SonOff

I had some time, so I decided to make an on/off program for my SonOff switch that I want to use to turn on / off the boiler heating at my house ( I use the stronger one, that has support for 16A load). My SonOff is pre-configured already with ESPEasy and rules. What I will be making is a very simple iOS app that has a toggle button on it. First, some basics: Reading the current state: http://192.168.88.171/control?cmd=status,gpio,12 Changing the

Continue Reading

Controlling Sonoff devices from Domoticz

It’s very easy to control Sonoff power switch devices that were updated with ESPEasy firmware. You can practically control them with commands like these ( explained and configured in the previous post ): On action: http://192.168.88.20/control?cmd=event,TurnOn Off action: http://192.168.88.20/control?cmd=event,TurnOff   So, to control them from Domoticz, all you need to do is add a virtual device, type switch: and configure it’s on / off actions like this: Now, when you press the icon, the Sonoff will switch On or Off. You

Continue Reading

Reading Data from HC-12 on Raspberry Pi and sending it to Domoticz

Hardware. Okay, to read data from HC-12 to the Raspberry PI is practically very easy :). All you need to do is hook it up and power from RPi. VIN – Connect to RPi 5V (PIN 4) GND – Connect to RPi GND (PIN 6) RX – Connect to RPi GPIO14 (PIN 8, UART0_TXD) TX – Connect to RPi GPIO15 (PIN 10, UART0_RXD) I “stole” that image from Internet, so you can see which pins exactly are those that we need: Software. Simple

Continue Reading

Adding Light sensor to the HC-12 + Temp sensor

In one of the previous articles, I’ve shown you how to read the temperature and send it (very basic format) through HC-12 transmitter. Now we could easily add Light reading and sending it to the reader ( Another HC-12, hooked to Raspberry PI or Arduino )     For that purpose, we will use BH1750 sensor. It’s very easy to hook it to Arduino, read the values and send it, along with the temperature reading. BH1750 uses I2C and is very

Continue Reading

Customizing Sonoff ESP switch to work with anything

I’ve recently purchased several sonoff wifi modules. Here’s another one, higher amperage. They usually go with an app that you can use to turn them on / off. However, that’s pretty boring 🙂 I decided to make them run via http interface and also control them from Domoticz via virtual switch. Yes, it’s possible and not that hard 🙂 I decided to install ESPEasy, because it’s universal one and you can configure it pretty easy via http interface and dedicated

Continue Reading

Receiving the data from the sensor and displaying it

In my previous post, I’ve read temperature reading with BMP180 on Arduino mini cheap clone and sent it over air with HC-12 serial module. Now we’re going to receive it and display it on the OLED screen, that I’ve made a simple test with. To the same Arduino, that we have connected the OLED screen to, we need to connect an HC-12. Wiring is extremely simple (same as on the sender side): VCC – to Arduino 3.3v GND – to

Continue Reading

Reading temperature with Arduino and sending it via HC-12

I’ll be using Arduino Mini Pro cheap clone, that you can find anywhere on E-Bay for $2. Mine looks like this, works on 3.3v and is 8MHz. Make sure to have the correct settings in the Arduino IDE in order to program it. I’m using cheap PL2303 to RS232, which requires specific drivers for Mac OS X ( maybe for Windows, too? ). So, I will be connecting pressure and temperature sensor, named BMP180, to it. I will only read

Continue Reading

Showing some text on cheap OLED screens

I’ve got several SSD1306 based 0.96″ OLED screens around so I decided to use one of them to show some information that I receive from the HC-12. The first step was to connect it to Arduino Mini/Pro and display a test. My OLED has the following pins / markings on it ( I hope you can see them ): GND VCC SCL SDA RST D/C However, they are not very accurate, as it’s actually not an I2C, but SPI (Maybe it’s

Continue Reading

Playing with HC-12 wireless transmitter / receiver

HC-12 is an interesting device. It operates on 433 MHz and I think will be perfect for a sensor network. You can read very detailed info here, I will not go deep into details. First, you need to configure it. For that purpose, I use very simple PL2303 USB to RS232 converter. If you use Mac OS X – you can use these drivers. Otherwise, you might not be able to see the device. You need to connect HC-12’s four pins.

Continue Reading

Site Footer

Sliding Sidebar