[Diao Ye learns programming] Arduino hands-on (156) --- OTTO biped servo robot

The reference to 37 sensors and actuators has been widely circulated on the Internet. In fact, there must be more than 37 sensor modules compatible with Arduino. In view of the fact that I have accumulated some sensor and actuator modules on hand, according to the concept of practice to get true knowledge (must be done), for the purpose of learning and communication, I am going to try a series of experiments one by one, regardless of success (the program goes through) or not, They will be recorded - small progress or unsolvable problems, hoping to inspire others.

[Arduino] 168 kinds of sensor module series experiments (data code + simulation programming + graphics programming)
Experiment 156: Multifunctional OTTO biped servo robot with open source hardware and software

insert image description here
Knowledge points: What is an OTTO robot?

OTTO is completely open source, an interactive robot that anyone can make. She is compatible with the Arduino control system, and its main appearance materials can be directly 3D printed. It can even be said that she is built to cultivate people's enthusiasm for learning robots. By inputting the existing programs, OTTO can now walk, dance, sing, etc. He can also avoid obstacles through ultrasonic sensing. OTTO was inspired by another bipedal robot called Zowi. OTTO is truly open source in both hardware and software, encouraging anyone in the world to invent and create their own version of OTTO with more functions and features.

insert image description here
insert image description here
insert image description here
insert image description here
OTTO robot official website: www.ottodiy.com
https://ottodiycn.mystrikingly.com/

Experience making relevant documents, click here to download the link: https://pan.baidu.com/s/1EEkDRCdqNryFFHClZclkvg
Extraction code: okck

insert image description here
insert image description here
insert image description here
OTTO robot component list
1. Arduino Nano controller (Arduino Nano microcontroller)
2.Arduino expansion board (Arduino NANO Shield I/O Extension Board Expansion XD-212)
3. USB cable (available in most Arduino kits)
4. HC-SR04 Ultrasound sensor (HC-SR04 Ultrasound sensor)
5. 4 servos (Mini servo SG90 9g), each servo should be equipped with 2 pointed screws and 1 small screw.
6. 5V buzzer
7. 6 female to female breadboard connectors cable (Female to Female breadboard connectors cable, 10cm)
8. AA battery box
9. 4 AA batteries (1.5V)
10. A Phillips screwdriver, preferably a magnetized one.
11. Ultrasonic sensor
12. Pointed screw, short screw
13. 3D printing head, body, two legs, left and right feet
Optional: electric soldering iron (needed if you want to install the battery)

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
OTTO's small experimental scene

insert image description here
Instructions for OTTO Appearance Prints

You can download the source file of the 3d printer from here and print it yourself, or you can find a 3d printer to purchase the printer. If you print by yourself, the print setting requirements are: accuracy -0.15mm, filling density -20%.

Source file download link: https://pan.baidu.com/s/1Ei_NzV5RR84f2g58HHAnkA

insert image description here
line connection

Prepare the Dupont wire and the buzzer, and connect the lead pins according to the connection method shown in the figure

insert image description here
Download and install Arduino IDE software (current version Arduino IDE 2.1.1)

Arduino IDE is the official development environment provided by Arduino, which supports windows, Mac OS, linux and other systems. After clicking the download link, you will see multiple versions, it is recommended to download the latest version.

Official download link: https://www.arduino.cc/en/Main/Software

insert image description here

Development board selection - Arduino Nano
processor selection - ATmega328P
port selection - COM3 (each computer is different, random)

Note
When uploading code on the Nano board, if you encounter the following avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x36 error, you can try the following menu on the Arduino IDE: 'Tools - Processor - ATmega328P (Old Bootloader)' should do the trick.

insert image description here
[Arduino] 168 sensor module series experiments (data code + simulation programming + graphics programming)

Experiment 156: A multifunctional OTTO bipedal servo robot with open source hardware and software

Install the library: IDE—Tool—Manage Library—Search for "Servo"—Install

Project 1: Test four servos one by one through the IO9 port

/*

 【Arduino】168种传感器模块系列实验(资料代码+仿真编程+图形编程)

  实验一百五十六:硬件和软件都开源的多功能OTTO两足舵机机器人

 1、安装库:IDE—工具—管理库—搜索“Servo”—安装

 2、实验之一:通过IO9口,逐一测试四只舵机

*/



#include <Servo.h>

Servo myservo;  

int pos = 0;   



void setup() {
    
    

 myservo.attach(9);  

}



void loop() {
    
    

 for (pos = 0; pos <= 180; pos += 1) {
    
     

  // in steps of 1 degree

  myservo.write(pos);        

  delay(15);            

 }

 for (pos = 180; pos >= 0; pos -= 1) {
    
     

  myservo.write(pos);        

  delay(15);            

 }

}


insert image description here

Guess you like

Origin blog.csdn.net/weixin_41659040/article/details/131619074