Bench Robotics

IOT Lunar Rover Raspberrypi + Arduino

This project is inspired by the Indian moon mission Chandryaan-2 Which will take place in September 2019.This is a special mission because they are going to land on the spot where no one has every landed before.So to show my support i decided to build the actual rover based on the images of the rover online. I was restricted by my 3d printers size so i had to do some slight modifications.

Components Needed

This is a modular design it has two control boards an arduino and a raspberry pi. Both work independent of each other. If you dont have enough budget you can leave the raspberry pi and camera out the rover will still work by Bluetooth. Raspberry pi is used only for camera and controlling the rover over WiFi and internet. The movement of the rover is controlled by arduino. Both devices have different power supply.

Control system components

  1. Arduino uno
  2. L293D Motor driver shield
  3. 6 DC motors
  4. 6 tyres (3d printed)
  5. Mainbody+links (3 printed)
  6. 2 servo motors
  7. Various attachments (3d printed)
  8. 5mm,4mm,3mm and 2mm screws
  9. Self-locking nuts 4mm and 5mm
  10. 7V power supply

Network control components

  1. Raspberry Pi
  2. USB webcam(for video streaming and recording)
  3. Pi camera (for still images)
  4. 5V power supply

Main Body and Attachments

If you have a 3d printer you can directly print all the stuff but if you do not have you can use a lunch box for the main body and for making the links for the rocker bogie mechanism you can use PVC pipes I will leave the link for your references.

If you don’t want you can leave the attachment the rover will still work. The antenna and solar panel I have just added because I had lots of time and spare parts.

The CAD modelling is done in SolidWorks 2017. I have included both STL files and Solidworks files so you can make changes according to you or directly print the parts. I used the Ender 3 Pro for printing the parts.

Watch the video for a better understanding of how to assemble the rover.

Download Code and CAD Files Here

Wiring and Circuit

Use the above image for reference on connecting all the motors to the Arduino board. We will connect two motors on each side to single slot. And if motors are running in wrong direction just swap the wires that should fix it.

For Raspberry Pi, connect the USB webcam to the USB port. Any camera should work; there is no installation needed. Connect the Raspberry Pi camera module to the connector pin on the board. I know it’s silly using two supplies, but I made it like this so that people who don’t have a Raspberry Pi and camera can also build it.

IMPORTANT

Supply only 5V to the Raspberry Pi. DO NOT USE THE SAME POWER SUPPLY FOR RASPI AND ARDUINO. You will fry your board.

Controlling the Rover

There are two modes of control one by Bluetooth using an android device another over WiFi and internet Local Bluetooth connection For this you will have to download the Bluetooth app from the play store and connect to the rover.

For WiFi and internet control. This is a little tricky because we will use a Raspberry Pi for this. First, you need to connect to the Raspberry Pi via SSH through Remote Desktop Connection. Then run the Rovercontrol script, and it will ask you to connect to the Arduino board via Bluetooth. Once done it will open up a window, and now use the w,a,s,d keys to drive the rover and press j to stop it.

To control the camera, run the webcam script. It will start the live video to take a still picture. Use this command in the terminal window

raspistill -v -o test.jpg

Both cameras work independently of each other and can be used at the same time.

To set up RaspiCam, Click here

Webcam script uses OpenCV 3 running on Python 3 to set up that click here

Conclusion

This is the first part of the project i will upgrade the rover and add autonomous self-driving and finally i will make a lander module that i will launch from sky and try to automatically land it as if it were landing on the moon.

Feel free to ask any questions in the comments, and I will reply as soon as possible.

Leave a Reply

Your email address will not be published. Required fields are marked *