OrsoEric / OrangeBot-motor-controller-v2

Motor controller for OrangeBot Robot. VNH7040+GD32VF103
0 stars 0 forks source link

DCMC - Schematics - Microcontroller Pin Assignment #4

Open OrsoEric opened 3 years ago

OrsoEric commented 3 years ago

Assign the Longan nano GD32VF103 pins to the various functions.

OrsoEric commented 3 years ago

Version 2021-03

INA B5
INB B7
SEL0 B5
SEL1 B8
MSENSE TRUE
PWM; B6
SENSE A0




Encoder
CHA B4
CHB B5


ADC
CH16 Temperature
CH17 Vref


LEDS
Red C13
Green A1
Blue A2


Screen
RST B1
RS B0
SPI CS A2
SPI CLK A5
SPI MISO A6
SPI MOSI A7
OrsoEric commented 3 years ago

Version 2021-05

VNH7040 Left
INA B8
INB B9
SEL0 B8
SEL1 B11
MSENSE TRUE
PWM; B6, TIMER3 CH0 PWM
SENSE A0, ADC CH0




Encoder Left
CHA B4,TIMER2 CH0
CHB B5, TIMER2 CH1


ADC
CH16 Temperature
CH17 Vref


LEDS
Red C13
Green A1
Blue A2


Screen
RST B1
RS B0
SPI CS A2
SPI CLK A5
SPI MISO A6
SPI MOSI A7
OrsoEric commented 3 years ago

Version 2021-08 PCB

Longan Nano GPIO
VBAT VBAT
Crystal 32.768KHz PC15
Crystal 32.768KHz PC14
#LED_R PC13
vnh7040.msense PA0
#LED_G PA1
#LED_B PA2
vnh7040.msense_en PA3
vin.vsense PA4
TFT Screen PA5

PA6
TFT Screen PA7
TFT Screen PB0
TFT Screen PB1
com485.rxi PB10
com485.txo PB11
Reset Button



5V0

3V3
com485.txe PB12
com485.rxe# PB13

PB14

PB15
Boot Button PA8
USB D- PA11
USB D+ PA12
enc.cha PB4
enc.chb PB5
vnh7040.pwm PB6
vnh7040.sel1 PB7
vnh7040.ina/sel0 PB8
vnh7040.inb PB9

0V0

0V0


VNH7040 Longan Nano
vnh7040.ina uc.b8
vnh7040.inb uc.b9
vnh7040.sel0 uc.b8
vnh7040.sel1 uc.b7
vnh7040.pwm uc.b6.t3-0
vnh7040.msense_en uc.a3
vnh7040.msense uc.a0.adc0
ENCODER
enc.cha uc.b4.t2-0
enc.chb uc.b5.t2-1
COM485
com485.rxo uc.b11.rxi2
com485.txi uc.b10.txo2
com485.txe uc.b12
com485.rxe# uc.b13
POWER
vin.vsense uc.a4.adc4