newlandmark

【Training Camp】Robot Dog

 
Overview
Refer to the teaching case to assemble the mechanical structure, weld the PCB, and burn the program to realize a four-legged moving dog.
1 Hongmeng Dog
1.1 Component selection
1.1.1 Functional requirements
  1. Brain control
  2. Multi-channel steering gear control
PWM
  1. Power supply
1.1.2 Components
  1. Hi3861
The product number of the corresponding module in Lichuang Mall: C2923578
  1. PCA9685
The product number of the corresponding component in Lichuang Mall: C92206
16-channel PWM control
I2C protocol
  1. LDO Linear Regulator
The product number of the corresponding component in Lichuang Mall:
5V output—— C259973
3.3V output—— C347222
1.2 Schematic design
1.2.1 Functional relationship between components
  1. control
  • The main control communicates with PCA9685
I2C protocol
    • GPIO10 of the main control chip Hi3861 is used as the SDA pin of I2C, and GPIO09 is used as the SCL pin of I2C.
    • PCA9685 has I2C SDA and SCL pins respectively.
  1. powered by
  • Component power requirements
3.3V
    • Main control chip power supply
    • PCA9685 chip power supply
  • Servo power requirements
MG90S servo: voltage 5V, drive current 200mA*16=3.2A
  • Battery
7.4V-->5V-->3.3V
  1. Burning problem
The main control uses serial port programming, GPIO03 is the TXD pin, and GPIO04 is the TXD pin.
1.2.2 Miscellaneous considerations
1.3 PCB layout
Every time you make changes to the PCB, you need to relay the copper.
1.4 Summary
1.4.1 Design stage
  1. Find core needs
  2. Complete the minimum verification board
  3. Choose reasonable components
1.4.2 Wiring stage
  1. Determine the shape and size of the development board
  2. Component partition classification arrangement
  3. Rough wiring
  4. Fine wiring
  5. Copper laying, DRC treatment

1 Python development environment setup

1.1 Pycharm installation

Open the link: Pycharm download address , enter the Pycharm download page, click "Download" as shown below:
image
Jump to the version selection page and select "Other versions", as shown below:
image
Jump to the specific version selection interface and select "PyCharm Community Edition" under "PyCharm Community Edition", as shown below:
image
Wait for the download to complete, as shown in the figure:
image
Select "Show in folder", as shown in the figure
image
Right-click the mouse and select "Run as administrator", as shown in the figure
image
Installation wizard, select "Next", as shown in the figure
image
Select the installation path. Here I choose the default path "C:Program FilesJetBrainsPyCharm Community Edition 2021.3.3", as shown in the figure
image
Select "Next", as shown in the figure:
image
I check everything here and click "Next", as shown below:
image
Click "Install", as shown below:
image
Installing, as shown below:
image
Select "Reboot now", restart, and click "Finish", as shown below:
image
Double-click the desktop shortcut "PyCharm Community Edition 2021.3.3" to start the Pycharm software, as shown below:
image
Check the box to agree to the agreement and click "Continue", as shown below:
image
Do not send usage data to Jetbrains, as shown below:
image
Start the interface, as shown below:
image

1.2 genkipi plug-in installation

Select "Plugins" as shown below:
image
Select "Install plugin from disk" under settings, as shown below:
image
Select the compressed package "genkipi-python-1.1.1.zip", as shown below:
image
Click "Accept", as shown below:
image
Click "Restart IDE" to restart Pycharm, as shown below:
image
Apply the changes as shown below:
image

1.3 New construction

Select "New Project" under "Projects" to create a new project, as shown below:
image
Create a new project name, Python interpreter, just choose any one, as shown below:
image
Click "Create", as shown below:
image
Click "Close", as shown below:
image
Installing, as shown below:
image
Online installation failed, as shown below:
image
Go to the Python official website to manually download and install it, as shown below:
imageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimage
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-07-31 17:26:26

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号