Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.
/ motorbench Public archive

Test motors with sensors installed at the workbench

License

Notifications You must be signed in to change notification settings

polibacorse/motorbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motorbench

What is Motorbench?

Motorbench helps engineers test motors using sensors such as the encoder, the flow and the pressure. The last two sensors are expressed in function of the encoder behaviour and are displayed on an animated plot.

Technical details

Encoder is expressed in degrees, flow in kg/h and pressure in kPa.

The software is written in C (for Arduino) and Python (Front-end). The front-end uses matplotlib to provide plotting functionality and uses numpy for high performance memory management.

Cables got lost? Need to start from scratch? Please read the wiki to see the configuration.

System requirements

The software was designed and tested with Python 3.6. To install the required libraries just type on the terminal

$ pip install -r requirements.txt

pip is the Python Package Manager and it must be installed to provide an easy package installation.

How to run

Just plug Arduino on the USB port and do

$ python motorbench.py

NOTE: if the script doesn't see the Arduino, just replace vid and pid codes at motorbench.py.

When you have enough data, press CTRL+C on the terminal to stop the program; it will automatically generate 2 CSV files, one for the flow and one for the pressure. nan values should be treated as values not acquired.

TODO list

  • Practical tests
  • Customise plot toolbar by removing buttons
  • Add "save graph" button to save CSVs data and a png with Flow/Pressure curves
  • If the user close the plot window, close the entire application

Known bugs

  • Memory leak of ~100 kB every 30 s. This can cause instability and saturation.

About

Test motors with sensors installed at the workbench

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages