Search found 847 matches

by OutoftheBOTS_
Sat Jan 29, 2022 9:51 pm
Forum: ESP32 boards
Topic: setting PWM timers
Replies: 5
Views: 5339

Re: setting PWM timers

There is a PR #8210 fixing the PWM bug not allowing frequencies below 611 Hz. It is waiting for getting approved & merged by Damien. Thanks. I have found a work around for my current needs. I Found that v.16 will do a freq of 50Hz for the servo so I am using it. To be able to drive my servo and mot...
by OutoftheBOTS_
Sat Jan 29, 2022 10:20 am
Forum: ESP32 boards
Topic: setting PWM timers
Replies: 5
Views: 5339

setting PWM timers

I need to drive my h-bridges fro my motors at a freq of about 40,000Hz and also drive a servo at a freq of 50Hz I have been driving my robot around fine using the H-bridges at 40,000Hz but I am now adding the control of a servo and when I create the PWM for the servo at 50Hz it also changes the the ...
by OutoftheBOTS_
Tue Jan 25, 2022 7:32 am
Forum: ESP32 boards
Topic: Webrepl
Replies: 11
Views: 13321

Re: Webrepl

@marcidy I have tried what you said and it still had the same problem. I think it is a browser problem either the HTML file I am using has something wrong with it or the browser that I am using is having problems. I have tried both firefox and crome. I have also raised an issue on github here https:...
by OutoftheBOTS_
Sun Jan 23, 2022 8:59 pm
Forum: ESP32 boards
Topic: Webrepl
Replies: 11
Views: 13321

Re: Webrepl

@marcidy

If you're 1 of the devs working on webrepl a suggestion that I would have is that soft reset doesn't reset the webrepl the same as soft reset doesn't reset network connections or USB repl
by OutoftheBOTS_
Sun Jan 23, 2022 8:52 pm
Forum: ESP32 boards
Topic: software rest from python code vs CRTL-D
Replies: 3
Views: 3900

Re: software rest from python code vs CRTL-D

I wasn't calling machine.soft_reset() from boot.py but rather calling it from another script called line.py but the easy work around that I found was that main.py would just have the line from line import * then when line.py executed machine.soft_reset() it reset and run both boot.py and main.py bas...
by OutoftheBOTS_
Sun Jan 23, 2022 8:47 pm
Forum: ESP32 boards
Topic: Webrepl
Replies: 11
Views: 13321

Re: Webrepl

I have exactly the same behavior on this firmware too
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
by OutoftheBOTS_
Sun Jan 23, 2022 8:37 am
Forum: ESP32 boards
Topic: Webrepl
Replies: 11
Views: 13321

Re: Webrepl

I get a repl over USB. I get this in the USB repl WebREPL connection from: ('192.168.0.80', 57581) I can't type in the webrepl at all whether I have code running or not. If I do have code running and my code prints something out then it doesn't appear in the webrepl but will appear in the USB repl. ...
by OutoftheBOTS_
Sun Jan 23, 2022 1:33 am
Forum: ESP32 boards
Topic: software rest from python code vs CRTL-D
Replies: 3
Views: 3900

Re: software rest from python code vs CRTL-D

OK a little more info here. It seems that if the machine.soft_reset is executed from main.py then when it resets it runs main.py but if it is executed from another script then it doesn't run main.py
by OutoftheBOTS_
Sun Jan 23, 2022 1:26 am
Forum: ESP32 boards
Topic: software rest from python code vs CRTL-D
Replies: 3
Views: 3900

software rest from python code vs CRTL-D

so when I press CRTL-D in repl it software resets then runs boot.py then main.py but nicely maintains USB and network connections. When I run machine.soft_reset() in my python code it resets then runs boot.py but doesn't run main.py. It also nicely maintains USB and network connections boot.py has n...
by OutoftheBOTS_
Sat Jan 22, 2022 11:29 pm
Forum: ESP32 boards
Topic: Webrepl
Replies: 11
Views: 13321

Re: Webrepl

OK I was following old instructions.

it seems you have to goto this page here "http://micropython.org/webrepl/" not sure how well that will work if the ESP32 is in AP mode rather than STA mode.

I now can connect but can't type anything in to the python prompt but can send files
Capture2.PNG
Capture2.PNG (37.4 KiB) Viewed 11410 times