Search found 45 matches

by Frida
Tue Jan 12, 2021 6:03 pm
Forum: Drivers for External Components
Topic: [Help needed] Sonoff Si7402
Replies: 4
Views: 1399

Re: [Help needed] Sonoff Si7402

Finally manages to compile micropython again. That's probably 4 years since last. Compiler setup, was not easy, but it succeeded in the end. So I changed a line in "micropython/drivers/dht/dth.c" namely line 55 to: "mp_hal_delay_us_fast (493); // mp_hal_delay_ms (18);" I have not tried with other ti...
by Frida
Sun Jan 03, 2021 8:25 pm
Forum: Drivers for External Components
Topic: [Help needed] Sonoff Si7402
Replies: 4
Views: 1399

Re: [Help needed] Sonoff Si7402

An appetizer.
I found a program in WIKI under: DHT22 temperature and humidity sensor
https://github.com/kurik/uPython-DHT22
I only use data_pin which is Y2 and has changed line 73:
while micros.counter () <493: # 25000:

Hope this is something you can use.
by Frida
Tue Dec 29, 2020 7:37 pm
Forum: Drivers for External Components
Topic: [Help needed] Sonoff Si7402
Replies: 4
Views: 1399

Re: [Help needed] Sonoff Si7402

Hi, is this a Turkish error, or is it sonoff si7021.
I have a couple of pieces that work just fine on my Propeller.
I have found that the starting pulse should be approx. 520 microseconds.
And I have the measuring pulses of 48 microseconds.

Hope this can help you further.
by Frida
Tue Nov 03, 2020 12:49 pm
Forum: ESP8266 boards
Topic: How to Websocket sub address?
Replies: 2
Views: 499

Re: How to Websocket sub address?

I wrote: The only thing that succeeds for me is: 192.168.5:80 It should have been '192.168.5.49:80' I have set up a web socket server at a local address '192.168.5.49', which is accessed via port '80', and the path '/ Chat'. It all works fine with javascript, but after I changed the router, it takes...
by Frida
Thu Oct 29, 2020 1:39 pm
Forum: ESP8266 boards
Topic: How to Websocket sub address?
Replies: 2
Views: 499

How to Websocket sub address?

How do I create a websocket at such an address: 192.168.5.49:80/Chat
The only thing that succeeds for me is: 192.168.5:80
I can do it in c, and javascript.
by Frida
Fri Jul 19, 2019 5:01 pm
Forum: Programs, Libraries and Tools
Topic: "SUB client" of umqtt simple.py crashes on EVERY message sent by another simple.py "PUB client"
Replies: 3
Views: 1674

Re: "SUB client" of umqtt simple.py crashes on EVERY message sent by another simple.py "PUB client"

You must have different client id on every esp for it to work.

Code: Select all

c = MQTTClient("umqtt_client", server) on your PUB
c = MQTTClient("umqtt_client", server) on your SUB
Chance "umqtt_client" to somewhat different on one of your ESP.
by Frida
Fri Jul 19, 2019 12:54 pm
Forum: General Discussion and Questions
Topic: keep wifi and umqttsimple "alive"? (beginner question)
Replies: 7
Views: 2003

Re: keep wifi and umqttsimple "alive"? (beginner question)

Maybe you can use something from my program? I use a Sonoff to turn on some light at sunset. They get the commando from a Node Red server running on a Raspberry pi. Every time its reset, the counter gets reset also. IF the counter is zero, Node Red send the command again. from machine import Pin, PW...
by Frida
Fri Jul 12, 2019 2:03 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 50
Views: 10954

Re: main.py does not appear to working after boot

It may depend from the terminal emulator. Picocom switches by default the modem control lined in a way that is seen by the esressif kind if bott loader enabling as reset. You can disable that with calling options I use GtkTerm to communicate with. The same is true when I supply the circuits from a ...
by Frida
Fri Jul 12, 2019 9:20 am
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 50
Views: 10954

Re: main.py does not appear to working after boot

I have some ESP32 PICO and they always have a reset after power on, before I can communicate with them.
But my NODEMCU ESP8266 has no problems.
by Frida
Thu May 23, 2019 6:13 pm
Forum: General Discussion and Questions
Topic: utime.ticks_diff() between pycom and upython
Replies: 4
Views: 1085

utime.ticks_diff() between pycom and upython

In upython, utime.ticks_diff (new, old) gives positive results. In pycom, utime.ticks_diff (old, new) gives positive results. Old and new have been switched, I wonder why, there is no change in the underlying code. It must be somewhere, between the call and the underlying code. ps. I prefer the pyco...