To manage your M-BOXE Servo-motor with GUI from a Rapsberry Pi by I2C.
This program is an implementation of the mboxe.py
library, allowing to parameterize and order an M-Boxe whose construction is detailed in the repository 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_MANAGER_TK.py
Main program for setting up your M-BOXE
frame__.py
Description of application frameworks
interface.py
Creating the interface with calls from different frames and the menu
lang__.py
Language files
Python 3.4 is already installed if you use 'python3' instead of 'python', if it's not the case sudo apt-get install python3
.
TKinter is part of standard Python libraries.There is no need to install it.
- 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_TK.py
, or lunch with Python IDE.
Start a reseach:
The M-BOXE list appears in the Mboxe
menu, just select one.
-
Get from Memeory Allows to reload the configuration of the M-BOXE selected in the Manager
-
Set in Memory Allows the manager to go back to the M-BOXE RAM
-
Reload from EEPROM Allows you to reload the configuration saved in the EEPROM into the RAM memory of the M-BOXE and then upload it to the Manager
-
Write in EEPROM Allows the Manager's current configuration to be lowered to the M-BOXE's RAM and then saved in the EEPROM
- Allows you to set the front and rear terminals
- To retrieve the current position with the
Get
button - Send the position setpoint with the
Set
button
Coming Soon
To view the various data recorded by the M-BOXE, see document: [Parameter_M-BOXE](https://github.com/Nao974/M-BOXE/blob/master/doc/Parameter_M-BOXE.pdf).- This data is updated every time the M-Boxes are reloaded by the
Get from Memory
button on the Main frame - The check mark
Real Time
allows a loop playback whose delay and set by the adjoining ruler.