Search found 5 matches

by arikb
Sun Jul 10, 2016 6:01 pm
Forum: General Discussion and Questions
Topic: Newbie question: HD44780 LCD, PCF8574T mux, I2C, WiPy
Replies: 4
Views: 6688

Re: Newbie question: HD44780 LCD, PCF8574T mux, I2C, WiPy

@pythoncoder - I do have a protocol sniffer but I don't understand I2C enough to grok its output. It's a Gabatronics Xprotolab, so I can't copy and paste here. I will try to shorten all of the wires and pay close attention to the connections. The LCD and the WiPi do share a common ground but I've be...
by arikb
Sun Jul 10, 2016 2:49 am
Forum: General Discussion and Questions
Topic: Newbie question: HD44780 LCD, PCF8574T mux, I2C, WiPy
Replies: 4
Views: 6688

Re: Newbie question: HD44780 LCD, PCF8574T mux, I2C, WiPy

Upon further investigation with a logic probe, it seems that when the error occurs - the LCD (or rather the PCF8574T) keeps the data (SDA) signal low. Forever. That is until I power-cycle it. There's something it really doesn't like, it seems. I tried sniffing the I2C protocol and got some data, but...
by arikb
Fri Jul 08, 2016 9:16 pm
Forum: General Discussion and Questions
Topic: Newbie question: HD44780 LCD, PCF8574T mux, I2C, WiPy
Replies: 4
Views: 6688

Newbie question: HD44780 LCD, PCF8574T mux, I2C, WiPy

I've been trying to puzzle this thing for a while, and I'm probably doing something very wrong here. I've connected this "LCM1602" LCD that has an I2C interface based on PCF8574T. I use GP23 and GP24 for it, which on my WiPy are SCL and SDA respectively. First thing I did was initialise I2C and scan...
by arikb
Sat Oct 10, 2015 2:04 pm
Forum: WiPy and CC3200 boards
Topic: Network, serial setup at boot
Replies: 11
Views: 15466

Re: Network, serial setup at boot

Thank you Dani and Damien. I've integrated both of your comments and this code is working as expected now: # boot.py -- run on boot-up from machine import UART from network import WLAN from os import dupterm from time import sleep_ms SSID = 'my-ssid' AUTH = (WLAN.WPA2, 'hunter2') # enable the UART o...
by arikb
Fri Oct 09, 2015 11:57 pm
Forum: WiPy and CC3200 boards
Topic: Network, serial setup at boot
Replies: 11
Views: 15466

Network, serial setup at boot

Hello folks, I've received my WiPy + dev board, it is functioning. Just so I can play with it better, I'm trying to achieve the following on boot (in boot.py): 1. On boot, go on my home network and obtain an IP address via DHCP 2. Print the IP address to UART 0 (the serial-to-USB) 3. Duplicate the R...