Search found 39 matches

by ghayne
Fri Nov 08, 2019 6:54 pm
Forum: ESP8266 boards
Topic: Counting pulses from an electricity meter
Replies: 12
Views: 710

Counting pulses from an electricity meter

I intend using the following code to read the pulses coming from an electricity meter to calculate instantaneous power and total consumption. I have a photodiode connected to an ADS1015 A/D converter (many thanks to Roberthh for his modifications to the driver) and everything is working fine on the ...
by ghayne
Thu Oct 31, 2019 10:04 am
Forum: ESP8266 boards
Topic: Send Sensor Data to Database
Replies: 1
Views: 323

Re: Send Sensor Data to Database

Try urequests to post data via http to the database.
by ghayne
Sun Oct 13, 2019 8:56 am
Forum: ESP8266 boards
Topic: Door sensor with ESP8266
Replies: 3
Views: 375

Re: Door sensor with ESP8266

You may have problems with GPIO1 as it is the RX pin. It is high at boot and boot will fail if it's held low at boot time.

This is a good reference for which GPIO's you should use on the ESP8266
https://randomnerdtutorials.com/esp8266 ... nce-gpios/
by ghayne
Sat Oct 12, 2019 4:56 pm
Forum: General Discussion and Questions
Topic: Pyboard machine.deepsleep not waking from RTC, PA0, PC13 when other ICs have power
Replies: 4
Views: 505

Re: Pyboard machine.deepsleep not waking from RTC, PA0, PC13 when other ICs have power

Could it be that when the other IC's are powered that they are preventing wake from deep sleep by holding Pyboard inputs high or low somehow? Just a quick idea.

EDIT: Just found this:
https://github.com/micropython/micropython/issues/3834
by ghayne
Fri Oct 11, 2019 11:40 am
Forum: ESP32 boards
Topic: ESP32 crashes with Micropython with simple test program
Replies: 9
Views: 471

Re: ESP32 crashes with Micropython with simple test program

+1 for the supply problem. I have an ESP32 module here that refuses to run off a normal USB socket on my laptop. If I use an adapter attached to the USB C socket it works fine.
by ghayne
Fri Oct 11, 2019 10:50 am
Forum: General Discussion and Questions
Topic: "OSError: [Errno 103] ECONNABORTED" what to do?
Replies: 3
Views: 239

Re: "OSError: [Errno 103] ECONNABORTED" what to do?

I think you should be using the POST method

Code: Select all

resp = urequests.post('http://192.168.100.3/input_data/?temp='+str(bmp.temperature)+'&pressure='+str(bmp.pressure)+'&vl=1')
resp.close()
by ghayne
Tue Oct 08, 2019 9:40 am
Forum: General Discussion and Questions
Topic: MicroPython on Casio fx-CG50 Questions?
Replies: 10
Views: 668

Re: MicroPython on Casio fx-CG50 Questions?

Roberthh wrote:
Tue Oct 08, 2019 6:21 am
This is also an interesting device: https://www.numworks.com/
Although, for pocket calculators I stick to HP and RPN
That does look interesting, the price is reasonable too. I only use RPN after owning a HP41C many years ago. Today I use an Android app.
by ghayne
Sat Sep 28, 2019 9:51 am
Forum: ESP8266 boards
Topic: Analog Pins
Replies: 16
Views: 3545

Re: Analog Pins

deshipu wrote:
Wed Sep 27, 2017 7:19 pm
And if you are using a Wemos D1 Mini, by total coincidence I just started selling my homebrew analog shield: https://www.tindie.com/products/deshipu ... r-d1-mini/
That is a lovely looking piece of kit!
by ghayne
Thu Sep 26, 2019 10:26 am
Forum: ESP8266 boards
Topic: ADS1015 alert pin triggering
Replies: 13
Views: 542

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

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