| Ligne 270 : |
Ligne 270 : |
| | {{asm-end}} | | {{asm-end}} |
| | | | |
| | + | |
| | + | === Analog connectors === |
| | + | The CANSAT-BASE fits 1 Grove connector with two analog lines. Such line allows to read a analog voltage between 0 and 3.3V. |
| | + | |
| | + | Under MicroPython, the analog value is converted by the microcontroler into an Unsigned 16 bits integer (aka U16) having a value between 0 and 65535. |
| | + | |
| | + | A cross multiply can then be applied to calculate the original analog voltage. |
| | + | |
| | + | Each line can be configured as: |
| | + | * '''Analog Input''' : reading an analog voltage between 0 and 3.3V |
| | + | * '''Input''' : already described. |
| | + | * '''Output''' : already described. |
| | + | |
| | + | {{asm-begin}} |
| | + | {{asm-row|img=ENG-CANSAT-V2-Analog1.jpg}} |
| | + | {{asm-text}} Two GPIOs are attached to the Analog connector. |
| | + | |
| | + | Note the 'gp26' on the silkscreen next to the connector. The next GPIO is set to the next increasing number. |
| | + | |
| | + | {| class="wikitable" border="1" |
| | + | |- |
| | + | | align="center" | '''GPIO''' |
| | + | | align="center" | '''Description''' |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | gp26 |
| | + | | align="left" | Analog Input 0. Input/Output also supported. |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | gp27 |
| | + | | align="left" | Analog Input 1. Input/Output also supported. |
| | + | |} |
| | | | |
| | === UART connector === | | === UART connector === |