Python Forum
Programming robots using Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Programming robots using Python (/thread-35411.html)



Programming robots using Python - OscarBoots - Oct-30-2021

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


RE: Programming robots using Python - Larz60+ - Oct-30-2021

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


RE: Programming robots using Python - OscarBoots - Oct-30-2021

(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



RE: Programming robots using Python - OscarBoots - Oct-31-2021

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-Education-Entry-Level-Programming-Mechanical/dp/B07L59DZPT/ref=pd_vtp_4/356-5310449-7482225?pd_rd_w=AIBdc&pf_rd_p=3a11c8f0-dadb-4f02-b5fb-00e628c10865&pf_rd_r=25JT27JME33H2B1F454X&pd_rd_r=322c040a-136e-4f6a-8618-23959b002fe3&pd_rd_wg=K9kqv&pd_rd_i=B07L59DZPT&psc=1

Thanks Peter


RE: Programming robots using Python - DPaul - Oct-31-2021

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


RE: Programming robots using Python - Larz60+ - Oct-31-2021

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