<<<<<<< HEAD
=======
This project consists of multiple Python scripts designed to interface with an STM32 microcontroller and perform various tasks such as capturing camera images, tracking objects, and reading gyroscope and accelerometer data. The scripts utilize libraries like OpenCV, Jetson Inference, and PySerial for handling camera input, object detection, and serial communication, respectively.
- camera.py
- cameraTracking.py
- motor_imu.py
- test.py
- Python 3.x
- OpenCV
- NumPy
- PySerial
- Jetson Inference
- Jetson Utils
-
Clone the repository:
git clone https://github.com/NadiaKhodaei/gyrodataStm32.git cd gyrodataStm32
-
Install dependencies:
pip install opencv-python numpy pyserial jetson-inference jetson-utils
This script captures video from the default camera and displays it in a window.
Usage:
python camera.py
This script uses a CSI camera and Jetson Inference to detect objects and control a servo motor to center the detected object.
Usage:
python cameraTracking.py
This script captures video, detects objects using Jetson Inference, reads IMU data from an STM32 microcontroller, and controls a servo motor to center the detected object.
Usage:
python motor_imu.py
This script connects to an STM32 microcontroller via serial communication, sends commands to the microcontroller, and processes the received gyroscope data.
Usage:
python test.py
This script captures video from the default camera and displays it. Press 'q' to exit the video display.
This script uses a CSI camera and a pre-trained model from Jetson Inference to detect objects. It communicates with an STM32 microcontroller to control a servo motor based on the detected object's position.
This script captures video, detects objects using Jetson Inference, and reads IMU data from an STM32 microcontroller. It controls a servo motor to center the detected object based on the IMU data.
This script connects to an STM32 microcontroller via serial communication, sends commands to the microcontroller, and processes the received gyroscope data. It prints the gyroscope data and performs baseline noise measurement.
master