XCTRACK_vario/README.md

99 wiersze
2.9 KiB
Markdown
Czysty Zwykły widok Historia

2020-06-04 09:46:51 +00:00
# XCTRACK_vario DO IT YOURSELF !
2020-07-24 17:11:32 +00:00
2021-11-09 20:05:00 +00:00
## Table of Contents
2020-07-24 17:11:14 +00:00
2021-11-09 20:05:00 +00:00
- [Overview](#overview)
- [Components](#components)
- [Step by step](#step-by-step)
- [Diagrams](#diagrams)
* [USB support only](#usb-support-only)
* [USB and bluetooth support](#usb-and-bluetooth-support)
- [Known issues](#known-issues)
## Overview
Variometer for [XCTRACK](https://xctrack.org/) based on MS5611 high precision pressure and temperature sensor and LK8000.
It works via USB or Bluetooth on XCtrack!
Power consumption ~0.1W (a little bit more with bluetooth)
2019-07-06 10:42:58 +00:00
Based on Arduino Vario by Benjamin PERRIN 2017 / Vari'Up
Based on Arduino Vario by Jaros, 2012 and vario DFelix 2013
https://github.com/LK8000/LK8000/blob/master/Docs/LK8EX1.txt
2019-03-18 08:24:59 +00:00
2021-11-09 20:05:00 +00:00
### Components
- Arduino Nano with FTDI chip (or ch340g chip since xctrack 0.9.3)
- MS5611 pressure and temperature sensor
- bluetooth module in option (hc-05 or hc-06 or cpp module (ZS-040))
- USB mini/micro/type c OTG cable (if USB mode), depends on your phone
2021-01-22 07:29:36 +00:00
<a href="https://my.aliexpress.com/wishlist/shared.htm?groupId=100000009108834" target="_blank">aliexpress</a>
2019-03-18 08:24:59 +00:00
- PLA box 3D printing
2021-01-22 07:29:36 +00:00
<a href="https://cad.onshape.com/documents/8ec970df0f91cd7f4dafb0b8/w/81f5e80ab2d84901aa8e29be/e/2df0103f0eb100d6330b3609" target="_blank">Onshape</a>
2022-06-01 10:12:43 +00:00
- STL files for printing in stl folder
2021-11-09 20:05:00 +00:00
2021-11-11 07:01:31 +00:00
<img src="img/xctrack.jpg" width="512px"/>
2019-03-18 08:24:59 +00:00
2021-11-09 20:05:00 +00:00
## Step by step
2021-11-10 17:29:06 +00:00
1) Download MS5XXX library by Roman Schmitz. (Go to Tools, Manage Libraries and search for "MS5xxx"; install the library done by Roman Schmitz.)
2021-11-09 20:05:00 +00:00
2021-11-10 17:29:06 +00:00
1) If you want to use it as only usb, just upload the code in (XCTRACK_VARIO_MS5611/XCTRACK_VARIO_MS5611.ino).
2021-11-09 20:05:00 +00:00
2021-11-10 17:29:06 +00:00
To use it as bluetooth (and USB), simply change the following code
2021-11-09 20:05:00 +00:00
```
#define USB_MODE // usb by default
2021-11-10 17:29:06 +00:00
// #define BLUETOOTH_MODE // uncomment this line for bluetooth mode
2021-11-09 20:05:00 +00:00
```
to
```
2021-11-10 17:29:06 +00:00
#define USB_MODE // usb by default
2021-11-10 17:35:31 +00:00
#define BLUETOOTH_MODE // uncomment this line for bluetooth mode
2021-11-09 20:05:00 +00:00
```
Note: To build this vario, you *may* be able to use other Arduinos besides the nano: simply connect the SCL/SDA of the MS5611 to the respective SCL/SDA ports of your Arduino.
## Diagrams
### USB support only
2020-07-24 17:27:13 +00:00
2021-01-22 07:29:36 +00:00
![alt text](img/vario_MS5611.png)
2019-07-06 11:24:01 +00:00
2021-01-22 07:29:36 +00:00
![alt text](img/usb-mini_soldered.jpg)
2020-06-04 09:44:14 +00:00
2021-01-22 07:29:36 +00:00
![alt text](img/usb-c_soldered.jpg)
2020-07-24 17:05:02 +00:00
2021-11-09 20:05:00 +00:00
### USB and bluetooth support
2020-07-24 17:27:13 +00:00
2021-01-22 07:29:36 +00:00
![alt text](img/vario_MS5611_bluetooth.png)
2020-07-24 17:24:01 +00:00
2021-01-22 07:29:36 +00:00
![alt text](img/usb-mini_bluetooth_soldered.jpg)
2021-11-09 20:05:00 +00:00
### Known issues
#### The arduino seems bricked
2021-11-10 17:35:31 +00:00
You may have connected the SCL/SDA ports wrong.
If you can't upload to your arduino:
1) Disconnect it from the computer
1) Press and hold the reset button
1) Plug it back (don't release the reset)
1) Click upload (don't release the reset)
1) When the IDE says that is uploading (after compiling ends) release the reset button
2021-11-09 20:05:00 +00:00
#### Can't upload
2021-11-10 17:35:31 +00:00
Assuming you are using a nano, you may have an older bootloader version.
Change the processor to "ATmega328P (Old Bootloader)"
2021-11-09 20:05:00 +00:00
2021-11-11 07:01:31 +00:00
![img.png](img/old-bootloader.png)