# Stm32腳位分配 > [name=徐冠東(gordondonghsu.ee10@nycu.edu.tw)] ## Stm32開發板腳位   大板,同款網址: https://www.rakuten.com.tw/shop/jyuan/product/ofp4cdydl/ ## Stm32腳位宣告圖-2024.02.23更新  ## Pin-out for ST-link 將STM32的VAPP GND SWDIO SWCLK分別接到仿真器的5V GND SWDIO SWCLK。  ### Connection (ST-link to Stm32): SWDIO -> DIO SWCLK -> CLK GND -> GND 3.3V -> 3V3 其他參考: https://hackmd.io/R1i4V1_uSyezExx0A04MCg --- ## Pin-out for 8 motors Declaration in Stm32 code   ### Connection (Motor to Stm32): Motor0 -> PA5 Motor1 -> PA1 Motor2 -> PA2 Motor3 -> PA3 Motor4 -> PC6 Motor5 -> PC7 Motor6 -> PC8 Motor7 -> PC9 --- ## Pin-out for Uart TTL模組  ### Connection (TTL to Stm32): Tx -> PC11 Rx -> PC10 GND -> GND VCC -> 5V --- ## Pin-out for Bar02   ### Connection (Bar02 to Stm32) Vin -> 3v3 SCL1 -> PB8 SDA1 -> PB9 GND -> GND 參考:https://hackmd.io/HYQ-6N19SjCVHs9AClE5Mw --- ## Pin-out for DC-motor ### 直流馬達  #### Datasheet: 直流馬達目前為有無霍爾感測器兩種型號 ps: 霍爾感測器會多出下圖的yellow、blue、while三條線,並注意藍色線需多接一個10k電阻。(目前Vin、VCC都是給5V)  (馬達參考: https://www.moteck.com/pro-ld36-compact-actuator.html) ### 控制驅動板-TB6612FNG  (教學參考: https://swf.com.tw/?p=1066) ### Connection (TB6612FNG to DC-motor) AO1 <-> Red AO2 <-> Black ### Connection (TB6612FNG to Stm32) PWMA <-> PD12 AIN2 <-> PD9 AIN1 <-> PD10 STBY <-> PD11 ### Connection (DC-motor to Stm32) Blue <-> PD8 ### Other connections VM <-> 12V、1A VCC <-> 5V GND <-> GND --- ## Pin-out for Servo-motor  伺服有三條線: 紅: VCC-5V 棕/黑: GND 橘: 訊號線 ### 伺服對stm32可使用的訊號腳位 ### Connection (servo to stm32) motor1 : PD13 motor2 : PD14 motor3 : PD15 (使用範例: https://blog.jmaker.com.tw/arduino-servo-sg90/) ## Pin-out for 霍爾開關模組  參考網址:https://shopee.tw/product/139069730/6992675519?d_id=9e099&uls_trackid=4urmrl7400b9&utm_content=3QqRUBuoZbM11Zakxo3Mhx9Rb3AX ### Connection (hall-switch to Stm32) S -> PE2 VCC -> 5V GND -> GND (其他參考: https://hackmd.io/wwfTJlVVTUeFmBxB5D5LVQ?view#Pin-out-for-%E9%9C%8D%E7%88%BE%E9%96%8B%E9%97%9C%E6%A8%A1%E7%B5%84) --- ## Pin-out for hydrophone receiver  ### Connection Dupont male -> hydrophone out Dupont female(black wire) -> hydrophone ground Dupont female(white wire) -> stm32 analog ch1 Dupont female(black wire) -> stm32 analog gnd
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up