MikesMachines / MilkIt

DIY Milker and Receiver docs
GNU General Public License v2.0
25 stars 3 forks source link

Dear Mike #1

Open Mrpomfi opened 1 year ago

Mrpomfi commented 1 year ago

What a great project. I would like to build it. Is there any chance that you provide the code for the App to control the stepper motor?

Best regards

MikesMachines commented 1 year ago

Sorry for being so late - there's temp code for the stepper here: https://github.com/MikesMachines/machinecode/tree/temp

It requires Blynk to trigger the virtual pins. I'm not sure how to share the Blynk aspect - there's no code, but there's configuration that needs to be done online to generate a key to use in code. It's free and easy. Their app is a no-code app generator. You just drag widgets and arrange them as you like.

The code really needs to be moved to hardware timers / interrupts. There are a lot of workarounds to not block Blynk or the stepper updates that are no longer needed. Hopefully I'll be able to update it all soon :)