https://github.com/elerac/pd30la-mbed
Control polygon laser scanner (PD30LA) with Mbed
https://github.com/elerac/pd30la-mbed
mbed
Last synced: 11 months ago
JSON representation
Control polygon laser scanner (PD30LA) with Mbed
- Host: GitHub
- URL: https://github.com/elerac/pd30la-mbed
- Owner: elerac
- License: mit
- Created: 2021-08-27T07:00:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-27T08:35:43.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T04:41:15.920Z (over 1 year ago)
- Topics: mbed
- Language: C++
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PD30LA Mbed
Control polygon laser scanner ([Nidec, PD30LA](https://www.nidec-copal-electronics.com/us/product/list/017/)) via [NUCLEO-F303K8](https://os.mbed.com/platforms/ST-Nucleo-F303K8/).

```cpp
#include "mbed.h"
#include "pd30la.h"
PD30LA pd30la = PD30LA(PB_5, PF_0); // pinStartStop, pinExtClock
int main()
{
pd30la.setRotationSpeed(2000.0f); // [r/min]
while (1) {
pd30la.start();
wait(2);
pd30la.stop();
wait(2);
}
}
```