https://www.youtube.com/watch?v=9vvobRfFOwk
according to this video, Raspberry pi pico uses 2 cores with MicroPython. I should buy pico when it is available in my country.
Search found 18 matches
- Sun Feb 21, 2021 3:54 pm
- Forum: ESP32 boards
- Topic: multi-threading question
- Replies: 19
- Views: 13906
- Sun Feb 21, 2021 10:36 am
- Forum: ESP32 boards
- Topic: multi-threading question
- Replies: 19
- Views: 13906
- Wed Nov 18, 2020 2:52 pm
- Forum: ESP32 boards
- Topic: Timer with microsecond resolution
- Replies: 9
- Views: 7483
Re: Timer with microsecond resolution
For time critic operations native code can be used with microPython; https://docs.micropython.org/en/latest/develop/natmod.html I started to test RMT. I plan to combine RMT and timer interrupts. I have to know the position of the stepper with 1 mm precision while it is moving. When I buffer all puls...
- Tue Nov 17, 2020 11:21 am
- Forum: ESP32 boards
- Topic: Multithreading problem
- Replies: 2
- Views: 1880
Multithreading problem
I have a thread that prints a counter. I also print another counter in the main loop. It works fine.
When a pin interrupt starts, my thread pauses until the interrupt handler code finished. is this normal?
When a pin interrupt starts, my thread pauses until the interrupt handler code finished. is this normal?
- Tue Nov 17, 2020 6:48 am
- Forum: ESP32 boards
- Topic: Timer Interrupt Priority
- Replies: 8
- Views: 4277
Re: Timer Interrupt Priority
I tried creating a thread and using an infinite loop to handle timing on Raspberry Pi with dotnet core. This system will communicate with a PC and an LCD display via I2C. Because of those operations and the garbage collection loop is not stable. I also tried nanoFramework and native code integration...
- Mon Nov 16, 2020 10:50 am
- Forum: ESP32 boards
- Topic: Timer Interrupt Priority
- Replies: 8
- Views: 4277
Re: Timer Interrupt Priority
This is pin output with a timer interrupt. On each timer tick, output toggles. With perfect timing, all pulse width should be the same.
this output is the same before and after sleep change.
this output is the same before and after sleep change.
- Mon Nov 16, 2020 6:47 am
- Forum: ESP32 boards
- Topic: Timer with microsecond resolution
- Replies: 9
- Views: 7483
Re: Timer with microsecond resolution
Thanks, Peter. I think the best way is to have an Arduino as a pulse generator to drive my stepper motor. I can communicate with Arduino and ESP32 via SPI. In that way, I will have hardware interrupt on the Arduino with minimum C++ code and have all control logic on ESP with the freedom of Python.
- Sun Nov 15, 2020 12:10 pm
- Forum: ESP32 boards
- Topic: Timer with microsecond resolution
- Replies: 9
- Views: 7483
Timer with microsecond resolution
Can I use a timer with micro second resolution instead of milli second?
- Sun Nov 15, 2020 12:09 pm
- Forum: ESP32 boards
- Topic: Timer Interrupt Priority
- Replies: 8
- Views: 4277
- Sun Nov 15, 2020 6:18 am
- Forum: ESP32 boards
- Topic: Timer Interrupt Priority
- Replies: 8
- Views: 4277
Re: Timer Interrupt Priority
I display a counter with 1 sec period.
Code: Select all
while True:
self.displayController.print(self.counter, 0, 0)
self.counter += 1
sleep(1)