gJ1Idv

【Training Camp】Disco Robot Dog

 
Overview

PCB design instructions

The original design was the same as the video. I bought a pca9685 and soldered it... I guess the pca9685 was burned, so I redesigned the hi3861 core board and bought a pca9685 module...

Software description

Code block:
Use clion to modify the following code in the virtual machine
<button id="a">Installation mode</button><br>
<br>
<button id="b">Stay where you are</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="c">Squat</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="d">Forward</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="e">Back</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="f">Turn left</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="g">Turn right</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="h">Squat</button><br data-tomark-pass>
<br data-tomark-pass>
<button id="i">Lift legs

Installation mode
fe(g('a'), () => {fg(u('/dog/init'), () => {});});

No progress
fe(g('b'), () => {let data = {"type": 3, "count": 20, "list": [[39, 180, 59, 133, 59, 133, 39, 180, 100], [59, 133, 39, 180, 39, 180, 59, 133, 100]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});

Squat down
fe(g('c'), () => {let data = {"type": 3, "count": 1, "list": [[-20, 90, -20, 90,-20, 90 , -20, 90, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});

go ahead
fe(g('d'), () => {let data = {"type": 3, "count": 20, "list": [[34, 108, 62, 150, 72, 144, 23, 111, 40], [41, 121, 32, 144, 40, 142, 31, 124, 40], [69, 143, 17, 115, 27, 113, 60, 148, 40], [62, 147, 24, 114, 34, 110, 54, 151, 40], [23, 126, 46, 139, 56, 135, 14, 127, 40]]};fp(u('/dog/cmds'), JSON .stringify(data), () => {});});

Back
fe(g('e'), () => {let data = {"type": 3, "count": 20, "list": [[72, 144, 42, 135, 51, 131, 62, 150, 50], [65, 141, 4, 137, 13, 143, 56, 146, 50], [52, 132, 47, 156, 54, 153, 43, 136, 50], [34, 139, 61, 149, 70, 144, 26, 140, 50], [25, 152, 48, 140, 57, 136, 17, 148, 50]]};fp(u('/dog/cmds'), JSON .stringify(data), () => {});});

Turn left
fe(g('f'), () => {let data = {"type": 3, "count": 7, "list": [[64, 140, 19, 87, 76, 146, 19, 99, 50], [46, 126, -6, 112, 31, 142, 26, 118, 50], [31, 84, 43, 146, 19, 102, 63, 150, 50], [63, 150 , 20, 102, 31, 98, 55, 155, 50], [9, 120, 45, 138, 55, 134, 0, 120, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});

Turn right
fe(g('g'), () => {let data = {"type": 3, "count": 5, "list": [[31, 91, 69, 153, 32, 75, 58, 147, 50], [36, 113, 23, 143, 4, 111, 37, 131, 50], [74, 145, 8, 103, 54, 145, 19, 90, 50], [18, 90, 54, 145, 63, 140, 8, 94, 50], [22, 134, 21, 108, 32, 104, 13, 134, 50], [90, 180, 90, 180, 90, 180, 90, 180, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});

Squat
fe(g('h'), () => {let data = {"type": 3, "count": 10, "list": [[39, 180, 39, 180, 39, 180, 39, 180, 120], [59, 133, 59, 133, 59, 133, 59, 133, 120]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});

Lift your legs
fe(g('i'), () => {let data = {"type": 3, "count": 1, "list": [[90, 180, 90, 180, 90, 180, 130, 230, 1200]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});

Physical display instructions

Robot dog front.jpgRobot dog.jpghi3861 core board.jpg

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-23 10:47:45

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号