![]() ![]() That requires much less processing and seems pretty robust with respect to noise and harmonics. To find the dominant frequency, the Arduino code increments the lag between the two samples and looks for a peak in the summed results. That is, the program multiplies a short sample of the signal by a time-lagged version of itself and sums up the results. I toyed with the idea of using a Fourier transform to pick out the dominant frequency corresponding to the flow rate, but instead I plumped for autocorrelation. So my first challenge was to program an Arduino attached to the magnetometer to transform that noisy magnetic signal into a flow rate. The Arduino sends the data by cable to a Raspberry Pi, which generates a simple Web page showing usage that I can access over my home’s Wi-Fi network. To remotely monitor water flowing through my home’s meter (top), I attached a magnetometer and used an Arduino to read and process the raw data. Consequently, these coupled magnets produce a magnetic field around the meter that varies depending on how fast the water is flowing. As the water spins the rotor, this magnet turns another magnet in the meter’s gearbox. To isolate the gears of the actual meter from water exposure, a rotor is typically attached to a magnet in a separate chamber through which the water flows. SparkFun no longer sells that module, but for even less money (US $15), you can now purchase a 3-axis magnetometer, which I suspect would work just as well or even better.Ī magnetometer is valuable here because of the way mechanical water meters work. To measure water flowing from the municipal supply, I employed a digital compass-that is, a 2-axis magnetometer-that I originally purchased some time ago from SparkFun Electronics to use as a direction finder. How to Build Your Own Digital Water Meter youtu.be Now when my teenage kids take profligate showers, I can berate them with quantitative measurements! My system doesn’t require plumbing alterations, and it transmits the information via my home wireless network, so I can view water use on a connected device anywhere in the house. But who has the discipline for that? So I cobbled together a monitor that can show how much water my household is using in real time. You could, of course, track usage more finely by hoofing it out to your water meter periodically and noting the readings. But that’s not easy to do when information about your usage comes only once a month on your water bill. Most folks are happy to comply with such requests. But even here there have been years when water was in short supply and people were asked to conserve. Thankfully, I now reside in North Carolina, a much wetter state. Do not include information that could potentially cause injury or harm to yourself or others.California, where I once lived, is in the midst of a severe drought. It will get removed and you will be banned without warning.Ĭertain projects, including working with electricity can result in injury, property damage, or death if done incorrectly. Please use the provided flairs to appropriately label your posts.ĭo not spam your blog, website, YouTube channel, company, product, etc. Reposts, low-effort content and karma farming may be removed at the discretion of the mods. Posting a video or image without detail will result in a removed post and may result in a ban. When posting project details must be included. NO POLITICS! There are plenty of other subs to discuss them this is not one. Referral, affiliate, and crowdfunding links are NOT ALLOWED! This is a forum for friendly discussion personal attacks will not be tolerated and you will be banned without warning. ![]() If you are not sure about what you are doing, hire a licensed professional. Please keep this in mind while assisting others. Working with electricity can result in injury, property damage, or even death if it is not done properly. If you would like to learn more about home automation, please look here. Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security. It is automation of the home, housework or household activity. Home automation is the residential extension of building automation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |