Search found 8 matches

by academo
Wed Feb 16, 2022 9:59 pm
Forum: ESP32 boards
Topic: unstable ESP32
Replies: 7
Views: 4384

Re: unstable ESP32

@bulletmark thanks for confirming!

Indeed since I addded the capacitor (2.2uf) it had been working great, entering the correct boot mode and repl working fine.

Thanks for the tips!
by academo
Tue Feb 15, 2022 1:27 pm
Forum: ESP32 boards
Topic: servo PWM frequency and strange behaviour
Replies: 8
Views: 3668

Re: servo PWM frequency and strange behaviour

I can also raise the issue in github if you want. Though keep in mind I can't probably provide more information on it than my anecdotal experience since i am not a professional in electronics. I'd love to be able to use micropython for the project I am starting but I also can't dedicate all the time...
by academo
Tue Feb 15, 2022 1:25 pm
Forum: ESP32 boards
Topic: unstable ESP32
Replies: 7
Views: 4384

Re: unstable ESP32

My USB cable is a good quality one and I also used it to work with the esp8266 dev board and micropython without this problem. Reading more here and there I saw that some of these boards have problems with the boot mode and stability because they are missing a capacitor between EN and GND. So I put ...
by academo
Tue Feb 15, 2022 12:22 pm
Forum: ESP32 boards
Topic: servo PWM frequency and strange behaviour
Replies: 8
Views: 3668

Re: servo PWM frequency and strange behaviour

Yes. I sadly had to go back to Arduino. Because of this I can't initialize a servo on reboot without making the servo move (which opens and closes a gate).

That means when coming out of sleep it always opens and closes the gate and that happens every 10 minutes or so.
by academo
Sun Feb 13, 2022 2:12 pm
Forum: ESP32 boards
Topic: servo PWM frequency and strange behaviour
Replies: 8
Views: 3668

Re: servo PWM frequency and strange behaviour

@Roberthh the unstable firmware fixed the issue. now it happens that when I initialize the PWM the pin always initialized on a duty of 512 regardless of what I send in the constructor. example: ``` servo = PWM(Pin(32), freq=50 duty=50) ``` this will actually set a duty of 512. no matter what I put o...
by academo
Sun Feb 13, 2022 12:05 pm
Forum: ESP32 boards
Topic: unstable ESP32
Replies: 7
Views: 4384

unstable ESP32

Hello everyone. After solving the problem of the PWM by flashing the "unstable" 1.18 I am now having a different kind of problem. From to time, without running code on main, the board "hangs". Attempts to put files with ampy will just wait for ever. Connecting to the repl with picocom will work but ...
by academo
Thu Feb 10, 2022 9:06 pm
Forum: ESP32 boards
Topic: servo PWM frequency and strange behaviour
Replies: 8
Views: 3668

Re: servo PWM frequency and strange behaviour

That was it! thank you very much for such a fast answer. I can confirm esp32-20220210-unstable-v1.18-121-gd8a7bf83c.bin fixed my issue and now my servos are working as expected on the right frequency.

Thanks again
by academo
Thu Feb 10, 2022 8:33 pm
Forum: ESP32 boards
Topic: servo PWM frequency and strange behaviour
Replies: 8
Views: 3668

servo PWM frequency and strange behaviour

Hello everyone. I've been trying to control some hobby servos using micropython and a esp32 wroom nodemcu board with strange results. Everywhere I find documentation for hobby servos (I have a MG996R) I find a code like this: from machine import Pin, PWM servo = PWM(Pin(27), freq=50) servo.duty(55) ...