An open API service indexing awesome lists of open source software.

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

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/).

![](documents/circuit-diagram.jpg)

```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);
}
}
```