Skip to content

BluPants is a Python based module for coding robots. Visit blupants.com for more details.

Notifications You must be signed in to change notification settings

blupants/blupants

Repository files navigation

BluPants: Web Based IDE for Coding Robots

Our goal is make robotics and programming available to anyone.

BluPants is the most effective and fun way to learn coding. It is a free out of the box web based coding environment (IDE) that works with a variety of robots.

Pre-readers can start with the basic block-based visual programming language. Readers can use the intermediate block-based visual for coding and gradually advanced to the Python mode programming language.

All that using the same BluPants IDE with any of the supported robots.

Visit blupants.com for more details.

Welcome

Let's build a community for any child across the globe from the age of 5 to 99.

Compatibility with a variety of existing robotics hardware can make it affordable, at the same time we give unlimited flexibility to expand BluPants as far as the human imagination can go.

Check out this video and see how you can take coding classes to the next level with real robots. We show how students can start with block-based visual programming language and gradually advance to Python.

BluPants Python Documentation

The blupants Python module documentation can be found here. Check all available functions for coding your robot with Python.

Get a Robot

Visit blupants.com/robots or our Hackster.io page for complete instructions on how to get your own robot up and running.

Start Coding

Once you get your robot on and connected to the internet, simply visit blupants.org and start coding.

You may also visit our blupants.com/lessons to get some ideas on how code with BluPants.

Dependencies

BluPants is based on the following projects:

Python

BeagleBone

Raspberry Pi

LEGO® MINDSTORMS: ev3dev

Blockly

Manual Deployment

Run the following commands to get BluPants running in your BegaleBoneBlue:

$ ssh beaglebone.local
Make sure Python is installed
$ python3 --version
$ sudo su -
$ cd /root
Make sure rcpy is installed
# python3 -m pip install rcpy --upgrade

Disable usb0 gateway so ipv4 gateway gets assigned to wlan0
# vi /etc/network/interfaces
Comment the following line:
#    gateway 192.168.7.1

https://github.com/StrawsonDesign/librobotcontrol
# git clone https://github.com/blupants/blupants.git
# git clone https://github.com/StrawsonDesign/librobotcontrol.git
# cp ./librobotcontrol/examples/src/rc_balance.c ./librobotcontrol/examples/src/rc_balance.c.ORIGINAL
# cp ./blupants/src/c/rc_balance.c ./librobotcontrol/examples/src/rc_balance.c
# cd librobotcontrol
# make
# cp ./examples/bin/rc_balance /usr/bin/rc_balance_dstr
# cd
# mkdir -p /etc/robotcontrol
# cp ./blupants/src/bash/*.sh /etc/robotcontrol/
# chmod +x /etc/robotcontrol/*.sh
# cp ./blupants/etc/blupants.service /etc/systemd/system/
# mkdir -p /var/lib/cloud9/BluPants
# cp ./blupants/src/python/reload.py /var/lib/cloud9/BluPants/
# chmod +s /usr/bin/python3
# apt-get install espeak
# python3 -m pip install pyttsx3

(If fails, try specific version)
# python3 -m pip install pyttsx3==2.81

# apt-get install autoconf-archive
# python3 -m pip install blupants --upgrade
# git clone https://github.com/brgl/libgpiod
# cd libgpiod
# ./autogen.sh --enable-tools=yes --enable-bindings-python --prefix=/usr/local

Or in the case you get an error because libgpiod needs a newer kernel version, use older libgpiod
https://github.com/aquaticus/nexus433/issues/21
# wget https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.1.1.tar.gz
# tar xvf libgpiod-1.1.1.tar.gz
# cd libgpiod-1.1.1
# export PYTHON_VERSION=3
# ./autogen.sh --enable-tools=yes --enable-bindings-python --prefix=/usr/local

# make
# make install
# mv /usr/local/lib/python3.5/site-packages/* /usr/local/lib/python3.5/dist-packages/.
# echo "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
# cd
# cp -r blupants/src/python/blupants/* /usr/local/lib/python3.5/dist-packages/blupants/
# cp /usr/local/lib/python3.5/dist-packages/blupants/blupants.json /root/
# rm -rf /usr/local/lib/python3.5/dist-packages/blupants/*.pyc 
# systemctl daemon-reload
# systemctl enable blupants.service

About

BluPants is a Python based module for coding robots. Visit blupants.com for more details.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages