Raspberry Pi - Minikame

by LakshBhambhani in Circuits > Raspberry Pi

2391 Views, 9 Favorites, 0 Comments

Raspberry Pi - Minikame

image1.JPG
image2.JPG
image3.JPG
image4.JPG

A simple Quadruped controlled by your phone(IOS and Android). Runs on Raspberry Pi and Android.

Required Components:

  1. A Phone
  2. Raspberry Pi
  3. Arduino Nano with Shield
  4. 3D Printed parts

Complete Code : https://github.com/LakshBhambhani/RaspberryPi-Min...

All stl files: https://www.thingiverse.com/thing:3480616

3D Printing

Print all the following parts:

You can also find all the files on the Thingiverse Page

Software

Screen Shot 2019-03-09 at 2.04.38 PM.png
raspbian-download.png
win32-disk-imager-raspbian.png
Screen Shot 2019-03-09 at 2.09.33 PM.png

Install the following software on your Pi:

  1. Start by installing Debian on Pi
  2. Download Raspbian.
  3. Unzip the file
  4. Write the disc image to your microSD card
  5. Put the microSD card in your Pi and boot up
  6. Open chromium browser on your Pi
  7. Go to the following link: Arduino
  8. Download and install the software for Linux ARM

Pre-Assembly Software and Hardware Check

Screen Shot 2019-03-09 at 2.43.57 PM.png

Serial Communication Check (optional)

1. Upload the "PiArduinoCommunicationTest.ino" which is in "RaspberryPi-Minikame/Pre-Assembly Checks/Serial Communication Check/" to your Arduino Board.

Open a new terminal on your Raspberry Pi and execute the following:

sudo apt-get update
sudo apt-get upgrade
<p>git clone <a href="https://github.com/LakshBhambhani/RaspberryPi-Mini..." rel="nofollow"> https://github.com/LakshBhambhani/RaspberryPi-Min...</a></p><p>cd RaspberryPi-Minikame/Pre Assembly Checks/Serial Communication Check/</p><p>sudo python pi_duino.py</p>

Open the Serial Monitor on the Arduino IDE and check for "hi" and "hello" being printed

2. Server Check (optional)

On the same terminal as before execute the following:

cd ..
cd Server Check
sudo python weblamp.py

Now, If you load the URL on browser, you should see a weblamp control page. Your URL would be the IP address of your raspberry pi. Ex: 192.168.0.36

Homing all Servos (MUST-DO) Number your servos and upload the following code to Arduino to home your servos. Remember: Each servo has been set to a different home location. So each one has a different use and cannot be mixed up randomly later. Link to HomingServos.ino Code

Installation of Servos on the Base

Raspberry Pi - Minikame | Body Base Assembly |

Assembly of the Legs

Minikame Legs Assembly

Joining Legs and the Base

Joining Legs and Base

Wiring

Connect the Raspberry Pi to Arduino using a USB cable

Connect the Servos using the following port numbers:

FL_HIP = (4);

FL_FOOT = (5);

FR_HIP = (6);

FR_FOOT = (7);

BL_HIP = (8);

BL_FOOT = (9);

BR_HIP = (10);

BR_FOOT = (11);

The Server

Execute the following in your terminal to get your server up and running. For now, you might have to execute the server python file each time your pi reboots. V2 of RaspberryPi-Minikame should get rid of that

cd RaspberryPi-Minikame
cd Server
sudo python quad.py

Arduino Code

Upload the following code to your Arduino and do remember to open the Serial Monitor to use your Quadruped.

Find it here: Arduino

Raspi Quadruped App

You can either modify the app for yourself using the files in the App Folder or use the default provided apk. Alternatively, you can also use the files for IOS app, clone it in Xcode and run and install it on your phone