For any discussion not specifically related to your project
By infinityedge
#26847
Any thoughts on the feasibility of porting speeduino to the ESP32 chip?

https://www.espressif.com/en/products/h ... 2/overview

https://www.espressif.com/sites/default ... eet_en.pdf

  • 802.11 wifi
  • Bluetooth 4.2
  • Dual core (one core for wireless, one for user code)
  • 448kb ROM, 520kb RAM
  • multiple timers, including RTC
  • 34 GPIO
  • 12-bit ADC; 18 channels
  • 2x 8-bit DAC
  • 10x touch sensors
  • 4x SPI
  • 2x I2S
  • 2x I2C
  • 3x UART
  • 1 host (SD/eMMC/SDIO)
  • 1 slave (SDIO/SPI)
  • CAN 2.0
  • IR
  • Motor PWM
  • 16 channel LED PWM
  • Hall sensor
  • crypto acceleration
  • Support for 32 interrupt vectors from about 70 interrupt sources
  • Support for up to 4MB external SRAM memory mapped to CPU
  • 4 general purpose 64bit timers
  • 3 watchdog timers
  • pulse counter
There is an arduino core software package that covers everything except AnalogWrite (and that is on its way):

https://github.com/espressif/arduino-esp32

This supports ArduinoIDE and PlatformIO.

There is a fairly active community: https://www.esp32.com/



The kicker? An easily solderable module with incorporated antennas & associated hardware from Mouser: $3.80

https://www.mouser.com/ProductDetail/Es ... jIQAvD_BwE

This could be an interesting alternative to Teensy, unless I'm missing a deal breaker somewhere in the datasheet.
By noisymime
#26859
I looked at these a while back as I know a lot of people really like them, but completely failed to find any technical documentation about the timers on these chips. It looks like there's been a little bit of documentation written for them now, as well as as few usable timer libraries which didn't use to exist, so that's promising.

They do appear to only have a very limited number of timers though. Not sure if there are 'nice' ways to multiplex them in the esp32 libs or whether it would be something that would have to be written into Speeduino to match the functionality on other MCUs.
By infinityedge
#26860
noisymime wrote: Sat Jul 07, 2018 1:45 am They do appear to only have a very limited number of timers though.
How many timers does speeduino use?

ESP32 timer API:

https://esp-idf.readthedocs.io/en/lates ... timer.html

A bit more info in the technical manual:

https://www.espressif.com/sites/default ... ual_en.pdf

Then there is the option of FreeRTOS software timer library given that there is RAM and MIPS to spare...

https://www.freertos.org/FreeRTOS-Softw ... tions.html

Actually, this seems to be the solution: arbitrary number of high resolution timers

https://esp-idf.readthedocs.io/en/lates ... timer.html
By Kubs
#54076
any breakthrough? there is major issue with teensy availability/price for this moment, esp is still widely available,
By theonewithin
#54100
Kubs wrote: Tue Nov 30, 2021 12:40 pm any breakthrough? there is major issue with teensy availability/price for this moment, esp is still widely available,
No.

No breakthrough. No point.

Do you need Teensy for a particular reason?

Can you go STM32 instead?
By dazq
#54152
JanKovalski wrote: Sun Dec 05, 2021 10:31 am
theonewithin wrote: Wed Dec 01, 2021 10:31 pm Can you go STM32 instead?
Is STM32F411CEU6 fully supported? Do you know of any Speeduino STM32 THT board?
A chap going by the user vitorboss is running a vehicle on a 411 MCU. He designed an adaptor to fit the new style blackpill that have the 411 fitted . Get on slack and post a message to him for the design files
By Kubs
#56313
Well, due to lack of any alternative I'll try to force the speeduino to work on esp. Teensy is unavailable, bluepill is not supported and there is simply no other board with CAN support than esp.
I have spoken with few friends that can dig into embedded, I hope this is doable wiht their help.
User avatar
By pazi88
#56315
What's wrong in using STM32f407? It's fully supported and available currently. Though for more expensive price than usual. There has been activity on esp32 ports, but it's not easy to that and haven't heard about those for a while.
User avatar
By JanKovalski
#56316
Kubs wrote: Mon Apr 04, 2022 6:37 pmTeensy is unavailable
There's over 60 Teensy 4.1 boards in a local store. Should I buy them all and resell to speeduino community around the world?

Hi there, I'm doing preliminary research and hope[…]

BMW E23 M30B28

Where did the plugs come from? I've heard there ar[…]

Injected 2 stroke Bultaco

Alternator testing. Its a 3 phase circa 200w alter[…]

NO2C crank signal issues

Once again PSIG, thank you. Note this is set up fo[…]

Still can't find what you're looking for?