For other countries, I’m afraid I buy canada goose jacket

Ultrasonic Rainwater Tank Capacity Meter

goose outlet canada If you are anything like me and have a little bit of an environmental conscience (or are just skinflints eager to save a few bucks which is also me.), you may have a rainwater tank. I have a tank to harvest the rather infrequent rain we get in Australia but boy oh cheap Canada Goose boy, when it does rain here, it REALLY rains! My tank stands about 1.5m high and is on a plinth, meaning I need to get out steps to check the water level (or because I am so lazy, balance precariously on top of an old gas bottle from the BBQ that has now taken up permanent residence as a ‘step’ beside the tank). goose outlet canada

canada goose outlet official I wanted some way to be able to check the water level in the tank, without all the climbing and hanging onto the drainpipe with one hand (while worrying about what spiders might be behind it you’ve heard about Australian spiders right?). So, with a renewed late in life interest in electronics, and cheap Arduino clones from China on ebay, I decided to have a go at building a ‘widget’ to do the job for me. canada goose outlet official

canada goose outlet new york city Now, my ‘dream’ widget was to be permanently installed in the tank, use uk canada goose a solar charged power source, with a remote readout in my garage, or maybe a wireless transmitter using Bluetooth that I could check from my phone, or perhaps even an ESP type device hosting an automatically updated webpage, so that I could check the level of water canada goose store in my tank from anywhere in the world over the internet. The readings returned from the sensor Canada Goose online are (indirectly) in uk canada goose outlet the form of a distance from the ultrasonic sensor to the surface it has bounced off (the water surface or bottom of the tank, if empty), and back again, so we need to do a few things with this, in order to get to a percentage remaining in the tank. canada goose outlet new york city

canada goose jacket outlet toronto NB in actual fact, the value returned from the sensor is really just the time taken for the signal to leave the emitter side and return to the receiver. This is in microseconds canada goose but knowing the speed of sound is 29 microseconds per cm (What? You didn’t know that? Pfft.) makes an easy conversion from a time period to a distance measurement. canada goose jacket outlet toronto

canada goose outlet uk First of canada goose clearance course, we need to divide the distance canada goose factory sale by 2 to get the sensor to surface distance. Then, subtract the constant distance from the sensor to the ‘max’ water depth. The remaining value is the depth of water that has been used. Next, subtract that value from the max water depth, to find the depth of water left in the tank. Canada Goose sale Whilst it would only be a very minor error, and probably not buy canada goose jacket even one that would register, it would be the kind of thing that niggled away at me. canada goose outlet uk

canada goose outlet england However, being hand held introduces the much bigger possibility that the damned thing will get dropped into the tank and never seen again. So to mitigate BOTH of these possibilities, it canada goose uk shop will Canada Goose Outlet be fixed onto a length of wood, which is then placed https://www.arconserve.ca over the tank opening so that the measurement is taken from the exact same height and angle every time (and if it IS dropped in the tank, at least the wood will float). canada goose outlet england

canada goose clothing uk A push button activates the unit (thereby eliminating the need for an on/off switch, and the possibility of an accidentally flattened battery), and fires up the sketch in the Arduino. This takes a number of canada goose clearance sale readings from the HC SR04, and takes the average of them (to mitigate any erratic readings). canada goose clothing uk

canada goose outlet in chicago I also included a bit of code to check for high or low on one of the Arduino digital I/O pins, and use that to put the unit into what I called ‘Calibration’ mode. canada goose outlet in chicago

canada goose outlet winnipeg address An HC SR04 ultrasonic transmitter/receiver module An Arduino Pro Mini microcontroller A 4 digit 7 segment LED display or display ‘module’ such Canada Goose Jackets as a TM1637All of the above can be easily found on ebay, by simply searching for the terms shown in bold print. canada goose outlet winnipeg address

