You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

2 years ago
# Profilometer Probe
2 years ago
## Firmware for profilometer probe
2 years ago
### Build
2 years ago
- Build using Makefile inside Firmware folder
2 years ago
- Flash onto hardware using flash option for make command `$ make flash`
2 years ago
### Supported HW:
2 years ago
- Nucleo L432KC
- Arducam 5MP Plus
### HW Setup
Before running code, connect camera module to microcontroler through pins described in .ioc file (open with STM32CubeMX) or in table below.
| Name | Nucleo L432KC | Arducam 5MP Plus |
| ----------- | ------------- | ---------------- |
| SPI SCLK | A4 | SCK |
| SPI MISO | A5 | MISO |
| SPI MOSI | A6 | MOSI |
| SPI CS | D3 | CS |
| I2C SCL | D1 | SCL |
| I2C SDA | D0 | SDA |
You can connect optional Debug LED to A1 pin in Nucleo board.
#### Probe design block Scheme
![alt text](https://github.com/aprochazka/ProfilometerProbe/blob/main/deviceScheme.png?raw=true)
2 years ago
### Current State
2 years ago
2 years ago
- Sends test JPEG image sequence through USB CDC
2 years ago
2 years ago
### Test Current State
2 years ago
2 years ago
- Tested on: Arch Linux
2 years ago
2 years ago
- Inside Receiver folder build using Makefile
- Code counts with CDC device on /dev/ttyACM2 (can be changed in code)
- Run with sudo permission, so that serial port is openable
### Test Script Usage - outdated
2 years ago
- Build test app using provided Makefile and then run the executable
- App will then start saving files received by uart to filesystem
2 years ago
### In progress