Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Troubleshooting LCD With PCF8575 I2C Backpack


  • Please log in to reply
1 reply to this topic

#1 gismo

gismo

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts

Posted 03 June 2015 - 08:45 PM

Using this device: 
1. http://www.amazon.co...eywords=lcd i2c

 

 

I've converted/ported the driver from here to c#:

2. https://bitbucket.or...ystal/downloads

 

 

I've also referenced some code from here:

3. http://forums.netdui...-and-ir-remote/

I tested the device on an Arduino with the sample code from the drivers in the 2nd link. It works. This device has a different pin mapping than link 3 which is allowed with the arduino driver. I ported this over to c#.

It kind of works...but something is not totally right. I am still able to turn off the backlight and I WAS able to set and move the cursor, but I am not sure what happened and now It's not taking any commands..Yet, I can still control the backlight. When the cursor was working, I was able to send text to the display, but it only worked one time until I restarted the netduino. Now, Only backlight can be controlled.

Code Attached. I've got 4.9k pull-ups on the System..I've also tried pulling up to both 3.3 and 5v with no change.

 

(The code is a work in progress, and will be commented properly when completed)

 

Also attached is the modified I2C bus class that I use(and have used with other devices)
Attached File  I2CBus.cs   2.66KB   4 downloads

 

Update: I fixed a few kinks in the code and it's working! Code Attached

Attached File  LCD.cs   14.81KB   6 downloads

 

I'll be updating the code to implement more of the methods from the arduino driver and will post in the projects forum.

 



 



#2 gismo

gismo

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts

Posted 03 June 2015 - 09:30 PM

Issue resolved.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.