To manage your M-BOXE Servo-motor command line from a Rapsberry Pi by I2C.
This program allows to parameterize an M-Boxe whose construction is detailed in the deposit M-BOXE
Ah_I2C.py
Libraries for I2C protocol from the ADAFRUIT_I2C library
M-BOXE.py
Class defining the M-BOXE object with parameter and function based on the Ah-I2C.py library
M-BOXE_DEMO.py
M-BOXE Motion Loop Demonstration
M-BOXE_MANAGER_CL.py
Program for setting up your M-BOXE
Python 3.4 is already installed if you use 'python3' instead of 'python', if it's not the case sudo apt-get install python3
.
- Comment the line
blacklist i2c-bcm2708
in the file/ etc / modprobe.d / raspi-blacklist.conf
- Install the suite of I2C management tools
apt-get install i2c-tools
- Restart your Raspberry.
Once your M-BOXE is set up and connected to the I2C bus, type i2cdetect -y 1
(replace '1' with '0' with 256MB versions):
Go to folder, then type python3 M-BOXE_MANAGER_CL.py
, enter the address of the M-BOXE
- S to enlarge the State Menu (State)
- D to enlarge the Data menu
- P to enlarge the Parameter menu
To change a data item in the Parameter menu, enter the data number of the data:
You can launch all I2C commands defined in the M-BOXE benchmarks Parameter_M-BOXE.pdf