Electronic Chess Board: Arduino Source-Code

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Ras
Posts: 2487
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Electronic Chess Board: Arduino Source-Code

Post by Ras »

dkl wrote: Sat Apr 03, 2021 5:15 pmThat's a really neat approach and so easy to implement. Updated my code, and it works like a charm!
That's great! :-)
Is your code portable?
Yes, it has a layered architecture that encapsulates the hardware. In fact, there is even a PC terminal mockup (not the UCI version) just by switching out the hardware layer. That's what I'm using e.g. for embedded UI work because it's a lot faster than flashing the firmware over and over, and I have lots of debug output.
In particular, would it potentially run on an Arduino Due (that's a Atmel SAM3X8E ARM Cortex-M3).
In priciple yes, but that chip has only half as much RAM. So some depth recursion levels would have to go, and cutting down on the hashtables would be required. I'm also not sure whether that chip has battery buffered RAM available for saving games and configuration across power cuts.
Not an STM32, but with 84 Mhz should have enough power. And lot's of ports...
The ports limit is not with the STM32 itself, only with the Olimex mainboard because it's using the LQFP64 package of the chip.
Rasmus Althoff
https://www.ct800.net