Search found 61 matches

by wangshujun@tom.com
Sun Jul 11, 2021 4:38 am
Forum: ESP32 boards
Topic: No REPL on ESP32-S2
Replies: 22
Views: 24854

Re: No REPL on ESP32-S2

According to the previous modification, if only UART is connected and USB is not connected, the repl speed of UART will be very slow and not practical Try the following modifications to make USB and UART work at the same time: 1. main.c 83 line #if CONFIG_USB_ENABLED usb_init(); #endif uart_init(); ...
by wangshujun@tom.com
Wed Jun 30, 2021 2:13 pm
Forum: ESP32 boards
Topic: No REPL on ESP32-S2
Replies: 22
Views: 24854

Re: No REPL on ESP32-S2

Try the following modifications to make USB and UART work at the same time: 1. main.c 83 line #if CONFIG_USB_ENABLED usb_init(); #endif uart_init(); 2. mphalport.c 121 line #if CONFIG_USB_ENABLED usb_tx_strn(str, len); #endif for (uint32_t i = 0; i < len; ++i) { uart_tx_one_char(str ); } After modif...
by wangshujun@tom.com
Sun Jun 27, 2021 12:58 pm
Forum: ESP32 boards
Topic: No REPL on ESP32-S2
Replies: 22
Views: 24854

Re: No REPL on ESP32-S2

I also encounter the same problem. After compiling and enabling USB, the repl of serial port will no longer respond
by wangshujun@tom.com
Tue May 25, 2021 9:14 am
Forum: ESP32 boards
Topic: Finer resolution for servo PWM?
Replies: 3
Views: 1989

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: 1989

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: 4018

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: 3360

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: 8678

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: 2140

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: 2620

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...