In our house, we sometimes have problems with mold in outer corners, so four months ago we built a series of inexpensive IoT sensors for monitoring temperature and humidity. Our devices are made from just three components: WeMos D1 Mini (lite) microcontroller Si7021 temperature and humidity sensor 3x AA Ni-MH rechargable batteries Because we wanted to build around 10 sensors, we had to watch out a bit for the price tag on the components. We ended up at around 9 € per device, with 50% of the cost beeing the batteries. We chose the Si7021 sensor because judging from this excellent review of common temperature sensors, it was better than the commonly used DHT22 and came in 2nd place behind the more expensive BME280. For the power supply of the devices it was clear that we were going to run them on rechargable battery using deep sleep. Andreas Spiess made an…
Category: IoT
RCSwitch for Windows 10 IoT
RCSwitch is a library for controlling remote power sockets from Arduino. The original source code by Suat Özgür can be found on GitHub. In combination with the MX-FS-03V sender MX-05V receiver, I wanted to do the same thing on Windows 10 IoT on my Raspberry Pi. To use RCSwitch in a Windows Universal app, I ported the library into a C++ Windows Runtime Component. The RCSwitch port to the Windows Universal Platform is now available on NuGet. To use it in your IoT project, just install the NuGet package and then copy these code samples: Create an instance of the RCSwitchIO class: Turning remote power sockets on/off: In good .NET fashion, you can also subscribe to an event to listen for incoming signals: However I found that receiving does not work very reliably. Initially I was able to sometimes receive signals, but a few weeks later (with a different remote)…