Search found 4 matches

by ghukill
Wed Jun 16, 2021 7:12 am
Forum: ESP8266 boards
Topic: min and max pulse widths for machine.PWM?
Replies: 2
Views: 1527

Re: min and max pulse widths for machine.PWM?

This post also has some helpful / relevant information:
viewtopic.php?t=1920
by ghukill
Tue Jun 15, 2021 11:01 am
Forum: ESP8266 boards
Topic: min and max pulse widths for machine.PWM?
Replies: 2
Views: 1527

Re: min and max pulse widths for machine.PWM?

Stumbled on this forum post that may have some details/approaches that could be helpful:
viewtopic.php?f=2&t=10494&p=57979&hilit ... tio#p57980
by ghukill
Tue Jun 15, 2021 9:52 am
Forum: ESP8266 boards
Topic: min and max pulse widths for machine.PWM?
Replies: 2
Views: 1527

min and max pulse widths for machine.PWM?

I'm trying to port some Arduino code to micropython that drives a brushless motor using an ESC module. Using an esp8266mod board. The arduino code sets up the pin that writes to ESC like this: #include <Servo.h> ... ESC.attach(9,1000,2000); // (pin, min pulse width, max pulse width in microseconds) ...
by ghukill
Thu Apr 15, 2021 12:47 pm
Forum: MicroPython pyboard
Topic: reboot and initial 19 characters on pyboard
Replies: 0
Views: 2456

reboot and initial 19 characters on pyboard

Working with: MicroPython v1.13 on 2020-09-02; PYBv1.1 My code looks roughly as follows: vcp = pyb.USB_VCP() # warmup: clear serial buffer t0 = pyb.millis() r = vcp.recv(19, timeout=10000) # what are these 19 characters? 10s timeout is a safeguard, usually more like 5-6s... # main loop while True: #...