Home / Uncategorized / Agobo Software

Agobo Software

Software for Agobo

Python

You can download the latest python software: as a RAR file, or from GitHub

Alternatively, you can use the following commands from your Raspberry Pi in the home folder. (open LXTerminal from desktop):

  • wget http://4tronix.co.uk/agobo.sh -O agobo.sh
  • bash agobo.sh

 

Files included

  • agobo.py This is the python library module, see the first few lines of the library for listing of all the exposed functions for controlling motors, LEDs and reading sensors
  • motorTest2.py – use the arrow keys on your keyboard to control the direction and speed of the motors
  • irTest.py – check the state of the IR line sensors
  • sonarTest.py – print the distance using the UltraSonic sensor
  • ledTest.py – flashes the white LEDs on Agobo. NOTE: This does not operate the neopixels on Agobo2, see the note below
  • switchTest.py – shows the state of the mode switch once per second
  • neopixel.py and strandtest.py – produce pretty patterns on the neopixel attached to PlusPlate and any extended ones see Adafruit’s blog for info

 

Setting up Agobo2 Neopixels

Before you can use the neopixels on Agobo2, you will need to install the necessary drivers. This is the same operation as for the PlayHAT, so let’s use the instructions for that. You can always move the files over to your Agobo folder afterwards

Ensure your Raspberry Pi is connected to the internet

$ sudo apt-get install git$ git clone https://github.com/4tronix/PlayHAT
$ cd ~/PlayHAT
$ sudo apt-get install python-pip python-dev
$ sudo python setup.py install

Now you can run the strandtest.py demo as follows:
$ sudo python strandtest.py

Comments are closed.