The backend for the Joy-it-Grab-it-robot02 robot arm. You can use it with my Flutter app.
Install the backend on your raspberry pi with the MOTOPI board.
sudo pip3 install -r requirements/requirements.txt
"0": {
"id": 0,
"pwm_min": 600,
"pwm_max": 2400,
"pwm_neutral": 1500,
"pos_min": -1000,
"pos_max": 1000,
"pos_neutral": 0
},pos_min, pos_max and pos_neutral are the values for the frontend sliders. If you edit these values, you need to edit the slider values in the frontend too.
pwm_min, pwm_max and pwm_neutral are the values for the servos. Change these values so that the servos only move so far that nothing is giong to break.
After you run the main.py, you can see the API endpoint in your terminal:
* Serving Flask app 'app.robot' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://xxx.xxx.xxx.xx:5000/ (Press CTRL+C to quit)Then you have to add the API endpoint to the app.