canada goose outlet eu In this application, the display simply uses 3 digits to display a % value of 0 100 or 4 digits to show the number of litres (max 2000 in my case), so any 4 digit display will canada goose coats on sale do you don’t have to worry about whether the module has decimal points or colons. A display ‘module’ (LED mounted on a breakout board, with an interface chip) is easier, as it uses fewer pin connections, but a raw LED display with 12 pins could be accommodated by the Arduino with some small modifications to the code (in fact my original design was based on this setup). Note however, that using a raw LED display also requires 7 resistors to limit current drawn by each segment. I happened to have a TM1637 clock display module available, so decided to use that. canada goose outlet eu

canada goose premium outlet Supplemental bits and bobs include a 9v battery clip (and battery, obviously), a ‘push to make’ momentary push button switch, a project box, header pins, connecting wires, and a length of 2″x4″ timber that exceeds the diameter of the tank opening. canada goose premium outlet

canada goose outlet florida The supplemental bits and bobs (apart from the hunk of timber) were purchased from my local hobby electronics outlet chain which is Jaycar in Australia. I imagine Maplin in the UK would be a viable alternative, and I think there are a few in the US, such as Digikey and Mouser. For other countries, I’m afraid I buy canada goose jacket cheap don’t know, but I’m sure that if you lack a suitable high street outlet or online supplier canada goose uk outlet in your country, then Canada Goose Outlet Chinese ebay sellers canada goose uk black friday will come through for you, if you don’t mind waiting a few weeks for delivery (ironically, despite being one of our closest neighbours, 6 weeks or more is not unusual for delivery to Australia from China!). canada goose outlet florida

canada goose outlet store montreal Make sure you get a project box that is big enough I guessed at mine before having the components available, and it is a really really tight squeeze I may need to get myself a different push button that uses less space. canada goose outlet store montreal

official canada goose outlet Oh, and by the way, the length canada goose black friday sale of timber just came from some scrap offcuts I keep in the corner of my garage (as a home for more of those lovely spiders). official canada goose outlet

canada goose outlet london uk Once you understand the scematic and functionality, you may decide to adapt your version, and include an on/off switch, or Canada Goose Coats On Sale use an 18650 Li Ion power source, with solar panel and charge controller to keep it constantly topped up and ready to go, or canada goose coats change the simple LED display for a multi line LCD or graphical OLED with more information display options, such as showing the percentage AND litres remaining at the same time. Or you may go for the all singing, all dancing wireless IoT unit permanenty installed in the tank WITH solar charging. canada goose outlet london uk

canada goose outlet store near me At this point, I was casting around for basic info on how to connect up and use the HC SR04, and must acknowledge jsvester’s instructable “Simple Arduino and HC SR04 example”. cheap canada goose uk His example and experience was a great starting point for me to start coding from. canada goose outlet store near me

canada goose outlet in usa I found the NewPing library of functions for the HC SR04, which includes built in functionality to take the average of multiple readings, thereby making my code a lot simpler. canada goose outlet in usa

canada goose outlet black friday sale I found a library for the TM1637 clock display module as well, which made displaying numbers Canada Goose Online a lot simpler. In my original code (for the 4 digit 7 segment display), I was having to split the number into individual digits, then build each individual digit on the display by knowing which segments to illuminate, and then cycling through each digit in the number, and building that number on the appropriate display digit. This method is called multiplexing, Canada Goose Parka and effectively displays just a single digit at a time, but cycles through them from one digit to the next so quickly, that the human eye doesn’t notice, and fools you into believing that all the digits are on at the same time. As with the HC SR04 library making the measuring operations easier, this display library takes care of all the multiplexing, and digit handling. The Arduino Reference pages linked to above, give some examples, and of course, each library comes with sample code that can be a great help. canada goose outlet black friday sale

canada goose outlet store quebec So, the pictures above show my test rig I am testing it on my Arduino Uno for simplicity, as that is already setup for temporary re usable connections for prototyping. The unit is operating canadian goose jacket in ‘Calibration’ mode here (notice that digital pin 10 the white wire is connected to ground) and accurately reading 39cm to the box I had randomly placed in front of it, as shown by the tape measure. In this mode, I display the small ‘c’ ahead of the measurement, just to indicate it is not the normal measurement canada goose outlet store quebec.

Leave a Reply