Search found 3667 matches

by Roberthh
Mon Nov 26, 2018 6:10 am
Forum: ESP8266 boards
Topic: Up to 50hz Counter Interrupt
Replies: 7
Views: 4300

Re: Up to 50hz Counter Interrupt

Look into the Pycom branch. The RMT function is available there as machine.RMT module. You could simply copy over the code. And it works prettey well for instance for single wire modules, Neopixel drivers, or similar, which requires precise un-interruped signal sequences. Edit: Since that is publish...
by Roberthh
Fri Nov 23, 2018 6:23 am
Forum: ESP32 boards
Topic: How to connect ESP32 to relay
Replies: 3
Views: 2802

Re: How to connect ESP32 to relay

Please do not use that V2 shield https://wiki.wemos.cc/products:d1_mini_shields:relay_shield for switching mains voltage, if the other parts of the circuitry, like the ESP8266 pins or USB, can be touched. It is NOT safe! If you want to use it, put everything in a box with proper isolation and do not...
by Roberthh
Thu Nov 22, 2018 2:24 pm
Forum: ESP8266 boards
Topic: Up to 50hz Counter Interrupt
Replies: 7
Views: 4300

Re: Up to 50hz Counter Interrupt

I had seen that with ESP32 too, when I received multiple ISR calls after a single interrupt. I tested it then with a signal generator creating variable slopes and a ISR wich is triggered. In fact in both the rising and falling slope showed multiple interrupts with slow signals. It seems that in the ...
by Roberthh
Mon Nov 19, 2018 7:22 pm
Forum: ESP8266 boards
Topic: [SOLVED] Crashing/freezing every few hours
Replies: 29
Views: 29660

Re: Crashing/freezing every few hours

I am currently thinking in the lines of external WDT, something like DS1832. The thing is, I need something in SOIC packaging to be able to solder it. The other thing is, apparently DS1832 is more expensive than ESP8266. You could use a NE555 based circuit. Needs more external components, but is al...
by Roberthh
Fri Nov 16, 2018 3:06 pm
Forum: ESP32 boards
Topic: Everything working, but now
Replies: 5
Views: 3177

Re: Everything working, but now

If you use another terminal emulator, like picocom on Linux or Putty on Windows, you can send Ctrl-C.
by Roberthh
Fri Nov 16, 2018 6:52 am
Forum: ESP8266 boards
Topic: PWM to MOSFET as ac230 dimmer
Replies: 5
Views: 3431

Re: PWM to MOSFET as ac230 dimmer

In principle the circuitry looks OK. It is hard to guess which backward interference can be cause from the AC side. At which frequency do you run the PWM, and do you carefully maintain the isolation? Please bear in mind, that fast switched lines also create a substantial electromagnetic field of lar...
by Roberthh
Thu Nov 15, 2018 2:54 pm
Forum: Drivers for External Components
Topic: SSD1306 OLED display: enhanced driver
Replies: 6
Views: 13449

Re: SSD1306 OLED display: enhanced driver

did you check the order of arguments in the super.__init__() call. That may be the problem. It calls the framebuffer class' init(), which does not requires i2c and address. Should look like
super().__init__(width, height, external_vcc)
by Roberthh
Thu Nov 15, 2018 7:33 am
Forum: ESP8266 boards
Topic: [SOLVED] Crashing/freezing every few hours
Replies: 29
Views: 29660

Re: Crashing/freezing every few hours

We have that in the lab too, that switching air compressor pumps affect the electronics, even if they are not connecvted to it at all. So we had to move them away. You could try to supply the ESP2866 with a separate power supply (separate from supply of the Relais you use to switch the pump). Two sm...
by Roberthh
Wed Nov 14, 2018 5:29 pm
Forum: ESP8266 boards
Topic: PWM to MOSFET as ac230 dimmer
Replies: 5
Views: 3431

Re: PWM to MOSFET as ac230 dimmer

Can you show the schematics of your circuit? The optocoupler should block any backward influence.
That seems to be an interesting approach. Do you synchronize your PWM with the mains frequency?
by Roberthh
Wed Nov 14, 2018 10:53 am
Forum: General Discussion and Questions
Topic: ESP8266/ESP32 uptime overflow
Replies: 4
Views: 6432

Re: ESP8266/ESP32 uptime overflow

The documentation of MicroPython aboujt ticks_ms(), ticks_us. The code lines for ticks_us() and ticks_ms() goes like: STATIC mp_obj_t time_ticks_us(void) { return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_us() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1)); } MP_DEFINE_CONST_FUN_OBJ_0(mp_utime_ticks_us_obj, time_ti...