Search found 41 matches

by ghayne
Thu Sep 26, 2019 10:26 am
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 1210

Re: ADS1015 alert pin triggering

It is working Robert! I tried setting threshold_low just below threshold_high because I had suspected that threshold_low was important and after reading the datasheet this is indeed the case. From the datasheet: "The ADS1015 and ADS1014 feature a programmable digital comparator that can issue an ale...
by ghayne
Wed Sep 25, 2019 7:03 pm
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 1210

Re: ADS1015 alert pin triggering

Roberthh wrote:
Wed Sep 25, 2019 6:24 pm
Edit: I have updated the repository, but I am not sure that it works. I have to get an ADS1015 unit.
Robert, if I can't get it working you can have mine :)
by ghayne
Wed Sep 25, 2019 5:09 pm
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 1210

Re: ADS1015 alert pin triggering

Thank you Roberthh. I made the changes you suggested but it still is not working: from machine import I2C, Pin, Timer, idle from ads1x15 import ADS1115 # import urequests import utime i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000) adc = ADS1115(i2c, 72, 3) adc.alert_start(4, 0, threshold_high=8600) ...
by ghayne
Wed Sep 25, 2019 2:17 pm
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 1210

Re: ADS1015 alert pin triggering

It is working sort of, the adc.alert_read() is giving readings of low 7800 high 8600 roughly (way above the maximum possible for the ads1015). I set the threshold_high to 8000 but the alert pin is interrupting every 1ms. The alert pin is obviously triggering for every sample above the threshold, not...
by ghayne
Wed Sep 25, 2019 1:00 pm
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 1210

Re: ADS1015 alert pin triggering

Thank you Roberthh, not tried it yet but will this work with the ads1015 I am using as well?
by ghayne
Tue Sep 24, 2019 10:28 am
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 1210

ADS1015 alert pin triggering

Hi, I have a photodiode connected to an ads1015 and would like to have the alert pin signal on every transition of the threshold value (low to high. Somehow I cannot get it working using roberthh's ads1x15.py driver. Pin 12 is connected to the ads1015 alert pin Test code: the photodiode is measuring...
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: 4
Views: 949

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: 657

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: 790

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!