Search found 15 matches

by ghayne
Tue Sep 17, 2019 8:57 am
Forum: General Discussion and Questions
Topic: connection error: could not open port 'COM3': PermissionError(13, 'access-deniedt', None, 5
Replies: 3
Views: 78

Re: connection error: could not open port 'COM3': PermissionError(13, 'access-deniedt', None, 5

The user has no permission to use the COM port. Unfortunately I cannot help as this appears to be a Windows machine, a Google search will probably help. ESP8266-Flasher might still be connected to the COM port. Try closing it if it is still open.
by ghayne
Fri Sep 06, 2019 3:02 pm
Forum: ESP32 boards
Topic: Boot loop after flashing ESP32-WROOM-32
Replies: 3
Views: 189

Re: Boot loop after flashing ESP32-WROOM-32USB C

Are you maybe using an underpowered USB(from a laptop etc). I have a very similar module that reboots frequently if I power it from a normal USB on my laptop but if I use the USB C (with an adapter) it works fine. It might not be getting enough power. The voltage regulator on the board is fine by th...
by ghayne
Sun Sep 01, 2019 8:21 pm
Forum: General Discussion and Questions
Topic: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption
Replies: 6
Views: 194

Re: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption

def irqHandler(pin):
micropython.schedule(sch, None)

You are calling sch before it is defined!
by ghayne
Thu Aug 29, 2019 6:32 pm
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 485

Re: Inconsistent results measuring pulses

Thank you for your input Peter. I have discovered that my cheap photo sensor is not the best solution for detecting pulses and I am currently waiting for delivery of a BPW34 Photodiode to try and correct this.
by ghayne
Fri Aug 23, 2019 1:33 pm
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 485

Re: Inconsistent results measuring pulses

Danke Roberthh!
by ghayne
Fri Aug 23, 2019 8:24 am
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 485

Re: Inconsistent results measuring pulses

That's certainly how I would do it. Have a trivial interrupt handler which increments a global. The main code runs a loop which: Clears down the global. Pauses for (say) one minute. Reads the value of the global. Calculates the power and publishes the result. There are possible improvements to acco...
by ghayne
Fri Aug 23, 2019 8:10 am
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 485

Re: Inconsistent results measuring pulses

jimmo wrote:
Fri Aug 23, 2019 12:05 am
Also, another thought. At the moment your detection code is tied up with the publishing code, so a delay in one will affect the other.
Yes jimmo, that bit needs some work too. Thanks for the input.
by ghayne
Thu Aug 22, 2019 9:17 pm
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 485

Re: Inconsistent results measuring pulses

This is on an ESP8266. That would explain the observed behaviour completely, a double trigger would halve the time. Is there a way to overcome this, A Schmitt trigger?
by ghayne
Thu Aug 22, 2019 5:28 pm
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 485

Re: Inconsistent results measuring pulses

Thinking about it further, garbage collection would slow down the process which would result in a lower rather than a higher reading! :o