aytwartoofyoroo

[Training Camp] Steering gear gripper

 
Overview
Use Lichuang express cardboard as structural parts,
The main control uses HI3861,
The module has 1 user button and 2 servos (the servos use IO delay to simulate PWM)

The user button is GPIO2
The left servo is GPIO8 and the right servo is GPIO9

When installing, do not put the cardboard on first, but burn the program first. When the button is not pressed, it is in the clamped state, and when it is pressed, it is in the released state.

Updated the PCB diagram, removed the 5V battery interface and high-current LDO module, which are not necessary, leaving the PCA9685 interface (tested, no problem)


Use ubuntu20 system, VSCODE compiler (provided by training camp)
The programming language is developed in C language. I have tested the internal PWM and found that the frequency is not up to standard. There is no way.
I also tested the timer, and it has a minimum period of 10ms, but nothing worked. I finally chose to use the IO simulation method to control the servo. The program defines three PWM functions of the servo for reference.

PCB physical picture
image.png

Clamp made of cardboard (cardboard is very brittle, so it works fine)
image.png)

Attachment description
Burn files (no development required, burn and use)
Hi3861_wifiiot_app_allinone.bin

main.c source code (ubuntu development programming file)
main.c

The folder I created here in ubuntuOHOSDOG is my_pwm
For the specific writing method of BUILD.gn, please refer to gn function.txt in pictures 1 and 2.
参考设计图片
×
 
Related Devices
Devices Class introduce Datasheet
ITCAST-HI3861 WIFI module Download
WR08X4120FTL SMD resistor Download
TYPEC-304-BCP16 The USB connector Download
YTS1C0191ABG00 Light touch switch Download
2.54-1x6P直针 Download
AMS1117-3.3 Download
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-21 13:18:16
  • SinlinxA33 Modify the configuration file to change the output serial port
  • 【Home treasure】 esp32s2 lvgl running lcd io configuration
  • GPRS Series Application 9
  • Balanced Amplifier
  • micropython update: 2020.9
  • Nuvoton 003 Series Platform MS51 Replacement N76E003 Guide V1.0

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号