Search found 9 matches

by thewifimaster
Tue Jan 18, 2022 9:43 pm
Forum: ESP32 boards
Topic: ADC on Wemos S2
Replies: 3
Views: 3876

Re: ADC on Wemos S2

Wo RTFM helps: use GPIOs starting with 1 and that's where you get a working ADC1.
by thewifimaster
Sun Dec 05, 2021 1:04 am
Forum: ESP32 boards
Topic: ENOMEM Error when using UDP Broadcast
Replies: 15
Views: 11312

Re: ENOMEM Error when using UDP Broadcast

I am running into similar problems on a esp32-s2. As soon as I start to send UDP packets within short intervals, I get OSError 12 and random drop-outs. The routine I am using (within a much larger context) with uasyncio: import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.sendto(dat...
by thewifimaster
Mon Nov 08, 2021 8:44 pm
Forum: General Discussion and Questions
Topic: irq firing multiple times, why?
Replies: 4
Views: 1490

Re: irq firing multiple times, why?

Ok, as it seems it requires some debouncing.
by thewifimaster
Thu Nov 04, 2021 9:47 pm
Forum: General Discussion and Questions
Topic: irq firing multiple times, why?
Replies: 4
Views: 1490

Re: irq firing multiple times, why?

Thanks Peter and Robert, guess I'll dig out that Oscilloscope at work :)
by thewifimaster
Sat Oct 30, 2021 5:11 pm
Forum: General Discussion and Questions
Topic: irq firing multiple times, why?
Replies: 4
Views: 1490

irq firing multiple times, why?

I have two light barriers connected to two GPIO inputs and the following program code to handle the status change. What I do not understand is why the irq typically fires 8x times on a status change. I now just filter it in my code, but want to understand what is happening. Any hints? import machine...
by thewifimaster
Tue Oct 26, 2021 10:43 pm
Forum: ESP32 boards
Topic: ADC on Wemos S2
Replies: 3
Views: 3876

Re: ADC on Wemos S2

So I took this as a challenge and went ahead to build my own binary for v1.17 which did work out. Unfortunately ADC still does not work, and, seems to be broken. Any hints, anyone? MicroPython v1.17-112-g9519484c5 on 2021-10-27; LOLIN_S2_MINI with ESP32-S2FN4R2 Type "help()" for more information. >>>
by thewifimaster
Tue Oct 26, 2021 9:02 pm
Forum: ESP32 boards
Topic: ADC on Wemos S2
Replies: 3
Views: 3876

Re: ADC on Wemos S2

So I tried loading different (unstable) versions of v1.17 but they do not seem to work at all, not sure what type of custom build Lolin created here. Does anyone know how to get the latest version to work? As an example, I get the following when loading esp32-20211026-unstable-v1.17-112-g9519484c5.b...
by thewifimaster
Tue Oct 26, 2021 7:19 pm
Forum: ESP32 boards
Topic: Help setting the time
Replies: 1
Views: 1380

Re: Help setting the time

For me, this works on ESP8266 so I assume it also works on ESP32 .. let me know if it does. Using esp8266-20210902-v1.17.bin import ntptime import time NTP_SERVER = '0.ch.pool.ntp.org' ntptime.host = NTP_SERVER try: print('Local time before synchronization:%s' % str(time.localtime())) ntptime.settim...
by thewifimaster
Fri Oct 08, 2021 5:42 pm
Forum: ESP32 boards
Topic: ADC on Wemos S2
Replies: 3
Views: 3876

ADC on Wemos S2

Hi As it is my first post after doing lots of passive reading here, thanks for MicroPython and a great community / forum! I just got a Wemos S2 and am trying to get the ADC (1) to work. As I see in the docs it should work on GPIOs 32 - 39 , but all of them throw a 'ValueError: invalid Pin for ADC'. ...