PR2040 Spindle Sync? #4
Replies: 3 comments
-
|
It would but likely not with my current code as it uses floating point math in an interrupt context. But then there is a second core doing nothing... Signal conditioning is not needed since inputs can be configured for schmitt trigger mode ? I have photointerrupters for the encoder, these can be connected directly? Same goes for Hall sensors? Note that I am not too keen to add the more advanced stuff such as spindle sync support to every driver, code maintenance and support needs to be factored in. Some of the advanced functionality should be reserved for higher end processors and breakout boards? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
-
|
@undingen I should be finished, but be aware that I have only tested the code with my simulator - not in a lathe. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In looking at the Pico, would be possible to do spindle sync? The design I have for a breakout board has I2C (GP19-21) and SPI (GP10-13) headers. Each has at least 3 contiguous GPIO pins. It is possible (via PIO?) to do spindle sync with either of those pin sets. Of course, you lose the underlying I2C or SPI bus. For I2C, you also loose EEPROM. But I could imagine a scenario where users might make that trade-off. I could imagine a small daughter card that has connectors and does any necessary signal conditioning.
Beta Was this translation helpful? Give feedback.
All reactions