Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Sep 25, 2024
1 parent 42baaae commit 85a2bf2
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 164 deletions.
160 changes: 0 additions & 160 deletions README.md

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 136 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/MUPilot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,138 @@ The MUPilot flight controller is sold by [MUGIN UAV](http://https://www.muginuav

## Pinout

![MUPilot Board](MUPILOT-pinout.jpg "MUPilot")
![MUPilot Board](MUPILOT.png "MUPilot")

## Connectors

**POWER1/2**

| Pin | Signal | Volt |
| :--: | :-------------: | :---: |
| 1 | VCC_IN | +5V |
| 2 | VCC_IN | +5V |
| 3 | CRRENT_ADC | +3.3V |
| 4 | VOLTAGE_ADC | +3.3V |
| 5 | GND | GND |
| 6 | GND | GND |

**TELEM1**

| Pin | Signal | Volt |
| :--: | :-----: | :---: |
| 1 | VCC | +5V |
| 2 | UART_TX2| +3.3V |
| 3 | UART_RX2| +3.3V |
| 4 | CTS | +3.3V |
| 5 | RTS | +3.3V |
| 6 | GND | GND |

**TELEM2**

| Pin | Signal | Volt |
| :--: | :-----: | :---: |
| 1 | VCC | +5V |
| 2 | UART_TX6| +3.3V |
| 3 | UART_RX6| +3.3V |
| 4 | CTS | +3.3V |
| 5 | RTS | +3.3V |
| 6 | GND | GND |

**GPS&SAFETY**

| Pin | Signal | Volt |
| :--: | :-----------: | :---: |
| 1 | VCC | +5V |
| 2 | UART_TX1 | +3.3V |
| 3 | UART_RX1 | +3.3V |
| 4 | I2C1_SCL | +3.3V |
| 5 | I2C1_SDA | +3.3V |
| 6 | SAFETY_SW | +3.3V |
| 7 | SAFETY_SW_LED | +3.3V |
| 8 | 3V3_OUT | +3.3V |
| 9 | BUZZER | +3.3V |
| 10 | GND | GND |

**UART4(GPS2)**

| Pin | Signal | Volt |
| :--: | :-----: | :---: |
| 1 | VCC | +5V |
| 2 |UART_TX3 | +3.3V |
| 3 |UART_RX3 | +3.3V |
| 4 |I2C2_SCL | +3.3V |
| 5 |I2C2_SDA | +3.3V |
| 6 | GND | GND |

**CAN1/2**

| Pin | Signal | Volt |
| :--: | :----: | :---: |
| 1 | VCC | +5V |
| 2 | CAN_H | +3.3V |
| 3 | CAN_L | +3.3V |
| 4 | GND | GND |

**ADC**

| Pin | Signal | Volt |
| :--: | :-----: | :---: |
| 1 | VCC | +5V |
| 2 | ADC_3V3 | +3.3V |
| 3 | ADC_6V6 | +6.6V |
| 4 | GND | GND |

**I2C1/2/3/4**

| Pin | Signal | Volt |
| :--: | :------: | :---: |
| 1 | VCC | +5V |
| 2 | I2C_SCL | +3.3V |
| 3 | I2C _SDA | +3.3V |
| 4 | GND | GND |


**SPI5**

| Pin | Signal | Volt |
| :--: | :----: | :---: |
| 1 | VCC | +5V |
| 2 | SCK | +3.3V |
| 3 | MISO | +3.3V |
| 5 | MOSI | +3.3V |
| 6 | CS1 | +3.3V |
| 7 | CS2 | +3.3V |
| 8 | GND | GND |

**DSM/SBUS/RSSI**

| Pin | Signal | Volt |
| :--: | :---------: | :---: |
| 1 | VCC | +5V |
| 2 | DSM/SBUS | +3.3V |
| 3 | RSSI | +3.3V |
| 4 | 3V3_OUT | +3.3V |
| 5 | GND | GND |

**SBUS OUT**

| Pin | Signal | Volt |
| :--: | :----: | :---: |
| 1 | - | - |
| 2 |SBUS OUT| +3.3V |
| 3 | GND | GND |

**DEBUG**

| Pin | Signal | Volt |
| :--: | :----: | :---: |
| 1 | VCC | +5V |
| 2 |UART_TX7| +3.3V |
| 3 |UART_RX7| +3.3V |
| 4 | SWDIO | +3.3V |
| 5 | SWCLK | +3.3V |
| 6 | GND | GND |


## UART Mapping

Expand All @@ -32,6 +163,7 @@ The MUPilot flight controller is sold by [MUGIN UAV](http://https://www.muginuav
- SERIAL4 -> UART4 (GPS2)
- SERIAL5 -> UART6 (spare)
- SERIAL6 -> UART7 (spare, debug)
- SERIAL7 -> USB2 (SLCAN)

The Telem1 and Telem2 ports have RTS/CTS pins, the other UARTs do not
have RTS/CTS.
Expand All @@ -47,7 +179,7 @@ a full UART will need to be used with its SERIALx_PROTOCOL set to "23".

## PWM Output

The CUAVv5 supports up to 14 PWM outputs. First first 8 outputs (labelled
The MUPilot supports up to 14 PWM outputs. First first 8 outputs (labelled
"M1 to M8") are controlled by a dedicated STM32F100 IO controller. These 8
outputs support all PWM output formats, but not DShot.

Expand Down Expand Up @@ -81,7 +213,7 @@ the type of power brick which is connected.

## Compass

The CUAVv5 has a builtin IST8310 compass. Due to potential
The MUPilot has a builtin IST8310 compass. Due to potential
interference the board is usually used with an external I2C compass as
part of a GPS/Compass combination.

Expand All @@ -104,7 +236,7 @@ The numbering of the GPIOs for PIN variables in ArduPilot is:

## Analog inputs

The CUAVv5 has 7 analog inputs
The MUPilot has 7 analog inputs

- ADC Pin0 -> Battery Voltage
- ADC Pin1 -> Battery Current Sensor
Expand Down

0 comments on commit 85a2bf2

Please sign in to comment.