Search found 145 matches

by liudr
Sun Oct 06, 2019 5:31 pm
Forum: ESP32 boards
Topic: Does MicroPython support asyncio on ESP32?
Replies: 3
Views: 112

Re: Does MicroPython support asyncio on ESP32?

The MicroPython implementation is uasyncio and it works well on ESP32. There is information about it here including a tutorial. tl;dr It can be installed using upip . Thanks pythoncoder, as always. I've not used MP for a while. I would humbly ask for a pointer to use upip.py. Do I just place it in ...
by liudr
Sun Oct 06, 2019 4:13 pm
Forum: ESP32 boards
Topic: Does MicroPython support asyncio on ESP32?
Replies: 3
Views: 112

Does MicroPython support asyncio on ESP32?

I'm considering porting the azure python sdk (preview) to ESP32 but the first thing I saw in the code was this asyncio module that supports concurrency. Is this currently supported in MicroPython for ESP32? How well is it support, if I may ask? Thanks.
by liudr
Sun Sep 22, 2019 6:01 pm
Forum: ESP32 boards
Topic: ESP32 flashing Arduino via SPI pins?
Replies: 2
Views: 86

Re: ESP32 flashing Arduino via SPI pins?

Thanks. I need to investigate it a bit more. Used ESP32 for a while with MicroPython, which is great, but never tried doing SPI with it, fearing it would be too slow. I'll post what I find on this subject.
by liudr
Thu Sep 19, 2019 8:51 pm
Forum: ESP32 boards
Topic: ESP32 flashing Arduino via SPI pins?
Replies: 2
Views: 86

ESP32 flashing Arduino via SPI pins?

I use a version of avrdude to upload .hex files to arduino via SPI ins on raspberry pi 0w. I wish to move to ESP32 due to the lack of supplies of raspberry pi 0w. I wonder if anyone has done this already, on ESP32 in MicroPython, uploading intel .hex files to arduino via spi. Thanks. I'm fairly comf...
by liudr
Wed Dec 19, 2018 7:22 pm
Forum: General Discussion and Questions
Topic: New user with questions about documentation
Replies: 2
Views: 265

Re: New user with questions about documentation

Hi, I agree with you that the ADC should be documented. The name analog-to-digital-converter really means nothing to those not knowing what it does. I'd rather call it voltage input. The 0-4095 to 0-3.3V mapping should probably be mentioned in the doc. The 3.3V supply may not be exactly 3.3V. If you...
by liudr
Mon Sep 10, 2018 9:48 pm
Forum: ESP32 boards
Topic: Serial port multiplexing
Replies: 3
Views: 425

Re: Serial port multiplexing

Thanks! I was able to understand the code, which uses uart_set_pin() to set pins. I couldn't find uart_set_pin() in the repo. Could you help? Anyway, it doesn't seem to handle past pins, such as setting them to I or T with pull-down. I guess I'll have to do that myself right before switching the pin...
by liudr
Mon Sep 10, 2018 4:49 am
Forum: ESP32 boards
Topic: Serial port multiplexing
Replies: 3
Views: 425

Serial port multiplexing

I am thinking about this scenario where I need more than 2 serial ports, (not gonna touch the one running REPL). I've done this on a dev board, activate a serial port with machine.UART() one a pair of pins. Then activate the port on another two pins. It works. However, I'm trying to do it safely. Wh...
by liudr
Mon Sep 10, 2018 4:41 am
Forum: ESP32 boards
Topic: how to receive integer from uart 1
Replies: 3
Views: 407

Re: how to receive integer from uart 1

I usually implement an end-of-message character and send my numbers by plain ASCII string. This way I can more easily decode the message. Another thing you can try is to use json format (still send it in with an end-of-message character such as \n). On PC side, use json module to serialize your data...
by liudr
Mon Sep 10, 2018 4:15 am
Forum: ESP32 boards
Topic: changing GPIO36 pins as INPUT or OUTPUT
Replies: 5
Views: 484

Re: changing GPIO36 pins as INPUT or OUTPUT

Not only is GPIO36 an input-only pin, it also does NOT feature pull-up/down resistors: Note 2 The following pins are input-only. These pins do not feature an output driver or internal pull-up/pull-down circuitry: SENSOR_VP (GPIO36), SENSOR_CAPP (GPIO37), SENSOR_CAPN (GPIO38), SENSOR_VN (GPIO39), VDE...
by liudr
Mon Sep 10, 2018 4:07 am
Forum: ESP32 boards
Topic: Esp32 & micropython connect to console via wlan
Replies: 4
Views: 650

Re: Esp32 & micropython connect to console via wlan

I am running a fork of the official firmware by loboris. The firmware has FTP server and Telnet server. If you set them up in main.py you can get remote access through Telnet (same as REPL) and upload files with FTP, simultaneously.

https://github.com/loboris/MicroPython_ ... _LoBo/wiki