Giter Club home page Giter Club logo

robotics-level-2's Introduction

Visit Website: Youtube Channel:

Robotics Level 2 : Interfacing Camera, Lights, Ultrasonic Distance Sensor and Speaker with robot

Building upon the code created in Robotics Level 1, this repository contains code to interface the robot with additional hardware such as PiCamera, transistors (for switching 12V high brightness LEDs), Ultrasonic Distance Sensor and Speaker (for text to speech)

The code for interfacing the additional hardware is placed in the following respective folders inside 'earthrover' directory:-

Further, created a Web GUI or Web Control Panel for the robot. Using this panel, user can interact with the robot and control its hardware through a browser.

Brief overview of the code present in this repository is as follows:-

TypeNameDescriptionMore
foldercamera_lightsThis folder contains code for streaming video using Pi Camera module and interfacing GPIO pins with Transistor switching circuit. The live video feed can be monitored on the Web Control Panel. The panel also has controls to switch ON/OFF the robot lights and camera.Read Article for detailed code explaination and circuit diagram
folderrange_sensorThis folder contains code for interfacing Raspberry Pi with Ultrasonic Range Sensor and associated Web controls.The folder contains python files to control Ultrasonic Distance Sensor HC-SR04 for measuring the distance from an obstacle. The distance measured by the sensor is displayed on the Web Control Panel when the sensor is turned ON. The robot is programmed to move backwards in case it detects an obstacle within 30 cm
folderspeakerThis folder contains code for Speaker interface (Text to Speech functionality and associated Web Controls. User can type the text on the Web Control panel which is passed to the robot over wifi LAN. The text is converted to robotic speech using ESPEAK module inside Raspberry Pi and spoken out through a mini speaker connected to the audio port of Raspberry Pi
foldercsscontains CSS files used in "index.php" and "remote.php" files
folderjscontains Javascript files used in "index.php" and "remote.php" files
folderpwmcontains Python files for speed control of DC motors
fileindex.phpThe main file resposible for rendering Web Control Panel GUI
fileremote.phpThis file generates the direction and speed control GUI. It is embedded inside the "index.php" file
filevars.php A file with utility functions. These functions interact with GPIO pins for achieving robotic controls
fileajax_direction.phpreceives direction data from client and calls relevant function in "vars.php"
fileajax_speed.phpreceives speed data from client and calls relevant function in "vars.php"
fileutil.pyThis file also has utility functions (similar to "vars.php") implemented in Pyhton. It is used when robot's direction needs to be changed programatically. Example: Obstacle avoidance implemented in "range_sensor" folder

robotics-level-2's People

Contributors

jiteshsaini avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.