Search found 101 matches
- Tue Oct 15, 2019 1:58 pm
- Forum: ESP32 boards
- Topic: Reading fan tacho signal frequency?
- Replies: 8
- Views: 5664
Re: Reading fan tacho signal frequency?
what I have understand is that esp are not very good at counting pulses. I have an idea, but my knoledge in electronic design is very low, so please tell me if it's pratical: wiring the pulse output to a capacitor and a resistor, so the pulse will fill the capacitor and resistor will burn this energ...
- Wed Sep 25, 2019 1:16 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33611
Re: uansycio.websocket.server/example_websock.py
I have applied some bits from pycopy-lib and now it work :
sever.py
line 10 :
line 57:
sever.py
line 10 :
Code: Select all
respkey = ubinascii.b2a_base64(respkey)[:-1]
Code: Select all
await writer.awrite("\r\n\r\n")
- Wed Sep 25, 2019 7:57 am
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33611
Re: uansycio.websocket.server/example_websock.py
It seems that a CRLF : "\r\n" is missing somewhere in the sever answer. Here it is the client traceback: Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.7/site-packages/websockets/client.py", line 90, in read_http_response status_code, h...
- Tue Sep 24, 2019 4:59 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33611
Re: uansycio.websocket.server/example_websock.py
When I try the interactive client from websockets module (https://websockets.readthedocs.io/en/stable/intro.html) :
I get the following error:
Code: Select all
$ python -m websockets ws://192.168.4.1:8081/
Code: Select all
Failed to connect to ws://192.168.4.1:8081: Malformed HHTP message.
- Tue Sep 24, 2019 4:12 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33611
Re: uansycio.websocket.server/example_websock.py
I have made some experiments with the app "Web Dev Tools" and it worked nicely, no more error I can send message and get the echo back. b'Upgrade: websocket\r\n' b'Connection: Upgrade\r\n' b'Sec-WebSocket-Key: QX5plYXbL6wOZXq6L+0AcQ==\r\n' b'Sec-WebSocket-Version: 13\r\n' b'Host: 192.168.4.1:8081\r\...
- Tue Sep 24, 2019 3:44 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33611
Re: uansycio.websocket.server/example_websock.py
Thank's Jomas, With your advices I get a step further. On the client side (Android Firefox) I get the following output : WebSocket Test CONNECTED SENT: WebSocket rocks ERROR : undefined DISCONNECTED On the server I get the following output: b'Host: 192.168.4.1:8081\r\n' b'User-Agent: Mozilla/5.0 (An...
- Mon Sep 23, 2019 2:29 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33611
Re: uansycio.websocket.server/example_websock.py
Hello, I would like to build a GUI running on handled device (smartphone or the like) for esp mcu's. The communication would be built upon asyncio version of websockets via wifi. All the bricks seems to be available in the micropython-lib repository: "uasyncio", "uasyncio.websocket.server" After cha...
- Thu Aug 01, 2019 5:53 am
- Forum: ESP32 boards
- Topic: Pulse counter support
- Replies: 27
- Views: 41779
Re: Pulse counter support
It seems able to handel encoders: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/pcnt.html - it count rising and/or falling edge - a filter can be set to avoid glinches - up to 8 counter are availables, not as much as STM32, but it enable quite sophisticated projects...
- Fri Jul 26, 2019 2:12 pm
- Forum: ESP32 boards
- Topic: Pulse counter support
- Replies: 27
- Views: 41779
Re: Pulse counter support
Hi,
Yes I think it would be usefull for keeping track of an for encoder for instance.
I think it would be a nice feature to add at the V2.0 roadmap https://github.com/micropython/micropython/issues/4821, still I have no idea of what coding effort it would involve...
Yes I think it would be usefull for keeping track of an for encoder for instance.
I think it would be a nice feature to add at the V2.0 roadmap https://github.com/micropython/micropython/issues/4821, still I have no idea of what coding effort it would involve...
- Thu Jul 04, 2019 7:00 am
- Forum: General Discussion and Questions
- Topic: 3d printer firmware based on pyboard
- Replies: 17
- Views: 11025
Re: 3d printer firmware based on pyboard
What is the max number of pulses the RMT can be setup for From espressif RMT doc: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/rmt.html Selection of the clock source, note that currently one clock source is supported, the APB clock which is 80Mhz - rmt_set_source_...