gin66 / FastAccelStepper

A high speed stepper library for Atmega 168/328p (nano), Atmega32u4, Atmega 2560, ESP32, ESP32S2, ESP32S3, ESP32C3 and Atmel SAM Due
MIT License
282 stars 67 forks source link

Compile for Arduino UNO R4 #236

Open twbrkfd1 opened 4 months ago

twbrkfd1 commented 4 months ago

Compile for UNO R4 WiFi with Renesas CPU (ARM Crotex-M4) fails. The UNO R4 WiFi board has been out for quite a while now!

gin66 commented 4 months ago

Uno R4 apparently offers two uC: Renesas RA4M1 and ESP32-S3. The RA4M1 is not supported, but the ESP32-S3 is. Any chance to move the stepper control to the esp32 ?

twbrkfd1 commented 4 months ago

Interesting to note is that it was Esspressif, creators of the ESP32, who ported the Arduino libraries to their CPU which created an explosion of demand! Don't see that happening at Arduino! Surely customers will want stepper motor support in the UNO R4! Probably will abandon the UNO R4 for serious projects, and just just its 96-LED array (yes they put an array of 12x8 tiny red LEDs on it) device as warning beacon flashlight on my bicycle; Arduino used only RED LEDs! The UNO R4, astonishingly, uses the 240MHZ ESP32 ONLY (internally clocked by a PLL from a 40Mhz XTL) as a WiFi co-processor, and only FOUR PINS are brought out as a serial port. It's one of those what-were-they-thinking designs over there in Italy (turns out Arduino has a vested interest in Renesas); like the 8086 IBM-PC vs the Apple M68000 Mac; IBM's clout shoved the hodgepodge 8086 CPU based PC down our throats in spite of the superior fully 32 bit M68000's linear address space vs the 8086's segmented address space. I already use an ESP32-WROOM32 based UNO clone; Wemos D1 R32 with the fastAccellStepper library to control my steppers. The WeMos is a five year old design. The WiFi is not great and has been superseded by ESP32 versions with improved WiFi radios. The Renesas Ra4M1 (ARM Cortex-M4 core) clocks at 48MHZ. Many libraries have STILL not been ported to the UNO R4 in spite of it being on the market for six months. There is STILL no library basic function to get the time-and-date! I just finished porting code to fetch the time-date and format it for data logging via the NTP time server. Arduino, WHY are you making us reinvent the wheel?