Giter VIP home page Giter VIP logo

chetanmadan / arduino-robot-control-using-python-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hardik0330/arduino-robot-control-using-python-script

0.0 1.0 0.0 5.86 MB

In this project I am using a Pc to send commands to an Arduino based Robot. The transmitter consists of an RF 433 MHz Transmitter module connected to an Arduino Uno / Pro mini / Nano / Mega.The Transmitter Arduino is connected to a laptop/PC via a USB cable for Serial Communication. In our case the Receiver Arduino is a being used to control a Differential Drive Robot. The Receiver Arduino is mounted with an RF 433MHz Receiver Module.

C++ 29.85% Python 70.15%

arduino-robot-control-using-python-script's Introduction

Arduino-Robot-Control-using-Python-script

In this project I am using a PC to send commands to an Arduino based Robot. The transmitter consists of an RF 433 MHz Transmitter module connected to an Arduino Uno / Pro mini / Nano / Mega.The Transmitter Arduino is connected to a laptop/PC via a USB cable for Serial Communication. In our case the Receiver Arduino is a being used to control a Differential Drive Robot. The Receiver Arduino is mounted with an RF 433MHz Receiver Module.

Steps for Running Python Script

  • To Execute the Python Script we need to install Pygame library.
  • You need pip(package installer for python) to install pygame library.
  • If you don't have pip installed in your system, install pip from here.
  • run command in terminal or cmd pip install pygame or sudo pip install pygame.
  • to run the script run the command in terminal or cmd python Python_script_transmitter.py.

Connections for Transmitter circuit

  • The arduino remains connected via USB cable to the laptop/PC running the python script at all times.
  • connect +5v terminal of arduino to the Vcc terminal of RF_TX(transmitter) module.
  • connect Gnd terminal of arduino to the Gnd Terminal of RF_TX(transmitter) module.
  • connect D11 terminal of arduino to the Data terminal of RF_TX(transmitter) module.
  • connect the antenna terminal of RF_TX(transmitter) module to an Antenna.(this connection is OPTIONAL)
  • The connections are illustrated in the Transmitter wiring diagram.png.

Connections for the Receiver circuit

  • The receiver arduino is standalone, so it is powered by an external 9V battery.
  • connect +5v terminal of arduino to the Vcc terminal of the RF_RX(receiver) module.
  • connect Gnd terminal of the arduino to the Gnd terminal of the RF_RX(receiver) module.
  • connect the D11 terminal of the arduino to the Data terminal of the RF_RX(receiver) module.
  • connect the antenna terminal of RF_RX(receiver) to an Antenna.(this connection is OPTIONAL)
  • connections for the Motor Driver
    • connect the D2 terminal of the arduino to Motor 1 A terminal of Motor Driver.
    • connect the D3 terminal of the arduino to Motor 1 B terminal of Motor Driver.
    • connect the D4 terminal of the arduino to Motor 2 A terminal of Motor Driver.
    • connect the D5 terminal of the arduino to Motor 2 B terminal of Motor Driver.
    • connect the Motor Driver ext_supply terminal to +9V terminal of the battery.
    • connect the Motor Driver Gnd terminal to the Gnd terminal of the battery.
  • connections are well illustrated in the Receiver wiring diagram.png.

Installing Radiohead library

  • We need to install Radiohead library for arduino to run the arduino sketches.
  • Download Radiohead Library from here.
  • Extract the zip file and move the 'Radiohead' folder to Documents/Arduino/Libraries folder.

Final Project picture > Arduino Based Robot.jpg

arduino-robot-control-using-python-script's People

Contributors

chetanmadan avatar hardik0330 avatar

Watchers

 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.