Python library to communicate with STM32 for loading FPGA and camera sensors (OpenMOTION).
Project description
Overview
This repository contains the code used to interface with an OpenMotion sensor module and OpenMotion Console. The sensor module runs the code contained in the motion-sensor-fw repository on an STM32H7 processor. The programs here communicates with the modules over a USB serial connection.
A library called omotion is imported in many of the python scripts listed here to aid communication with the Sensor Module.
Getting started
- Install requirements.txt (
pip install -r requirements.txt) - Install libusb for your system requires libusb to be installed, for windows install the dll to c:\windows\system32, download the correct dll from github libusb Releases
- Plug in your aggregator module. Please wait 10 seconds for it to boot up before continuing.
- Run
python multicam_setup.py- this will flash each camera sensor one by one. Alternatively, you may flash just a single camera sensor by usisingpython flash_camera.py 1- this will flash just camera 1 - Run
python monitor.py 1- this will flash the camera with a few parameters (test modes, exposure times, gain settings, etc), start the camera streaming, start the frame sync generating, and then put the cameras into streaming mode. It will then recieve the histogram data for the defined number of seconds then close down. Modify the parameters at the top of this file if you want to adjust the gain, exposure time, etc. Change the number in the command line arguments to change the camera you'd like to interrogate. Cameras are numbered 1-8 and correspond to J1-J8 on the aggregator board.
from repo root rebuild and install
python -m pip install --upgrade build twine python -m build # creates wheel + sdist under dist/ python -m pip install --force-reinstall dist/openmotion_sdk-1.3.3-py3-none-any.whl
quick runtime check (on Windows box with your device bound to WinUSB/libusbK)
python -c "import usb, omotion.usb_backend as ub; print(ub.get_libusb1_backend())"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openmotion_sdk-1.5.5.tar.gz.
File metadata
- Download URL: openmotion_sdk-1.5.5.tar.gz
- Upload date:
- Size: 40.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10c1aa881e44d788c44105f8e15c2c41be48b59bae9bddc2092589a368e97c07
|
|
| MD5 |
078bbb29548e654bba6703e61d6edcfe
|
|
| BLAKE2b-256 |
a27d4bebb53aec9e3346edce311a3136194d194c84dfb0a5b0c9bbf1207a619b
|
Provenance
The following attestation bundles were made for openmotion_sdk-1.5.5.tar.gz:
Publisher:
publish-pypi.yml on OpenwaterHealth/openmotion-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmotion_sdk-1.5.5.tar.gz -
Subject digest:
10c1aa881e44d788c44105f8e15c2c41be48b59bae9bddc2092589a368e97c07 - Sigstore transparency entry: 1405905004
- Sigstore integration time:
-
Permalink:
OpenwaterHealth/openmotion-sdk@176755b632a5719d190bf6f721d40e510c98c086 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OpenwaterHealth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@176755b632a5719d190bf6f721d40e510c98c086 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file openmotion_sdk-1.5.5-py3-none-any.whl.
File metadata
- Download URL: openmotion_sdk-1.5.5-py3-none-any.whl
- Upload date:
- Size: 6.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73740a0d4ca699dddf953e0edcb967534d14cdc4e3b30f63d697d3711e919b88
|
|
| MD5 |
8d0e1b64f853fc11f7ba3d04b475c777
|
|
| BLAKE2b-256 |
d7c4125e89ba5cb6b634f5940c7568d00aa308bd9c5bcece2ff57ed458e42caf
|
Provenance
The following attestation bundles were made for openmotion_sdk-1.5.5-py3-none-any.whl:
Publisher:
publish-pypi.yml on OpenwaterHealth/openmotion-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmotion_sdk-1.5.5-py3-none-any.whl -
Subject digest:
73740a0d4ca699dddf953e0edcb967534d14cdc4e3b30f63d697d3711e919b88 - Sigstore transparency entry: 1405905014
- Sigstore integration time:
-
Permalink:
OpenwaterHealth/openmotion-sdk@176755b632a5719d190bf6f721d40e510c98c086 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OpenwaterHealth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@176755b632a5719d190bf6f721d40e510c98c086 -
Trigger Event:
workflow_dispatch
-
Statement type: