{"id":4164,"date":"2025-05-06T07:59:46","date_gmt":"2025-05-05T22:59:46","guid":{"rendered":"https:\/\/www.elehobby.fun\/?page_id=4164"},"modified":"2025-05-06T07:59:46","modified_gmt":"2025-05-05T22:59:46","slug":"sunfounder-pidog-with-raspberry-pi-zero","status":"publish","type":"page","link":"https:\/\/www.elehobby.fun\/?page_id=4164","title":{"rendered":"SunFounder PiDog with Raspberry Pi Zero"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<div id=\"toc_container\" class=\"toc_light_blue no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#SunFounder_PiDog_with_Raspberry_Pi_Zero\"><span class=\"toc_number toc_depth_1\">1<\/span> SunFounder PiDog with Raspberry Pi Zero<\/a><ul><li><ul><li><a href=\"#Step_1\"><span class=\"toc_number toc_depth_3\">1.0.1<\/span> Step 1<\/a><\/li><li><a href=\"#Step_2\"><span class=\"toc_number toc_depth_3\">1.0.2<\/span> Step 2<\/a><\/li><li><a href=\"#Step_3\"><span class=\"toc_number toc_depth_3\">1.0.3<\/span> Step 3<\/a><\/li><li><a href=\"#Step_4\"><span class=\"toc_number toc_depth_3\">1.0.4<\/span> Step 4<\/a><\/li><li><a href=\"#Step_5\"><span class=\"toc_number toc_depth_3\">1.0.5<\/span> Step 5<\/a><\/li><li><a href=\"#Step_6\"><span class=\"toc_number toc_depth_3\">1.0.6<\/span> Step 6<\/a><\/li><li><a href=\"#Step_7\"><span class=\"toc_number toc_depth_3\">1.0.7<\/span> Step 7<\/a><\/li><li><a href=\"#Step_8\"><span class=\"toc_number toc_depth_3\">1.0.8<\/span> Step 8<\/a><\/li><li><a href=\"#Step_9\"><span class=\"toc_number toc_depth_3\">1.0.9<\/span> Step 9<\/a><\/li><li><a href=\"#Step_10\"><span class=\"toc_number toc_depth_3\">1.0.10<\/span> Step 10<\/a><\/li><li><a href=\"#Step_11\"><span class=\"toc_number toc_depth_3\">1.0.11<\/span> Step 11<\/a><\/li><li><a href=\"#Step_12\"><span class=\"toc_number toc_depth_3\">1.0.12<\/span> Step 12<\/a><\/li><li><a href=\"#Step_13\"><span class=\"toc_number toc_depth_3\">1.0.13<\/span> Step 13<\/a><\/li><li><a href=\"#Step_14\"><span class=\"toc_number toc_depth_3\">1.0.14<\/span> Step 14<\/a><\/li><li><a href=\"#Step_15\"><span class=\"toc_number toc_depth_3\">1.0.15<\/span> Step 15<\/a><\/li><li><a href=\"#Step_16\"><span class=\"toc_number toc_depth_3\">1.0.16<\/span> Step 16<\/a><\/li><li><a href=\"#Step_17\"><span class=\"toc_number toc_depth_3\">1.0.17<\/span> Step 17<\/a><\/li><li><a href=\"#Step_18\"><span class=\"toc_number toc_depth_3\">1.0.18<\/span> Step 18<\/a><\/li><li><a href=\"#Step_19\"><span class=\"toc_number toc_depth_3\">1.0.19<\/span> Step 19<\/a><\/li><li><a href=\"#Step_20\"><span class=\"toc_number toc_depth_3\">1.0.20<\/span> Step 20<\/a><\/li><li><a href=\"#Step_21\"><span class=\"toc_number toc_depth_3\">1.0.21<\/span> Step 21<\/a><\/li><li><a href=\"#Step_22\"><span class=\"toc_number toc_depth_3\">1.0.22<\/span> Step 22<\/a><\/li><li><a href=\"#Step_23\"><span class=\"toc_number toc_depth_3\">1.0.23<\/span> Step 23<\/a><\/li><li><a href=\"#Step_24\"><span class=\"toc_number toc_depth_3\">1.0.24<\/span> Step 24<\/a><\/li><li><a href=\"#Step_25\"><span class=\"toc_number toc_depth_3\">1.0.25<\/span> Step 25<\/a><\/li><li><a href=\"#Step_26\"><span class=\"toc_number toc_depth_3\">1.0.26<\/span> Step 26<\/a><\/li><li><a href=\"#Step_27\"><span class=\"toc_number toc_depth_3\">1.0.27<\/span> Step 27<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/div>\n<h1 class=\"wp-block-heading\"><span id=\"SunFounder_PiDog_with_Raspberry_Pi_Zero\">SunFounder PiDog with Raspberry Pi Zero<\/span><\/h1>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/322.jpg?resize=1024%2C576&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31350\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you want more info about this Robot dog \u2013\u00a0<a href=\"https:\/\/docs.sunfounder.com\/projects\/pidog\/en\/latest\/\" target=\"_blank\" rel=\"noreferrer noopener\">Click on me<\/a><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li>ications of PiDog<\/li>\n\n\n\n<li>Compatible motherboards \u2013 Raspberry Pi 4\/3B+\/3B\/Zero W<\/li>\n\n\n\n<li>Action Set \u2013 Walking, Sleeping, Running, turning left, turning right, Scratching ears, bobbing head, wagging tail, push-up<\/li>\n\n\n\n<li>Sensors \u2013 Ultrasonic module, touch switch module, 6 DOF sensor module<\/li>\n\n\n\n<li>RGB LED strip \u2013 Emotional Expression<\/li>\n\n\n\n<li>Battery type \u2013 2 x 18650 Battery<\/li>\n\n\n\n<li>Battery life \u2014\u00a0 1.5 Hours<\/li>\n\n\n\n<li>Connection Mode \u2013 WIFI\/AP<\/li>\n\n\n\n<li>Body Material \u2014\u00a0 Aluminium Alloy<\/li>\n\n\n\n<li>Expansion Board \u2013 SunFounder Robot Hat<\/li>\n\n\n\n<li>Camera \u2013 5MP camera<\/li>\n\n\n\n<li>Voice commands \u2013 forward, backward, turn left, turn right, trot, stop, lie down, stand up. Sit, bark, bark harder, pant, wagtail, shake head, stretch, doze off, push-up, howling, twist body, handshake, high-five<\/li>\n\n\n\n<li>Charging time \u2013 About 2-3 hours<\/li>\n\n\n\n<li>Control mode \u2013 SunFounder Controller App<\/li>\n\n\n\n<li>Programming language \u2013 Python<\/li>\n\n\n\n<li>Number of servos \u2013 12<\/li>\n<\/ul>\n\n\n\n<p>OK, let\u2019s assemble this Robot dog step by step. For that, follow the steps below. If you want, you can use the SunFounder instructions. For that use this link \u2014&nbsp;<a href=\"https:\/\/pidog.rtfd.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Click on me<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_1\">Step 1<\/span><\/h3>\n\n\n\n<p>Firstly, unbox and identify components one by one.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/1-16.jpg?resize=900%2C505&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31060\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_2\">Step 2<\/span><\/h3>\n\n\n\n<p>Now, install the Sound direction sensor module on Plate A. Then, connect the 7-pin wire to it.<\/p>\n\n\n\n<p><a href=\"https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html\">https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/241.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31088\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_3\">Step 3<\/span><\/h3>\n\n\n\n<p>Next, install the Raspberry Pi Zero board on it. Then, connect the FPC cable to the camera port and install the Robot HAT.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/242.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31096\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_4\">Step 4<\/span><\/h3>\n\n\n\n<p>Now, connect the Sound direction module cable to the robot HAT. Then, connect the one servo motor for the dog tail and install the battery using a velcro sticker.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/243.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31105\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_5\">Step 5<\/span><\/h3>\n\n\n\n<p>And then, charge this dog and turn on the power.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/245.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31107\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_6\">Step 6<\/span><\/h3>\n\n\n\n<p>Now, let\u2019s install the Raspberry Pi OS and download the required modules. For that, follow the instructions below.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, plug the SD card to the\u00a0<a href=\"https:\/\/srituhobby.com\/sunfounder-pidog-with-raspberry-pi-zero\/#\">\u00a0computer<\/a>. Then, download the Raspberry Pi OS to your computer and run this setup.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/45.jpg?resize=900%2C505&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31109\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, select your device, Operating system, and SD card.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/49.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31113\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, go to the settings and enter your hostname, username and password, SSID, and password. Then. select your country and enable SSH. Finally, click the ok button. Then, it will install it on your SD card.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/53.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31118\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_7\">Step 7<\/span><\/h3>\n\n\n\n<p>Next, insert this SD card to the Raspberry Pi board and power on it. Then install the required modules to the Raspberry Pi board. For that, follow the instructions below.<img decoding=\"async\" src=\"https:\/\/go.ezodn.com\/utilcave_com\/ezoicbwa.png\" alt=\"Ezoic\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/61.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31125\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, open Windows Powershell with the Administrator. Then log into the Raspberry Pi terminal using the following commands.<\/li>\n\n\n\n<li><strong>ping -4 raspberrypi.local<\/strong><\/li>\n\n\n\n<li><strong>ssh\u00a0srituhobby@192.168.8.145<\/strong>\u00a0\u2014 Please use your local IP address.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/63.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31128\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Then, run the following commands one by one.<\/li>\n\n\n\n<li>sudo apt update<\/li>\n\n\n\n<li>sudo apt upgrade<\/li>\n\n\n\n<li>sudo apt install git python3-pip python3-setuptools python3-smbus<\/li>\n\n\n\n<li>cd ~\/<\/li>\n\n\n\n<li>git clone -b v2.0 https:\/\/github.com\/sunfounder\/robot-hat.git<\/li>\n\n\n\n<li>cd robot-hat<\/li>\n\n\n\n<li>sudo python3 setup.py install<\/li>\n\n\n\n<li>cd ~\/<\/li>\n\n\n\n<li>git clone -b picamera2 https:\/\/github.com\/sunfounder\/vilib.git<\/li>\n\n\n\n<li>cd vilib<\/li>\n\n\n\n<li>sudo python3 install.py<\/li>\n\n\n\n<li>cd ~\/<\/li>\n\n\n\n<li>git clone https:\/\/github.com\/sunfounder\/pidog.git<\/li>\n\n\n\n<li>cd pidog<\/li>\n\n\n\n<li>sudo python3 setup.py install<\/li>\n\n\n\n<li>cd ~\/pidog<\/li>\n\n\n\n<li>sudo bash i2samp.sh<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/67.jpg?resize=900%2C505&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31132\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, enable the I2C and SPI. For that, run the command below.<\/li>\n\n\n\n<li><strong>sudo raspi-config<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/68.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31133\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Finally, run the servo zeroing script to set the servo motors to 0 points.<\/li>\n\n\n\n<li><strong>cd ~\/pidog\/examples<\/strong><\/li>\n\n\n\n<li><strong>sudo python3 servo_zeroing.py<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/71.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31136\"\/><\/figure>\n\n\n\n<p>OK, everything is fine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_8\">Step 8<\/span><\/h3>\n\n\n\n<p>Now, connect the tail servo motor to the P11 terminal. Afterward, power off and connect the servo arm to Plate B. Also, connect the cable tie to the end of Plate B.<\/p>\n\n\n\n<p><a href=\"https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html\">https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/246.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31144\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_9\">Step 9<\/span><\/h3>\n\n\n\n<p>Next, prepare plates C and D for the left and right legs. Use the following images for that.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/248.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31150\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_10\">Step 10<\/span><\/h3>\n\n\n\n<p>Then, connect the servo arms to these plates and install the servo motors.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/249.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31163\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_11\">Step 11<\/span><\/h3>\n\n\n\n<p>Next, install the Acrylic D plates on the legs.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/250.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31169\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_12\">Step 12<\/span><\/h3>\n\n\n\n<p>Now, run the servo zeroing script again and connect the servo motors one by one to the P11 terminal. Finally, power off this robot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/99.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31170\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_13\">Step 13<\/span><\/h3>\n\n\n\n<p>Next, assemble the dog legs using the images below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/251.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31180\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_14\">Step 14<\/span><\/h3>\n\n\n\n<p>After, connect the servo arms to E plates and install dog legs on these plates.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/253.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31197\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_15\">Step 15<\/span><\/h3>\n\n\n\n<p>Now, connect these parts to the main body and install the Plate F back side of this dog. Then, connect the servo motors to the robot HAT. For that, use the images below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/255.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31208\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_16\">Step 16<\/span><\/h3>\n\n\n\n<p>Next, install the RGB board on Plate G and connect it to the robot Hat using the 4-pin cable. Then, connect the 6-DOF IMU module to the RGB board using a cable. Finally, install the Plate G and IMU module on the robot dog.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/IMG_1877.jpg?resize=768%2C1024&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31225\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_17\">Step 17<\/span><\/h3>\n\n\n\n<p>Afterward, install Plate H to the bottom of this robot and assemble the robot stand using Acrylic plates.<\/p>\n\n\n\n<p><a href=\"https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html\">https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/261.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31236\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_18\">Step 18<\/span><\/h3>\n\n\n\n<p>Now, run the servo zeroing script again and set the other servo motors to 0 points using the P5 terminal. Then, attach the servo arm to plate I and connect the other servo motors to it. For that, use the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/262-1.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31245\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_19\">Step 19<\/span><\/h3>\n\n\n\n<p>Next, connect the Plate J to it. Then, assemble Plate K and connect it to the servo motor. Afterward, assemble Plate L and install it other side of the above part.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/265.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31265\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_20\">Step 20<\/span><\/h3>\n\n\n\n<p>Now, install the servo motor on the Plate M. Then, install that plate on Plate N. After, connect the all parts together.<\/p>\n\n\n\n<p><a href=\"https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html\">https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/267.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31279\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_21\">Step 21<\/span><\/h3>\n\n\n\n<p>Next, connect the servo motors to Robot HAT. Then, connect this part to the main body.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/IMG_1887.jpg?resize=768%2C1024&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31288\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_22\">Step 22<\/span><\/h3>\n\n\n\n<p>Afterward, connect Plate O to the dog head. Then, install the camera module on the Plate P and install the Plate Q on the Plate P.<\/p>\n\n\n\n<p><a href=\"https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html\">https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/270.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31306\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_23\">Step 23<\/span><\/h3>\n\n\n\n<p>Now, connect the Ultrasonic sensor with the Acrylic E plate. Then, install the touch switch module on the robot head and connect 4-pin wires to these components.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/272.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31319\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_24\">Step 24<\/span><\/h3>\n\n\n\n<p>Then, connect the ultrasonic sensor and touch switch module to the robot HAT. Finally, install Plate O on the robot dog head. Now, you can manage wires using cable wrap.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/273.jpg?resize=400%2C500&amp;ssl=1\" alt=\"SunFounder PiDog with Raspberry Pi Zero\" class=\"wp-image-31335\"\/><\/figure>\n\n\n\n<p>Now your robot dog is ready for you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_25\">Step 25<\/span><\/h3>\n\n\n\n<p>Next, place your dog on the stand and run the calibration script.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>cd ~\/pidog\/examples<\/strong><\/li>\n\n\n\n<li><strong>sudo python3 0_calibration.py<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/230.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31336\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_26\">Step 26<\/span><\/h3>\n\n\n\n<p>Now, you can run the following scripts one by one.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Function Demonstration \u2013> sudo python3 2_function_demonstration.py<\/li>\n\n\n\n<li>Wake Up \u2013> sudo python3 1_wake_up.py<\/li>\n\n\n\n<li>Patrol \u2013> sudo python3 3_patrol.py<\/li>\n\n\n\n<li>Response \u2013> sudo python3 4_response.py<\/li>\n\n\n\n<li>Rest \u2013> sudo python3 5_rest.py<\/li>\n\n\n\n<li>Push Up \u2013> sudo python3 9_howling.py<\/li>\n\n\n\n<li>Balance \u2013> sudo python3 10_balance.py<\/li>\n\n\n\n<li>Ball Track \u2013> sudo python3 13_ball_track.py \/ http:\/\/your IP:9000\/mjpg<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/232.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31340\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Step_27\">Step 27<\/span><\/h3>\n\n\n\n<p>If you want to control this robot dog with the SunFounder app, please follow the instructions below.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, run the following scripts one by one.<\/li>\n\n\n\n<li>cd ~<\/li>\n\n\n\n<li>git clone https:\/\/github.com\/sunfounder\/sunfounder-controller.git<\/li>\n\n\n\n<li>cd ~\/sunfounder-controller<\/li>\n\n\n\n<li>sudo python3 setup.py install<\/li>\n\n\n\n<li>cd ~\/pidog\/examples<\/li>\n\n\n\n<li>sudo python3 12_app_control.py<\/li>\n\n\n\n<li>Next, install the SunFounder controller app from the Play Store or App Store.<\/li>\n\n\n\n<li>Then, open this app and add the PiDog remote controller.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/235.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31341\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, connect the WIFI connection with your IP address.<\/li>\n\n\n\n<li><strong>Mydog(Your IP)<\/strong><\/li>\n\n\n\n<li>Finally, click the run button and enjoy your robot Dog.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/srituhobby.com\/wp-content\/uploads\/2024\/05\/238.jpg?resize=900%2C505&amp;ssl=1\" alt=\"\" class=\"wp-image-31343\"\/><\/figure>\n\n\n\n<p>OK, enjoy this Robot Dog. The full video guide is below. So, we hope to see you in the next project. Have a good day.<\/p>\n\n\n\n<p><a href=\"https:\/\/youtu.be\/hy-_fDfhxls\" target=\"_blank\" rel=\"noreferrer noopener\">SunFounder PiDog with Raspberry Pi Zero<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html\">https:\/\/37b594518f7a7077dccf7b7260551e6d.safeframe.googlesyndication.com\/safeframe\/1-0-43\/html\/container.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/youtube.com\/watch?v=hy-_fDfhxls%3Ffeature%3Doembed\n<\/div><\/figure>\n\n\n\n<p>Post Tags:<a href=\"https:\/\/srituhobby.com\/tag\/raspberry-pi\/\">#Raspberry Pi<\/a><a href=\"https:\/\/srituhobby.com\/tag\/robot-dog\/\">#robot dog<\/a><\/p>\n\n\n\n<p><\/p>\n<div class=\"veu_socialSet veu_socialSet-position-after veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_facebook sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/www.facebook.com\/sharer.php?src=bm&u=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4164&amp;t=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\" onclick=\"window.open(this.href,'FBwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_fb icon_sns\"><\/span><span class=\"sns_txt\">Facebook<\/span><span class=\"veu_count_sns_fb\"><\/span><\/a><\/li><li class=\"sb_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4164&amp;text=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><li class=\"sb_hatena sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4164&amp;title=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\"  onclick=\"window.open(this.href,'Hatenawindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_hatena icon_sns\"><\/span><span class=\"sns_txt\">Hatena<\/span><span class=\"veu_count_sns_hb\"><\/span><\/a><\/li><li class=\"sb_pocket sb_icon\"><a class=\"sb_icon_inner\"  href=\"\/\/getpocket.com\/edit?url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4164&title=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\"  onclick=\"window.open(this.href,'Pokcetwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_pocket icon_sns\"><\/span><span class=\"sns_txt\">Pocket<\/span><span class=\"veu_count_sns_pocket\"><\/span><\/a><\/li><li class=\"sb_copy sb_icon\"><button class=\"copy-button sb_icon_inner\"data-clipboard-text=\"\u5b9f\u8df5\u3067\u304d\u305f\u96fb\u5b50\u5de5\u4f5c\u3068\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u958b\u767a https:\/\/www.elehobby.fun\/?page_id=4164\"><span class=\"vk_icon_w_r_sns_copy icon_sns\"><i class=\"fas fa-copy\"><\/i><\/span><span class=\"sns_txt\">Copy<\/span><\/button><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>Contents1 SunFounder PiDog with Raspberry Pi Zero1.0.1 Step 11.0.2 Step 21.0.3 Step 31.0.4 Step 41.0.5 Step 51 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"vkexunit_cta_each_option":"","footnotes":""},"class_list":["post-4164","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages\/4164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4164"}],"version-history":[{"count":1,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages\/4164\/revisions"}],"predecessor-version":[{"id":4166,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages\/4164\/revisions\/4166"}],"wp:attachment":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}