1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Cleanup sonar support for Naze/Flip32/Olimexino. Add Sonar

documentation.
This commit is contained in:
Dominic Clifton 2014-08-13 22:01:39 +01:00
parent 74ef19bc34
commit d0338eac19
8 changed files with 108 additions and 48 deletions

29
docs/Sonar.md Normal file
View file

@ -0,0 +1,29 @@
# Sonar
A sonar sensor can be used to measure altitude for use with altitude hold modes.
The current sensor takes over from the pressure sensor at low altitudes, but only when
the angle of the aircraft is small.
## Hardware
Currently the only supported sensor is the HCSR04 sensor.
## Connections
### Naze
| Mode | Trigger | Echo | Inline 1k resistors |
| ------------- | ------------- | ------------- | ------------------- |
| Parallel PWM | PB8 / Motor 5 | PB9 / Motor 6 | NO (5v tolerant) |
| PPM/Serial RX | PB0 / RC7 | PB1 / RC8 | YES (3.3v input) |
Current meter cannot be used in conjunction with Parallel PWM and Sonar.
### Olimexino
| Trigger | Echo | Inline 1k resistors |
| ------------- | ------------- | ------------------- |
| PB0 / RC7 | PB1 / RC8 | YES (3.3v input) |
Current meter cannot be used in conjunction sonar.