Search found 781 matches

by kevinkk525
Sat Sep 05, 2020 7:27 am
Forum: General Discussion and Questions
Topic: uasyncio: Schedule a task to run _now_
Replies: 5
Views: 421

Re: uasyncio: Schedule a task to run _now_

About the debouncing I have to say that there is indeed a use-case for the "reverse debouncing" as @scy described, for example if you have a badly implemented/connected switch like the bell signal I connected. Then you get "false" pulses that trigger the interrupt, even though nobody rang the bell b...
by kevinkk525
Sat Aug 29, 2020 9:07 pm
Forum: ESP8266 boards
Topic: Stable Windows IDE for micropython 8266 development
Replies: 12
Views: 1012

Re: Stable Windows IDE for micropython 8266 development

I recommend writing in PyCharm with micropython addon. Works great, at least for writing code.
by kevinkk525
Mon Aug 24, 2020 10:08 am
Forum: General Discussion and Questions
Topic: AC doorbell signal
Replies: 21
Views: 1442

Re: AC doorbell signal

That sounds reasonable but the understanding of the electornics/math is beyond me sadly (even though it shouldn't..).
Thanks for your help.
by kevinkk525
Sun Aug 23, 2020 3:31 pm
Forum: General Discussion and Questions
Topic: AC doorbell signal
Replies: 21
Views: 1442

Re: AC doorbell signal

You are absolutely right on all accounts. The 2x 600R instead of one 1200R was just a choice of doubling potential heat dissipation by using 2 resistors instead of one. With the current situation this was obviously unneccessary. Adding a 560R resistor across the LEDs is a good idea, haven't thought ...
by kevinkk525
Fri Aug 21, 2020 3:39 pm
Forum: General Discussion and Questions
Topic: AC doorbell signal
Replies: 21
Views: 1442

Re: AC doorbell signal

So apparently I didn't do my homework correctly :D The wire that was supposed to be the signal might just be some weird residual voltage of 4V AC that drops to 0.6V as soon as I connect my Resistor+Optocoupler. Also on ringing the bell it only shortly goes to ground and then back up to 4V, but I did...
by kevinkk525
Sat Aug 15, 2020 9:12 pm
Forum: Programs, Libraries and Tools
Topic: Cannot get umqtt.robust to work (subscription)
Replies: 8
Views: 659

Re: Cannot get umqtt.robust to work (subscription)

This is a very nice project! The more features you add, the more difficult it might get with umqtt.robust. I would suggest looking into uasyncio and an async mqtt client: https://github.com/peterhinch/micropython-mqtt (or alternatively you can have a look at my framework that takes care of everythin...
by kevinkk525
Sat Aug 15, 2020 12:54 pm
Forum: Programs, Libraries and Tools
Topic: OneWireError exception
Replies: 2
Views: 244

Re: OneWireError exception

you have to catch "onewire.OneWireError" if you import onewire at the top of the module.
by kevinkk525
Wed Aug 12, 2020 3:32 pm
Forum: ESP8266 boards
Topic: Iram1_0_seg overflow with native decorator
Replies: 5
Views: 394

Re: Iram1_0_seg overflow with native decorator

Thanks a lot. Now I understand the problem a lot better. Your solution however only seems to work when I define a native function during runtime, whereas my functions are to be frozen into the firmware. But as I understand it, even frozen native functions are being recompiled on each boot and theref...
by kevinkk525
Wed Aug 12, 2020 5:20 am
Forum: ESP8266 boards
Topic: Iram1_0_seg overflow with native decorator
Replies: 5
Views: 394

Iram1_0_seg overflow with native decorator

I have a problem building my esp8266 firmware: LINK build-pysmartnode_4M/firmware.elf xtensa-lx106-elf-ld: build-pysmartnode_4M/firmware.elf section `.text' will not fit in region `iram1_0_seg' xtensa-lx106-elf-ld: region `iram1_0_seg' overflowed by 764 bytes make: *** [Makefile:216: build-pysmartno...
by kevinkk525
Tue Aug 11, 2020 10:22 am
Forum: General Discussion and Questions
Topic: AC doorbell signal
Replies: 21
Views: 1442

Re: AC doorbell signal

With a capacitor you're trying to detect an event of 1s or more (who pushes a doorbell for <1s and expects to be heard?). I'd just poll it, say every 250ms. No need for a Delay_ms if you haven't got 100Hz pulses to contend with. Nobody here would push a doorbell for more than 1 second unless he wan...