Skip to content

H-HOPE/H-HOPE-current-meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

drawing

DIY hydrometric wing for measuring flow velocities 'H-HOPE current meter'

The hydrometric wing "H-HOPE current meter" was designed and developed as part of a H-HOPE project (web site https://h-hope.eu/). H-HOPE current meter measures water flow velocities on the principle of automatic recalculation of screw rotation frequencies in water speed through the equation. H-HOPE current meter has been designed to be produced using the DIY (Do-It-Yourself) principle. All parts used for the production of H-HOPE current meter are readily available. H-HOPE current meter can be powered eather by 9V battery, or by external micro USB cable. H-HOPE current meter can measure water speed from 0.1 to 5m/s.

drawing

Figure. H-HOPE current meter.

drawing

Figure. 3D exploded model of a H-HOPE current meter.

Table of content

Material and tools used

The project was designed in a certain way, that the material and tools necessary to build this project is widely available. Most of the parts and tools are avaliable in local technical store or for example on online store Aliexpress.

Material used for this project:

Tools needed for this project:

  • Soldering iron
  • 3D printer
  • Set of Screwdrivers

3D printing and model of the H-HOPE current meter

We used Prusa MK3S 3D printer to print the H-HOPE current meter plastic parts. Chosen material was PETG.

Below is the 3D exploded model of a H-HOPE current meter. H-HOPE current meter is made from two main parts.

  • assembly of a screw,
  • assembly of the enclosure with LCD screen and holder.
drawing

Figure. Exploded model of the screw.

drawing

Figure. Exploded model of the enclosure with LCD screen and holder.

Source files (step file) for printing the H-HOPE current meter are avaliable on Github.

drawing

Figure. Printing the H-HOPE current meter enclosure.

drawing

Figure. 3D printed parts for the H-HOPE current meter holder.

Arduino code

In this chapter the source code for the Arduino Uno microcontroller will be explained.

drawing

Figure. Arduino uno board is used for H-HOPE current meter electronics.

Arduino code: https://github.com/H-HOPE/DIY_Flow_meter/blob/e5a896e44799b07652782b1dd13d3e7614e1950c/src/Arduino/H-HOPE_Hi-wing.ino#L1-L63

Key parts of the Arduino code:

  • First, we include libraries for LCD screen and I2C protocol. LCD screen library is also available here.
  • Then we define an Arduino pin, where the hall sensor will be connected. In this case, this pin is number 2.
  • in lines 13 through 15 we define variables.
  • In the setup section we initialize the LCD screen and configure interrupt for the hall sensor. Hall sensor output is connected to the Arduino Uno inetrrupt. Arduino Uno has two external interrupt pins, INT0 and INT1, which are mapped to digital pins 2 and 3 respectively. Interrupts are signals that allow a microcontroller to pause its current execution and handle an event or task that has a higher priority. In this case hall sensor is attached to the INT0 pin (digital pin 2). Configure the interrupt settings using the attachInterrupt() function. This function takes three arguments: the interrupt number (in this case, 0 for INT0), the function to call when the interrupt is triggered (cnt), and the mode in which to trigger the interrupt (on FALLING EDGE).
  • In the loop section, from line 38, the code to calculate the water speed from the screw rotation speed is written. The calculated water velocity is shown on the LCD screen.
  • Finnaly at the end of the program there is an interupt rutine, whis records the time when the magnet on the wing passes hall sensor.
drawing

Figure. Arduino Uno microcontroller mounted in the H-HOPE current meter enclosure.

Assembly and test

With all the printed parts ready and programmed Arduino, we can start the assembly of the H-HOPE current meter.

3D exploded model of a H-HOPE current meter

drawing

Figure. 3D exploded model of a screw.

drawing

Figure. 3D exploded model of the enclosure.

Enclosure for the H-HOPE current meter electronics

drawing

Figure. Enclosure for the H-HOPE current meter electronics.

Assembly of the screw:

Mount two bearings in the screw and put the end cap to the screw.

drawing

Figure. First bearing mount.

drawing

Figure. second bearing mount, with end cap.

drawing

Figure. Asembly of the bar mouting tight screw

drawing

Figure. Assembled screw holder.

Next, place 1x3 mm magnet in the prefabricated hole in the screw and glue the magnet with Epoxy glue.

drawing

Figure. Magnet assemply on the screw.

We need to solder hall sensor to the cable. Hall sensor has three pins GND, VCC and Signal

drawing

Figure. Pinout of the SS443a Hall sensor.

Put the cable thorugh the screw holder and glue the hall sensor, with the Expoxy glue to the screw holder.

drawing

Figure. Screw with bearing and end cap.

Assembled Screw.

drawing

Figure. Assembled Screw.

Assembly of the H-HOPE current meter electronic.

Mount the Arduino Uno in the enclosure, screw the micro USB module to the enclosure with two M2 10mm screws. Connect micro USB module to Arduino Uno (5V to 5V; GND to GND).

drawing

Figure. Arduino Uno and micro USB module.

Connect hall sensor GND, VCC and OUT to the Arduino Uno

drawing

Figure. Hall sensor connected to the Aruino Uno.

Mount 16x2 LCD screen with 4 M2 10mm screws to the front of the enclosure. Connect the LCD screen to the Arduino, trough the I2C protocol.

drawing

Figure. LCD screen connection.

Mount 9V battery connector, make small hole for wires. Connect 9v Battery holder to Arduino Uno (+9V battery to Vin Arduino Uno pin; -9V battery to GND Arduino Uno pin)

drawing

Figure. 9V battery installation.

Make hole on the enclosure for the external ON/OFF switch to power on the H-HOPE current meter. Connect the switch in series with positive battery wire.

drawing

Figure. External ON/OFF switch.

Use screws to assemble the lectronic enclosure of the H-HOPE current meter.

drawing

Figure. Mouting screws.

Holder for the H-HOPE current meter electronics (optinal)

It is also possible to mount the H-HOPE current meter electronic with the help of holder to the stick. In that case you need to print and assemble the H-HOPE current meter holder.

drawing

Figure. Assembly of the holder for the H-HOPE current meter electronics.

Test hall sensor response.

Osciloscope was used to test the output signal from the hall sensor

drawing

Figure. Hall sensor test setup.

Hall sensor need pull-up resistor to operate properly. You can use external 10k pull-up resistor accross the Vcc and hall input pin. In our case we configured Aruino to use his internall pull-up resistor. Then we test the operation of the hall sensor with an osciloscope.

drawing

Figure. Hall sensor output signal on osciloscope.

Field test

Now you can find a waterway and measure its speed with the H-HOPE current meter water speed sensor.

drawing

Figure. Image of the H-HOPE current meter water speed sensor in open channel

drawing

Figure. Measuring water speed with the H-HOPE current meter sensor.

     

drawing

About

Instructions on how to build the H-HOPE current meter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages