📜 ⬆️ ⬇️

Self-made electronic altimeter variometer with sound and light warning signals

Can be used in aviation sports as an additional means of ensuring security in:


- performing parachute jumps;
- paragliding;
- flying on super light aircraft

image

The advantages of this solution:

- a small price of components (1200-1500r at retail, when buying from online stores in the PRC is much cheaper);
- simplicity of assembly (it is possible to assemble in the evening, on the breadboard so in general for half an hour);
- high accuracy of height measurement;
- compactness and low weight of the device;
- open program code (you can make changes, change the threshold settings of the device operation);
- can be used as a module for measuring atmospheric pressure (relative height, vertical speed and atmospheric pressure are constantly transmitted via the COM port.
- Powered by both an autonomous DC source (6-20V) and Mini-B USB - cord.

Prehistory of creation:

AltVar +, as I called it, was created on the basis of this project in the form of a variometer - a tweeter. A prototype assembled on a breadboard. It had only two significant components:
- microcontroller board Arduino Nano V3
- pressure sensor Gy-68
')
The device reacted with a peep at the ups and downs, but there was no indication. Therefore it was necessary to modify the program.

image

Now the board transmitted the values ​​of height and vertical speed to the COM port of the computer.
I wanted more autonomy and I added a 4-digit 7-segment display, concluded the board with the sensor in a homemade case, embedded the battery in it. The display shows the value of the relative height.
Now the instrument could be used to measure both relative height and a high-precision barometer.

image

For a while I used it that way because already literally a few minutes after switching on, the trend of the weather was visible.
The fact is that the accuracy of the sensor is approximately - + 0.17 m. The change in atmospheric pressure by a tenth of mm Hg. column changes the instrument reading by more than a meter.

Friends and familiar skydivers knew that I had such a homemade product. They also pushed me to the next step, proposing to assemble a height alarm device - a “squeaker” on its basis.
From the output of the display on a 4-digit 7-segment display, he refused almost immediately, because if you hang them at once 2, then I’ll barely have enough digital legs, and the output code MK consumes resources “nemeryano.” In addition, with this method of indexing, there is a noticeable stroboscopic effect, which spoils the visual perception of information.

Displayed the data of height and vertical speed on - LCD - display 1602 (16 characters, 2 lines).

So priborchik prompted me to call him.

image

AltVar + regularly showed the slightest change in height and vertical speed.

To output the audio signal left part of the source code of the project .
I tested it for days on end. Worked AltVar + steadily.
Or rather - there was not a single failure! In the stand-alone version (with a 200mA 9V element of the “Krona” type), it worked for 8 hours without a break and turned off the power supply.

The program code for the microcontroller was created using the Arduino compiler 1.0.6. In several stages, gradually adding functionality.

The algorithm of the program works simply and straightforwardly:

- values ​​of height and vertical speed are constantly displayed on the LCD display;
- the obtained values ​​of height and vertical speed are compared with the threshold values ​​specified by the user, and as a result of this test, sound and light signals are issued

When the device is turned on, threshold values ​​for altitudes and velocities specified by the user are displayed. At first glance, cumbersome - but informative!

Download videos 1

Changes can be made by changing the values ​​in the program and after compiling to load into the microcontroller.
The algorithm of the program is designed in such a way that before each jump you need to initialize AltVar + (turn off - turn on). We kind of “cocked” him. What is it for?

After "cocking" we have:

- the most accurate value of the zero height of the site;
- the values ​​of the variables responsible for the number of sound signals take the original values;
- save battery power

The program, as I have already indicated, was created for parachutists. "Chinese style" of writing will allow even a beginner to understand it. Everything is simple and unambiguous, I think.
I see no obstacles to adapt it for the paraglider (paramotor) and the ALS.

Lines of the program, as far as I could, provided detailed comments.
In the "header" are the necessary components, interconnections of elements, resistor ratings.
You can open it in a text editor or compiler and see.

In this version of the program, three heights are set for a high vertical speed:

- readiness (Ready) - 1 sound signal (installed 1000 m);
- alerts (Alert) - 3 beeps (800 m);
- alarms (Alarm) - continuous sound signal (600 m)

image

The signal will be removed when reducing the vertical speed to the threshold (set - 25 m / s)

image

Entered two more informational sound signals:
- when reaching a certain height (Climb) on board the aircraft (300 m at a vertical speed of more than +1 m / s);
- when reaching a certain height (Baza) during descent by parachute (200 m at a vertical speed of more than -1 m / s, here the altitude of operation is limited to a minimum of 25 meters because on the ground after AltVar + is turned on, various unforeseen pressure surges may occur that will cause signal);

image

Information is displayed in the format:
1 line Alt: * * * * (meters) - (sign of negative height)
2 line Var: * *. * (meters per second) -V- (decrease) + ^ + (rise)
Used the standard character generator compiler, not Russified. Therefore, all in English.

In addition, all beeps duplicated LED.

By connecting AltVar + via the COM port, you can use a third-party device to record a vertical flight profile. At first I used this opportunity to debug the program and decided to leave it.
To obtain an accurate value of atmospheric pressure, it is necessary to amend the code variable reserved for this purpose. Then there will be extremely accurate readings of atmospheric pressure.
Otherwise, the device provides measurements of height and vertical speed with a sufficiently high accuracy even without this correction.

Increase the functionality can be further.

For example:
- measurement of power supply voltage;
- record with the log data on emergency modes (a sort of “virtual“ SyPReS ”);
- put the vibrating alert;
- etc. etc.
But for the time being I stopped at this set of signals.

Build prototypes for field testing.


Soldered on the motherboard all the components of AltVar +

image

The board placed under the LCD-screen, which of course is not a dogma. You can place and next to him. The device will be flat, but wider.

image

Made of 4-mm plastic housing for the device itself and for the battery (9V "Krona"). Processed joints and edges, blew out of the aerosol can.
What to say ... "Kondovo" turned out.

image

Perhaps not compact enough. In general, it was possible to use a small soap box with cut openings for the display, a switch and an audio jack. But what happened - it happened.

There is something to test at least.

The stages of this testing are as follows:

- stability of work in a static state;
- verification of autonomy;
- “lift test” with greatly underestimated threshold values ​​of heights and vertical speeds;
- parachute jumps with elevated (in height) thresholds of the device

Video 2 "lift test" , significantly until 1:45, further opened the box and the camera cracked
it is OK

I think that passed successfully.

Were given:

- altitude of operation 20 => 15 => 10 m;
- vertical speed of -0.6 m / s (at the limit of sensitivity);
- height in a set of 8 m;
- height on the slope 5 m

With the passage of all heights AltVar + "bleated" the specified number of times. And the LED blinked.
After reducing the vertical speed below the threshold value - removed the alarm. That is, I behaved quite predictably, as I planned.

We will test it further.

If you wish, such a device can be assembled by almost anyone and, using open source code, can be programmed to suit your needs.

I summarize

Used components:

- microcontroller board Arduino Nano V3
- pressure sensor Gy-68
- LCD - display 1602
- 3.5 mm audio jack;
- 4k7, 1K, 330 ohm resistors;
- 5V LED;
- battery "Krona";
- switch;
- breadboard with conductors

Software:

- Arduino 1.0.6. by connecting the library port, sensor, display and speaker
- sketch (program that is loaded into the microcontroller)

PS Developed a board to simplify the assembly of AltVar +. But not yet made.

image

Paragliding firmware AltVar + v1.1

Beeps as the original project, indicates the height and vertical speed.
The LED lights when reduced, even minimal.

And AltVar + can be used as a green LED flashlight :)

Further development of this project (3.3V version)

Source: https://habr.com/ru/post/390437/


All Articles