I would like to share a recent project I did where I modified my Motion activated MAXSA 44449-L Silver 100-LED Solar-Powered Security Floodlight to include a nice MySensor upgrade! I used the 3.3v pro-mini and the NRF24L01+PA+LNA antenna version because of the 300m distance from the gateway. To my surprise it all fit perfectly well inside the existing chassis without modification besides the hole I had to drill for the antenna! It's been working great and running for about 3 weeks now without a glitch and graphing all sensors on Domoticz.
During the build and testing phase I ran into problem when sensing the motion output as the motion trigger output voltage only runs at 2.6 volts causing a very erratic detection with the pro mini digital input. So I had to build a simple transistor and optoisolator circuit to step up the output trigger voltage to 3.3 volts.
Features I included:
-sends back motion trigger status (most important!)
-sends temp and humidity using DHT22 probe(why not?)
-sends battery and watt usage including what comes in from the included solar panel during the day using the adafruit ina219 breakout board!
Best posts made by HighSierraJoe
-
Solar powered LED motion activated light with MySensors upgrade
-
INA219 DC Current Sensor
I am new to the MySensors.org community but I have been having a blast building all types of wireless sensors since a first discovered this site a few weeks ago and would love be be able to contribute to this community!
The INA219 Current Sensor Breakout Board by Adafruit is a great little sensor for measuring current and voltages, up to 3.2 amps and 26 volts quite accurately! https://www.adafruit.com/products/904. It uses i2c to send its data and there is a nice library to go along with it. With a simple modification you can change the shunt resistor out to lower values measure higher currents or in my case I remove it completely so I can measure the current across a 500 amp shunt. Im using this sensor to monitor my camping trailer's battery voltage and current draw while it is parked. I also use it to monitor my auxiliary battery backup system that keeps my security camera server and wifi router running in case of a power failure. Ive been using an arduino web server running ajax script so I can monitor my battery systems remotely in real time.
It is most important for me to monitor my trailer batteries since I have spent hundreds of dollars on AGM batteries and would like to be alerted if for some reason the breaker to the trickle charger tripped or the charger malfunctioned and something was left on in the trailer that could draw the batteries down to dead! AGM batteries can only go dead just a few time before there no good.
I have wired the INA219 sensor into a sensor node, but since unfortunately there is no sensor type to associate with this particular sensor I have chosen to use the most related S_POWER sensor type and Power Meter device in my Vera3 and use the 2 variables (V_WATT, V_KWH) to send the voltage and current data over. I have even modified the JSON file in Vera3 so that the device label can read volts and current instead of the original watts and KWH. And also added in a couple of new notifications so that i can be alerted if the voltage drops below 12.6 volts or if current draw goes below 0.
It has been working for the time being, but this is quite a hack job and it would be great if there was a better and nicer way! It looks to me like this idea requires a whole new device to be added to the MySensors plugin and the corresponding variables added to sensors.h? Can someone help point me in the right direction with this? Maybe there are others out there that would be as interested in this project as I am!