Before configuring the variometer you need to know how to compile the code. Be sure you are familiar with the Arduino IDE.
All the variometer configuration is done by editing the libraries/VarioSettings/VarioSetting.h file inside your Arduino folder. If you don’t have an editor adapted to writing code you can download Notepad++.
Start by checking the file. There is two parts : one part concern the software configuration and one part the hardware configuration. Each option is documented by some comments directly inside this file, read them carefully.
To “comment” a line put “//” at the start. This disable the option.
1) Checking the Hardware configuration
Before starting to setup the software you need to make sure that the hardware configuration correspond to your setup. You can find some tips in the Schematics page for the base configuration.
If you use a pre-build kit, here the parameters you need to change.
GNUVario V3 (current PCB version)
2) If needed prepare the SD card
If your GNUVario have an SD card reader you can prepare you SD card now.
If the GNUVario’s bootloader is installed on your variometer you need to complete this step to be able to flash the firmware with the FIRM.HEX files created following the compilation page. You also need to know the flashing procedure.
The SD card need to be formatted with a FAT16 partition of less than 2Go. Here how to do this.
On windows or Mac
You don’t need to extract the zip. Give the image directly to Etcher.
Be sure you know what you are doing ! I suppose that if you use Linux you have some skills to understand these steps.
Locate the device corresponding to you SD card inside the “/dev” folder. For example, say “/dev/sdc”. You can plug and remove the SD card to be sure.
With fdisk, as root (use sudo if needed), create a 1.5Go partition :
And format the partition with mkfs.vfat
3) Save you personal data
There is some particular settings that need to be stored inside the Arduino memory. These settings are your personal data. You need to make this step just one time. These settings can’t be deleted just by flashing the variometer. You need to use a special sketch.
So in VarioSettings.h set your Pilot name and Glider name.
Open the SetVarioParameters sketch. Compile and upload it inside your variometer.
When you power ON the variometer, wait for three high beeps. This signal that you personal settings are now stored in the Arduino memory. You’re done for this step.
4) If needed calibrate the accelerometer
If you embed an accelerometer you need to calibrate it.
First on Windows or Mac install Python version 2. On Windows be sure to check the option add to PATH variable during the setup.
On Windows an Mac you need to install NumPy. So start a terminal : On Windows by typing “cmd” on your start menu, on Mac by running “Terminal” in “Aplications/Utilities”. Once you see the terminal type the following command :
Next compile and upload the calibration_recorder sketch. Be sure your SD card is inside the variometer and follow this procedure :
This will create a “RECORD**.IGC” file on the SD card. Copy this file inside the “best-fit-calibration” folder and if needed rename it as “RECORD00.IGC”.
On Windows or Mac launch the Idle editor and open the “best-fit-calibration/calibrate.py” program. Press “F5” to run.
On Linux just run :
This will show the parameters you need to replace in your VarioSettings.h file.
5) Upload the variometer code
You can now set all the parameters you want in VarioSettings.h. To apply your configuration you just need to compile and upload the Variometer sketch.
It’s NOT needed to run the SetVarioParameters sketch again !
This sketch is only needed if you change the Pilot name or the Glider name.
You are done !