/robotics-level-1

The first level involves making a Raspberry Pi Robot with minimalistic hardware. The robot is controlled through a Web Application. The code is written in Python, PHP, HTML and Javascript. Connection diagram included in Readme.

Primary LanguagePHP

Robotics Level 1 : Make Robot with Raspberry Pi | Web Controls

Read the article: Watch the video on Yotube:

In this first level, we will make a basic robotic platform. The hardware and software of this robotic platform will be enchanced progressively to conduct variety of DIY experiments.

Circuit Diagram of the Robot

Hardware Components used in the robot are:-

  • Raspberry Pi 3A+
  • MT 3608 DC-DC up converter
  • L293D Motor Driver Module
  • DC Motor, 100 RPM, 12 V
  • Battery Bank with 2 USB slots

Code Files

The code of this robot is placed inside the folder 'earthrover'. You need to install a webserver Apache and PHP on Raspberry Pi to use this code.
Copy the folder 'earthrover' and place it in the public directory of webserver. The path of the folder should now be '/var/www/html/earthrover'

Raspberry Pi configurations prior running the code

  1. Set permissions
  • sudo chmod 777 -R /var/www/html/earthrover
  1. Modify the sudoer file to allow executing python files from php files
  • $ sudo nano /etc/sudoers
  • paste following at the end of file and save (as shown in picture below)

pi ALL=(ALL) NOPASSWD: ALL
www-data ALL=(ALL) NOPASSWD: ALL