Search found 21 matches

by gatorchu
Fri Jan 10, 2020 9:37 pm
Forum: WiPy and CC3200 boards
Topic: OSError: [Errno 104] ECONNRESET in publish function in MQTT library
Replies: 7
Views: 1525

Re: OSError: [Errno 104] ECONNRESET in publish function in MQTT library

Thank you @MostlyHarmless @pythoncoder.

Thanks for all the clues. The issue is much clear right now than it looks before. I have to spend time to digest them and learn new things. I will let you know when I found something.
by gatorchu
Tue Dec 10, 2019 2:04 am
Forum: WiPy and CC3200 boards
Topic: OSError: [Errno 104] ECONNRESET in publish function in MQTT library
Replies: 7
Views: 1525

Re: OSError: [Errno 104] ECONNRESET in publish function in MQTT library

pythoncoder wrote:
Mon Dec 09, 2019 11:22 am
The LoPy is a Pycom board with their own fork of MicroPython. You may get a better response in the Pycom forum where users are more likely to own that board.
Thank you pythoncoder!

I had left the message several months ago. Seems like I haven't got any reply from there yet.
by gatorchu
Tue Nov 26, 2019 10:28 pm
Forum: WiPy and CC3200 boards
Topic: OSError: [Errno 104] ECONNRESET in publish function in MQTT library
Replies: 7
Views: 1525

OSError: [Errno 104] ECONNRESET in publish function in MQTT library

Hi, I have a Lopy board that collects the sensor's data over serial and logs them to the local SD card and then publishes the data to the database using the MQTT protocol. Most of the time the mqtt works properly, but sometimes it was errored out (I don't know what does exactly the error message mea...
by gatorchu
Tue Nov 26, 2019 10:05 pm
Forum: Drivers for External Components
Topic: Anyone working on MCP4728 (12-Bit, Quad Digital-to-Analog Converter with EEPROM Memory) driver?
Replies: 1
Views: 410

Anyone working on MCP4728 (12-Bit, Quad Digital-to-Analog Converter with EEPROM Memory) driver?

Hi friends, Is there anyone working on establishing MCP4728 (12-Bit, Quad Digital-to-Analog Converter with EEPROM Memory) driver? I am recently working on DAC expander for my device. I found the driver for MCP4725 which has only a single channel. Now I wish to have more channels, so I found MCP4728 ...
by gatorchu
Mon Oct 14, 2019 4:15 pm
Forum: Drivers for External Components
Topic: Using Standard HD44780 LCDs on LoPy4
Replies: 21
Views: 2015

Re: Using Standard HD44780 LCDs on LoPy4

@Robert, I had directly tested your modified code, it was still not working. However, your modification gives enough clues (using the i2c.writeto_mem function to write the command to the exact register.). I re-modified the driver as below, and it works perfectly. https://github.com/zhoumaomao11/pyth...
by gatorchu
Mon Oct 07, 2019 8:01 pm
Forum: Drivers for External Components
Topic: LCD160CR with Pycom boards
Replies: 9
Views: 1047

Re: LCD160CR with Pycom boards

That's smart, Jimmo. Thank you!
by gatorchu
Tue Oct 01, 2019 2:28 am
Forum: Drivers for External Components
Topic: LCD160CR with Pycom boards
Replies: 9
Views: 1047

Re: LCD160CR with Pycom boards

Yes both i2c and spi are required. I haven't looked in detail but it would appear that all the commands happen via i2c and pixel data by spi. There's an interrupt line that the driver doesn't appear to use, but I imagine it lets you get notified on touch events. (The driver just lets you query the ...
by gatorchu
Tue Oct 01, 2019 2:13 am
Forum: Drivers for External Components
Topic: Using Standard HD44780 LCDs on LoPy4
Replies: 21
Views: 2015

Re: Using Standard HD44780 LCDs on LoPy4

Hi Robert, I appreciate your detailed reply! Now I received the backpack with PCF8574 chip. It works perfectly with your modified esp8266_i2c_lcd.py in https://forum.pycom.io/topic/4841/1602-lcd-and-i2c-backpack-with-pycom. I haven't got your code tested for MCP23008 chip yet, but I will inform you ...