Search found 40 matches
- Thu Dec 05, 2019 7:24 pm
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3631
PWM hardware fade
Hello! The ESP32 has hardware support for gradually changing the PWM duty cycle. Documented here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/ledc.html I would like to use this. I need to run a web server on the ESP32 (accepting and processing commands), and gradu...
- Tue Dec 03, 2019 2:52 pm
- Forum: General Discussion and Questions
- Topic: Shift Register PWM
- Replies: 6
- Views: 4471
Re: Shift Register PWM
Another problem with shift registers is that it is slow for PWM. You can - in theory - drive the shift register's output pins from software, but then your main program will be occupied with sending data to the shift register. There is no built-in hardware PWM for this. On the other side, by using an...
- Tue Dec 03, 2019 2:46 pm
- Forum: General Discussion and Questions
- Topic: Shift Register PWM
- Replies: 6
- Views: 4471
Re: Shift Register PWM
Instead of using transistors, I suggest that you use an ULN2003 IC. That contains an array of darlington pairs, and it already includes 2K resistors in series of the inputs. It also includes flyback diodes! That is ideal for diving leds: small footprint, multiple outputs. I have been using this (e.g...
- Mon Jun 03, 2019 6:13 am
- Forum: ESP8266 boards
- Topic: socket - ERR_CONNECTION_RESET on 4th connection
- Replies: 13
- Views: 10386
Re: socket - ERR_CONNECTION_RESET on 4th connection
Instead of making an example code, I made a complete project that does automatic wifi setup with a http/browser based gui.
https://github.com/nagylzs/micropython-wifi-setup
I need to translate the React/HTML code because it is still in Hungarian.
https://github.com/nagylzs/micropython-wifi-setup
I need to translate the React/HTML code because it is still in Hungarian.
- Fri Mar 22, 2019 4:42 pm
- Forum: General Discussion and Questions
- Topic: Cannot use GPIO2 (D4) as digital input?
- Replies: 3
- Views: 2604
Re: Cannot use GPIO2 (D4) as digital input?
But now I wonder if there is a similar description for the ESP32?
- Fri Mar 22, 2019 4:41 pm
- Forum: General Discussion and Questions
- Topic: Cannot use GPIO2 (D4) as digital input?
- Replies: 3
- Views: 2604
Re: Cannot use GPIO2 (D4) as digital input?
Oh I can answer my own question. I have mixed up GIPO4 with D4 (GPIO2). I see now that this pin must be HIGH at boot time. Sorry for the silly question. It was a good lesson...
- Fri Mar 22, 2019 4:34 pm
- Forum: General Discussion and Questions
- Topic: Cannot use GPIO2 (D4) as digital input?
- Replies: 3
- Views: 2604
Cannot use GPIO2 (D4) as digital input?
If I connect GPIO2 (D4) to GND, then I'm not able to boot my ESP8266. If I connect a serial terminal and reset the device, then it starts sending garbage continuously instead of booting up. I have tested this on a WeMos Mini, a NodeMcu 0.9 board and a normal sized WeMos board. I have completely refl...
- Sun Mar 10, 2019 1:49 pm
- Forum: General Discussion and Questions
- Topic: esp8266 not booting
- Replies: 18
- Views: 9803
- Sun Mar 10, 2019 11:45 am
- Forum: General Discussion and Questions
- Topic: esp8266 not booting
- Replies: 18
- Views: 9803
Re: esp8266 not booting
Oh I see now. Both boot.py and main.py are executed. It is my fault then. I did not know, and I have accidentally uploaded a main.py file that enters an invisible infinite loop.
- Sun Mar 10, 2019 11:38 am
- Forum: General Discussion and Questions
- Topic: esp8266 not booting
- Replies: 18
- Views: 9803
Re: esp8266 not booting
This might be the root of all evil. I thought boot.py is the one that is executed automatically?