jhdewitt / sltk

An OpenCV-based structured light processing toolkit.
MIT License
251 stars 63 forks source link

Turn Table #11

Open prahjister opened 6 years ago

prahjister commented 6 years ago

Do you want me to work on the turntable...if so what hardware do you have?

jhdewitt commented 6 years ago

Turntable functionality is essentially complete; the firmware is super basic and only uses "direction" and "number of steps" as input. Will add (messy) arduino code.

Hardware I used: sparkfun NEMA 17 stepper motor sparkfun hub spacer sparkfun Big Easy Driver sparkfun teensy 2.0++ (any arduino compatible board with digital pins should be fine) amazon 12" lazy susan

jhdewitt commented 6 years ago

Here is arduino code: teensy_turntable.ino

It's pretty ugly, and probably hard to interpret without some sort of reference pictures. Including it for completeness even though it's essentially useless for now. Eventually I plan to write a basic tutorial in wiki about this; if only there were a cheap usb powered one available off the shelf.

prahjister commented 6 years ago

hmm that seems like a lot of code. I might take a stab at it. it doesnt look like you are using software serial connection to communicate?

jhdewitt commented 6 years ago

can't advise messing around with it too much since it will probably just give headache ;)

Correct on not serial; rather than serial I chose USB HID which allows reliable identification of device by vendor id etc. more info @ https://www.pjrc.com/teensy/rawhid.html

prahjister commented 6 years ago

Check this out

Came with ciclops I'm reviewing.

All in one board with stepper driver and uno

https://www.ebay.com/i/123039890699