Search found 21 matches

by dukeduck
Wed Feb 17, 2021 3:25 pm
Forum: Other Boards
Topic: [WEACT_STM32F411CEU6] unable to re-flash firmware
Replies: 5
Views: 1237

Re: [WEACT_STM32F411CEU6] unable to re-flash firmware

Not sure if it's related to your issue - I got my mine two weeks ago and had some trouble getting the board into dfu mode to flash the firmware, so I contacted the customer service of WeAct and they said it's due to the low temperature, and you need to warm up the oscillators and the MCU with your h...
by dukeduck
Wed Jan 20, 2021 5:12 pm
Forum: Other Boards
Topic: [STM32H743VI] Building firmware for STM32H743VIT6
Replies: 1
Views: 718

Re: [STM32H743VI] Building firmware for STM32H743VIT6

I managed to build the firmware. Here is the board definition https://github.com/dukeduck1984/BORINGT ... 32H743VIT6.
by dukeduck
Fri Jan 15, 2021 12:59 pm
Forum: Programs, Libraries and Tools
Topic: Timers and/or uasyncio
Replies: 7
Views: 633

Re: Timers and/or uasyncio

Hi Peter, I have a similar question. In my case, I need to sample at 100us interval with pyboard's ADC - what's the recommended way to have it work with my other codes using uasyncio? Thanks in advance! ... I only very recently started to experiment with at asynchronous coding, so this is helpful. I...
by dukeduck
Sun Jan 03, 2021 7:27 am
Forum: Drivers for External Components
Topic: VL53L1X ToF distance sensor - adapting to micropython
Replies: 17
Views: 4917

Re: VL53L1X ToF distance sensor - adapting to micropython

Thanks a lot. I ordered a few of them, and will test when I get them.
by dukeduck
Fri Jan 01, 2021 2:55 pm
Forum: Drivers for External Components
Topic: VL53L1X ToF distance sensor - adapting to micropython
Replies: 17
Views: 4917

Re: VL53L1X ToF distance sensor - adapting to micropython

Thanks for the link! I was looking for this driver for quite a while. Also, would you provide an example for your change_ide method, say how to correctly initialize 5 sensors? What's the type of the variable new_id? Thanks again. So I'm working on Roz, my bioloid quad walker, and I've built a new he...
by dukeduck
Thu Dec 31, 2020 3:34 pm
Forum: Other Boards
Topic: [STM32H743VI] Building firmware for STM32H743VIT6
Replies: 1
Views: 718

[STM32H743VI] Building firmware for STM32H743VIT6

Hi, I have got an STM32H743VIT6 dev board which I'm trying to build firmware for. I copied the configurations of NUCLEO_H743ZI and started from there. However, there are still some questions I haven't got the answers after hours of searching regarding the config of mpconfigboard.h ... So I turn to t...
by dukeduck
Tue Dec 08, 2020 4:35 pm
Forum: General Discussion and Questions
Topic: Advice needed - optimize performance: converting dictionary to string (csv))
Replies: 4
Views: 640

Re: Advice needed - optimize performance: converting dictionary to string (csv))

This is even faster: key_list = [] item_list = [] for key, item in the_dict.items(): key_list.append(key) item_list.append(item) transposed = [t for t in zip(*item_list)] if not omit_keys: csv_title = delimiter.join(key_list) + end else: csv_title = '' csv_body = str(transposed).strip('[()]').replac...
by dukeduck
Tue Dec 08, 2020 3:32 pm
Forum: General Discussion and Questions
Topic: Advice needed - optimize performance: converting dictionary to string (csv))
Replies: 4
Views: 640

Re: Advice needed - optimize performance: converting dictionary to string (csv))

Well, I found a quicker way to do the convertion - it may not be a nice way, but it does help speed things up. Firstly, I do the transpose by: for key, item in the_dict.items(): key_list.append(key) item_list.append(item) transposed = zip(*item_list) rather than multiple iterations. Then I directly ...
by dukeduck
Wed Dec 02, 2020 9:49 am
Forum: General Discussion and Questions
Topic: Confused about uasyncio.create_task() vs. await
Replies: 2
Views: 227

Re: Confused about uasyncio.create_task() vs. await

Thanks so much Peter, very clear explaination!
by dukeduck
Tue Dec 01, 2020 4:17 pm
Forum: ESP32 boards
Topic: WiFi or BLE for mobile phone connectivity?
Replies: 1
Views: 232

Re: WiFi or BLE for mobile phone connectivity?

you can send stepper control info via BLE UART.