Python Forum

Full Version: Programming robots using Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Forum,
I hope I'm in the right part of the forum to post my question, pls correct me if I'm wrong.

I'm learning Python and I want to buy a product like Raspberry Pi where I get the Hardware and also instructions on how to program the robot using Python3.

I bought a kit of hardware from Makeblock (Motherboard, wheels, motors, movement sensor etc) but I'm not sure if it's compatible with what I want to do.

I'm happy to start over with a kit that includes the robot hardware (Motherboard, wheels, motors, movement sensor etc and full instructions on a course on programming it.

The idea is to help my understanding of the Python language.

All helpful suggestions welcomed.

Smile
Here's a few sites to visit:

https://learn.adafruit.com where you will find robotics projects like https://learn.adafruit.com/simple-raspberry-pi-robot
and SparkFun: https://www.sparkfun.com/categories/31
also Pololu: https://www.pololu.com/search?query=robotics&x=0&y=0

finally:
google "robotic programming using python and raspberry pi"
and you'll get a list.

This will give you some ideas
(Oct-30-2021, 04:32 PM)Larz60+ Wrote: [ -> ]Here's a few sites to visit:

https://learn.adafruit.com where you will find robotics projects like https://learn.adafruit.com/simple-raspberry-pi-robot
and SparkFun: https://www.sparkfun.com/categories/31
also Pololu: https://www.pololu.com/search?query=robotics&x=0&y=0

finally:
google "robotic programming using python and raspberry pi"
and you'll get a list.

This will give you some ideas
Thanks Larz60+,
I've had a look and my hardware looks very similar to the basic robots kit.
The Makeblock hardware kit is designed to use Scratch and also Python.
Do you have any suggestions as to setting this Makeblock robot up to be programmed by Python.
Link to Makeblock product that I have.
https://www.amazon.com.au/Makeblock-Educ...DZPT&psc=1

Thanks Peter
Hi,

If you are really starting out with python and robots,
buy a micro:bit , program it with (micro)python, and use it with
a bit:bot. Endless fun.

Paul
I found this: https://github.com/xeecos/python-for-mbot#installation

Instructions are for Debian Linux (Ubuntu, Linux Mint, etc.), and will vary somewhat for windows.

create a work rnvironment for mbot:
from command line:
  1. Create virtual environment: python -m venv venv
  2. Activare virtual environment . ./venv/bin/activate
  3. Install packages:
    1. upgrade pip: pip install --upgrade pip
      pip install cython
      pip install pyserial
      pip install hidapi

    2. install git if you don't have it: sudo apt install git-all
    3. then install mbot python: git clone https://github.com/xeecos/python-for-mbot
    4. change to 'python-for-mbot' directory cd python-for-mbot
    5. Read the readme.md file
  4. Follow remainder of installation here: https://github.com/xeecos/python-for-mbot#installation