Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running clockkit on Arduino #23

Open
pauljurczak opened this issue Apr 13, 2024 · 2 comments
Open

Running clockkit on Arduino #23

pauljurczak opened this issue Apr 13, 2024 · 2 comments

Comments

@pauljurczak
Copy link

pauljurczak commented Apr 13, 2024

I see Arduino on the roadmap. Is it possible to run clockkit on Arduino compatible board with a pretty beefy microcontroller, i.e. Atmel SAMD51P20? My goal is to synchronize clocks (find dt) between a PC and SAMD51P20. I need only about 1ms accuracy.

@camilleg
Copy link
Owner

camilleg commented Apr 15, 2024

That MCU's 120 MHz with FPU is adequate! Can you suggest a way to cross compile for it? I see plenty of guides for ARM in general, but you'd know more than me about your target platform, in particular its ethernet stack.
(You're a man after my own heart, preferring debuggable geometric algorithms to opaque ML unrelated to what originally drew us to programming.)

@pauljurczak
Copy link
Author

you'd know more than me about your target platform

I wish. I just bought that PLC and will start programming it soon. My plan is to use Arduino IDE 2 https://docs.arduino.cc/software/ide/, as this is the easiest way to handle C++ dependencies and has enough functionality to develop a small application I need. Arduino or PlatformIO extension for VS Code provides more full-fledged IDE functionality. I never added a low level library built from scratch to Arduino. Not used the Ethernet stack yet, hope it will be problem free.

I discovered a way to bypass clock synchronization for my project, so this request is no longer urgent, but could be useful in the future. I'm willing to help you with testing, if you decide to support SAMD51. The hardware I have is:

https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/productivity_open_(arduino-compatible)/controllers_-a-_shields/p1am-200
https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/productivity_open_(arduino-compatible)/controllers_-a-_shields/p1am-eth

SAMD51P20 is connected to Wiznet W5500 Ethernet Controller via High Speed Serial Peripheral Interface (SPI MODE 0, 3).

I also have Industruino with Ethernet module: https://industruino.com/page/home. It uses a less powerful SAMD21G18, though. I can run the tests on it.

(You're a man after my own heart, preferring debuggable geometric algorithms to opaque ML unrelated to what originally drew us to programming.)

Thank you for kind words, doubly appreciated by a fellow traveler facing prevailing headwinds in today's hype filled world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants