Search found 37 matches

by Iyassou
Thu Jan 16, 2020 12:29 pm
Forum: MicroPython pyboard
Topic: Calling a TimerChannel method in Timer callback
Replies: 3
Views: 534

Re: Calling a TimerChannel method in Timer callback

When I run your example code (with those two lines uncommented), I get the red LED flashing and on my scope I can see the PWM waveform on X1. What firmware version are you using? Hopefully this is a firmware issue then. My Pyboard's on MicroPython v1.10. I did notice that if I set the callback afte...
by Iyassou
Sat Jan 11, 2020 7:19 pm
Forum: MicroPython pyboard
Topic: Calling a TimerChannel method in Timer callback
Replies: 3
Views: 534

Re: Calling a TimerChannel method in Timer callback

I wrote some simple code to test this out: #from micropython import alloc_emergency_exception_buf #alloc_emergency_exception_buf(100) from pyb import Timer, Pin, LED PPR = 2688 #red = LED(1) timer = Timer(5) A = timer.channel(1, Timer.PWM, pin=Pin('X1')) B = timer.channel(2, Timer.PWM, pin=Pin('X2')...
by Iyassou
Sat Jan 11, 2020 6:22 pm
Forum: MicroPython pyboard
Topic: Calling a TimerChannel method in Timer callback
Replies: 3
Views: 534

Calling a TimerChannel method in Timer callback

Hello. I'm currently writing some code that will let me control an incrementally encoded DC motor using the PID algorithm and a Timer. The error that's being fed to the algorithm is the difference between the chosen target position and the incremental encoder's count. The encoder's count is updated ...
by Iyassou
Tue Sep 17, 2019 10:59 am
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 49
Views: 2866

Re: main.py does not appear to working after boot

I had the same issue but with a different ESP32-based board: the ESP32-DEVKITC 32U. As far as I'm aware this is just an ESP32-DevKitC V4 that's based on an ESP32-WROOM-32U. This board comes with 2 buttons next to the microUSB port: EN and BOOT. When the board is plugged into a socket it does not exe...
by Iyassou
Sat Sep 07, 2019 1:21 pm
Forum: ESP32 boards
Topic: ESP32 SPI RAM not initialized
Replies: 4
Views: 317

Re: ESP32 SPI RAM not initialized

I understand now. Thanks for typing out this explanation.
by Iyassou
Sat Sep 07, 2019 9:38 am
Forum: ESP32 boards
Topic: ESP32 SPI RAM not initialized
Replies: 4
Views: 317

Re: ESP32 SPI RAM not initialized

I see. So are the 32Mbits of SPI flash mentioned in the Overview section of this datasheet referring to some other flash storage? Do you know what it is used for?
by Iyassou
Sat Sep 07, 2019 7:04 am
Forum: ESP32 boards
Topic: ESP32 SPI RAM not initialized
Replies: 4
Views: 317

ESP32 SPI RAM not initialized

Hello. I'm having trouble flashing an ESP32 board, the ESP32-DEVKITC 32U, with SPIRAM supporting firmware. I'm using the 2019-05-29, SPIRAM support build and flashing using esptool.py. The commands I used and their outputs: 1) Erasing the flash first python esptool.py --chip esp32 --port COM13 erase...
by Iyassou
Fri Sep 06, 2019 12:08 pm
Forum: Programs, Libraries and Tools
Topic: Unable to read data from GPS using UART
Replies: 1
Views: 1298

Re: Unable to read data from GPS using UART

Replying to this old thread in case you didn't find the answer or any likely problems. You initialise the rx buffer with size 250, and then call pyb.UART.readinto on that buffer 255 times. The documentation for the readinto states that if you specify a buffer only (and not a buffer and integer), it ...
by Iyassou
Sat Aug 25, 2018 5:43 pm
Forum: Programs, Libraries and Tools
Topic: Matrix library for MicroPython
Replies: 31
Views: 3935

Re: Matrix library for MicroPython

Just an aside, what are you using these 3x3 matrices for? At the moment I'm not actively using umatrix. Back when I needed it I wanted to handle RGB and later RGB-IR photosensor measurements for a particular application. I decided to write it because the alternative 350 ms were too costly for me. I...
by Iyassou
Thu Aug 23, 2018 5:13 am
Forum: Programs, Libraries and Tools
Topic: Matrix library for MicroPython
Replies: 31
Views: 3935

Re: Matrix library for MicroPython

You seem to care a lot about time savings. Just wanted it to go as fast as possible :) Coding in C is going to give you the maximum time savings The part about adding your module to the firmware is clear, it's writing the library in C that seems daunting to me. As I've said before, I'm not proficie...