Search found 28 matches

by wangshujun@tom.com
Tue May 25, 2021 9:14 am
Forum: ESP32 boards
Topic: Finer resolution for servo PWM?
Replies: 3
Views: 556

Re: Finer resolution for servo PWM?

from machine import Pin from esp32 import RMT import time rmt=RMT(1,pin=Pin(18),clock_div = 80) rmt.loop(1) pulse=1500 cycle=20000 rmt.write_pulses((pulse,cycle-pulse),start=1) for j in range(100): for i in range(200): time.sleep_ms(18) pulse=500+i*10 rmt.write_pulses((pulse,cycle-pulse),start=1)
by wangshujun@tom.com
Mon May 24, 2021 3:34 am
Forum: ESP32 boards
Topic: Finer resolution for servo PWM?
Replies: 3
Views: 556

Re: Finer resolution for servo PWM?

It seems that in the existing firmware, RMT module can easily provide high-precision actuator drive

Resolution up to 1US should be feasible
by wangshujun@tom.com
Fri May 21, 2021 8:56 am
Forum: ESP32 boards
Topic: ESP32 (Pulse) Counter capability
Replies: 2
Views: 848

Re: ESP32 (Pulse) Counter capability

Look forward to the integration of this feature
by wangshujun@tom.com
Sun May 09, 2021 1:16 pm
Forum: General Discussion and Questions
Topic: Put all modules into a single file
Replies: 5
Views: 920

Re: Put all modules into a single file

I currently use esp32, and I think it's more convenient to upload files by FTP
by wangshujun@tom.com
Sun Apr 18, 2021 2:12 pm
Forum: MicroPython pyboard
Topic: Large font on micropython_ra8875
Replies: 8
Views: 1815

Re: Large font on micropython_ra8875

If you are using framebuf to implement the display driver, you can consider trying my framebuf enhancement https://github.com/wangshujun-tj/mpy-Framebuf-boost-code Support 8 × 8, 6 × 12, 8 × 16, 12 × 24, 16 × 32 font size, and can also enlarge up to 4 times, fully meet the needs of large font, chara...
by wangshujun@tom.com
Sun Apr 18, 2021 1:56 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico start warning
Replies: 2
Views: 385

Pico start warning

Question 1: Warning will be prompted at startup, and the subsequent operation will be normal WARNING: Could not sync device's clock: can't import name RTC WARNING: Could not validate time: can't import name RTC MicroPython v1.14-172-gf842a40df-dirty on 2021-04-18; Raspberry Pi Pico with RP2040 Type ...
by wangshujun@tom.com
Sun Apr 18, 2021 1:48 pm
Forum: ESP32 boards
Topic: DAC Problem
Replies: 4
Views: 383

Re: DAC Problem

This situation is determined by the internal circuit of the chip. As described in the manual, the internal DAC output goes through an operational amplifier to the pin, and it is difficult to achieve the rail to rail output with this structure The DAC of STM32 has a similar feature after the buffer i...
by wangshujun@tom.com
Sun Apr 18, 2021 10:24 am
Forum: Development of MicroPython
Topic: Pico SDK has duplicate inclusion
Replies: 0
Views: 984

Pico SDK has duplicate inclusion

Today, when updating the micro Python repository, we found that Pico SDK repeatedly contains a huge tinyusb, which leads to a huge amount of downloads when updating recursively In addition, tinyusb is a large warehouse. Whether it can be put out of this repository or directly reference the necessary...
by wangshujun@tom.com
Thu Apr 15, 2021 3:29 am
Forum: ESP32 boards
Topic: How to get the full capacity of an 8MB or 16MB flash chip?
Replies: 18
Views: 1554

Re: How to get the full capacity of an 8MB or 16MB flash chip?

Confirm that all three steps are required:
1. Modify partition table
2. Modification sdkconfig.base Flash size in
3. make FLASH_ SIZE?=8MB

The attachment is the script I use now. It's a stupid method, but it seems to be effective
by wangshujun@tom.com
Wed Apr 14, 2021 1:21 am
Forum: ESP32 boards
Topic: How to get the full capacity of an 8MB or 16MB flash chip?
Replies: 18
Views: 1554

Re: How to get the full capacity of an 8MB or 16MB flash chip?

I use the method of modifying partitions files to recompile the firmware and get the firmware that is suitable for 16 megabytes. I actually store and test more than 8 mega bytes of files and confirm that they are normal After upgrading to 1.14 + cmake, if you modify the partition table separately, ...