Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Understanding and Configuring OpenXsensor
Then, you have to download the latest versions of OpenXsensor and OXS Configurator.
Decompress the archives, then place the folder "openXsensor" in your arduino project directory. You can put the folder "OXS_Configurator_vx.y" where you want.
About OpenXsensor Configurator
OpenXsensor can do a lot of different measurements (that you can combine as you want) therefore it needs a rather dense configuration file.
That's why the OpensXsensor Configurator has been created, it helps setting all the OXS functionalities more easily. The documentation below will only make use of the OXS Configurator.
OXS Configurator Title
On the top right logo corner you've got an "About" button, on the bottom left, you'll see the compatible OpenXsensor version and in the bottom right, the Configurator version.
All along the program, you can hover the mouse on the controls and a tooltip should appear with a breve description and/or the default value.
Here you can set the OpenXsensor directory so that the config file could be written in the right place.
Unfortunately, the text field doesn't support copy pasting, but you can manually type the path or click the button "..." at the right and navigate to the OXS folder.
DATA output settings
The serial output pin number is the Arduino digital pin to connect to the receiver telemetry data input:
Pin labelled "Rx" on the D series receivers
Pin labelled "S" from the Smart Port connector on the X series receivers
The Sensor ID choice is only relevant with a Smart Port capable receiver (X series), it doesn't have any effect with D series receivers.
- In S.Port protocol, there may be several sensors connected on the same bus (e.g. a GPS) but each sensor must have a different Sensor ID. So, you have to define a Sensor ID for your OXS that is different from sensor ID of other sensors.
- Just stay with the default setting unless you've got a good reason ;)
! Never connect a voltage > VCC to an Ax Arduino analog pin !
Voltages can be measured compared to VCC or an 1.1V internal reference:
- If VCC is very stable, it is probably more accurate and easier to measure voltages based on VCC. Still, this requires that the voltage applied on Arduino "RAW" pin is regulated, or at least always more than 5.5V for a 5V Arduino or 3.7V for a 3.3V Arduino (headroom needed for the Arduino board regulator).
- If voltage on "Raw" pin is less than 5.5V or 3.7V depending on the Arduino used, and unstable (e.g. due to servo consumption or low battery), then voltage measurements will be wrong.
- If VCC can't be very stable (e.g. Arduino is powered by a battery), then it is possible to measure based on the Arduino 1.1V internal reference.
To measure a voltage greater than VCC or 1.1V depending on the option you choose, you need to use a voltage divider.
This will be discussed in details when we'll talk about voltage sensors.
Save data to EEPROM
If checked, current consumption will be stored in EEPROM (Arduino memory) every 10 seconds.
This value will be restored every power up, so you will keep data continuity even if the model is turned off between flights.
With this option enabled and the corresponding pin number set, you can use a button (connected to the digital Arduino pin previously chosen) to reset the current consumption.
Tick the sensors connected so that OXS can use them.
Note: The second barometric sensor (Vario 2) can only be used if Vario 1 is activated. The 2 varios both share the same configuration.
You can load and save preset settings for your different OpenXsensor configurations.
The "Preset" folder in the Configurator root is opened by default, but you can put them where you want.
next --> Vario settings