Search found 147 matches

by MostlyHarmless
Sat Mar 07, 2020 5:29 am
Forum: Hardware Projects
Topic: plant watering
Replies: 39
Views: 3021

Re: plant watering

For making sure there is water in the reservoir a simple float switch should do. That switch would be closed if there is water in the reservoir and open where there isn't. Think of the principle of a sump pump or the condensate pump of an air condition system. The condensate pump of an air condition...
by MostlyHarmless
Mon Mar 02, 2020 5:21 am
Forum: Hardware Projects
Topic: plant watering
Replies: 39
Views: 3021

Re: plant watering

Never rely on your program to be fail safe. Always build safety into your circuit.

If there is no water, the whole thing should shut down.

Think like that.
by MostlyHarmless
Tue Feb 18, 2020 8:30 pm
Forum: ESP8266 boards
Topic: esp8266-20191220-v1.12.bin issues
Replies: 15
Views: 874

Re: esp8266-20191220-v1.12.bin issues

jay2026 wrote:
Mon Feb 17, 2020 5:41 pm
picocom on linux mint
Picocom works fine with ESP8266 and ESP32 boards here on CentOS 7. Is your user a member of the dialout group?


Jan
by MostlyHarmless
Sat Jan 25, 2020 2:45 pm
Forum: General Discussion and Questions
Topic: firmware install problem
Replies: 11
Views: 453

Re: firmware install problem

Right, nothing obvious in that schematic that could explain the problem.

Have you tried to compile the firmware (tag v1.12 checked out) without any extra modules?


Jan
by MostlyHarmless
Sat Jan 25, 2020 8:51 am
Forum: General Discussion and Questions
Topic: firmware install problem
Replies: 11
Views: 453

Re: firmware install problem

Hard to tell without more details about that extra module and how the two boards differ in wiring. Just speculating, but could it be that the extra module is mucking with GPIO(s) that are connected to vital things on the "custom board"?


Regards, Jan
by MostlyHarmless
Sat Jan 25, 2020 8:39 am
Forum: Pyboard D-series
Topic: Powering from both VUSB and microUSB
Replies: 3
Views: 321

Re: Powering from both VUSB and microUSB

What will happen if you have a 5V power supply connected to the VUSB port while the microUSB port is plugged into a computer? Will the Pyboard simply choose a power supply to use or will there be complications? I would advise against it. The +5V is typically produced by a voltage regulator (7805 or...
by MostlyHarmless
Fri Jan 17, 2020 3:52 pm
Forum: Development of MicroPython
Topic: drivers/dht improvements (take 2)
Replies: 19
Views: 1436

Re: drivers/dht improvements (take 2)

I would move the await asyncio.sleep(2) after the print() ... So you will get the temperature directly after start ;) From a cold boot the DHT sensor needs some time to stabilize and become ready. If you try to query it too soon after power on all you get is a ETIMEDOUT. You might be able to move t...
by MostlyHarmless
Fri Jan 17, 2020 1:30 pm
Forum: Development of MicroPython
Topic: drivers/dht improvements (take 2)
Replies: 19
Views: 1436

Re: drivers/dht improvements (take 2)

The AM2320 is an upgrade of the DHT22 / AM2302, and it supports both the old 1-wire interface and I2C. https://github.com/mcauser/micropython-am2320 Same goes for the tiny DHT12, which is an upgrade of the DHT11, and adds I2C too. https://github.com/mcauser/micropython-dht12 These could do with som...
by MostlyHarmless
Fri Jan 17, 2020 1:17 pm
Forum: Pyboard D-series
Topic: Pyboard D RTC accuracy
Replies: 5
Views: 890

Re: Pyboard D RTC accuracy

Have you considered submitting a PR? I have. There is one small problem left with it that I still haven't figured out how to minimize. The whole thing is obviously based on two while() loops, the first waiting as long as both pins are unequal the requested levels, the second waiting until both are ...
by MostlyHarmless
Fri Jan 17, 2020 1:02 pm
Forum: Development of MicroPython
Topic: drivers/dht improvements (take 2)
Replies: 19
Views: 1436

Re: drivers/dht improvements (take 2)

There is nothing wrong with wait_ms = d.start() await asyncio.sleep_ms(wait_ms) d.receive() however if I were writing the device driver I'd either provide an awaitable receive method so you could write await d.receive() or make the class an awaitable class. Then you'd just have await d Either appro...