Search found 23 matches

by ThomasChr
Wed Jan 16, 2019 2:10 pm
Forum: ESP8266 boards
Topic: Interrupt Handling problem
Replies: 1
Views: 60

Re: Interrupt Handling problem

Maybe you should try RISING or FALING.
Also you could try "hard = True" to use a hard interrupt instead of a soft one.
And may sure that your Button are properly pulled low (or high).

And use Code-Tags next time you're posting code in a forum. Makes it easier to read!

Thomas
by ThomasChr
Tue Jan 15, 2019 12:20 pm
Forum: General Discussion and Questions
Topic: Recommended way to get/send data from sensor?
Replies: 10
Views: 329

Re: Recommended way to get/send data from sensor?

Just an idea: There are many WiFi Outlets like the "Gosund SP 111" out there. They have an ESP8266 at there heart and an Relay and Power Measurement IC. You can use them to switch your Outlet via WiFi but you can also use them to get an accurate Power Reading from your Outlet. Easy to spy on your wa...
by ThomasChr
Tue Jan 15, 2019 5:50 am
Forum: General Discussion and Questions
Topic: Sensing sound from a speaker
Replies: 8
Views: 152

Re: Sensing sound from a speaker

Just a hint: Many of those cheap NodeMCU ESP8266 Boards have the voltage divider already built in.

Glad to hear that it works :-)

Thomas
by ThomasChr
Mon Jan 14, 2019 7:50 pm
Forum: General Discussion and Questions
Topic: Data recording for scientific experiments
Replies: 7
Views: 147

Re: Data recording for scientific experiments

I think it‘s important to just start. If it works, good. If not, you‘ve spent a few bucks and learned a lot.

Surely we‘ll help you along the way!

Thomas
by ThomasChr
Sun Jan 13, 2019 7:14 pm
Forum: The MicroPython pyboard
Topic: Pyboard does not show as USB device
Replies: 7
Views: 134

Re: Pyboard does not show as USB device

Yes, switching the USB Cable is a good idea. Sometimes the cables are crap.
by ThomasChr
Sun Jan 13, 2019 7:08 pm
Forum: ESP8266 boards
Topic: ESP8266 Code crashes after ~30 hours
Replies: 5
Views: 102

Re: ESP8266 Code crashes after ~30 hours

@pythoncoder: Exactly such an error is was looking for, thank you! I go for that code, any errors? import time import machine import network import usocket import micropython # What is our sensorid? sensorid = 5 # How many seconds between sending data? sendseconds = 60 # How many seconds do we try u...
by ThomasChr
Sun Jan 13, 2019 5:02 pm
Forum: ESP8266 boards
Topic: ESP8266 Code crashes after ~30 hours
Replies: 5
Views: 102

Re: ESP8266 Code crashes after ~30 hours

I tried to catch the exception but never got one. It‘s a cheap NodeMCU Board.

Glad to know that my code has no obvious flaws!
by ThomasChr
Sun Jan 13, 2019 4:33 pm
Forum: ESP8266 boards
Topic: ESP8266 Code crashes after ~30 hours
Replies: 5
Views: 102

ESP8266 Code crashes after ~30 hours

Hello Forum, I have this rather simple code for an ESP8266 which works fine bit crashes after ~30 hours. Did I do anything wrong in those few lines of code? Thanks for your help! (PS: The reset reason is 2 - so an Exception happend, but not one I could catch. Maybe it happend in the ISR where I had ...
by ThomasChr
Sat Jan 12, 2019 1:00 pm
Forum: The MicroPython pyboard
Topic: Pyboard does not show as USB device
Replies: 7
Views: 134

Re: Pyboard does not show as USB device

To rule out a hardware problem boot a Live Ubuntu. It should mount the Pyboard without any drivers on the first try.
After that you know that you‘re facing one of those driver problems windows is famous for and need to install every Pyboard Driver you can get until it finally works!
by ThomasChr
Sat Jan 12, 2019 11:36 am
Forum: General Discussion and Questions
Topic: Data recording for scientific experiments
Replies: 7
Views: 147

Re: Data recording for scientific experiments

I would vote for the Pyboard, it‘s official, stable and has a far better ADC then one of the cheap ESP Boards. It has no WiFi but the new Pyboard-D will have it. Sending the data via WiFi straight to a Server eliminates local storage which is indeed not suited for heavy write cycles. And if the ADC ...