Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 04-29-2012, 09:36 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: Apr 2012
Location: Portugal
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
i2c LCD

Hello guys.. does anyone have the mpguino code to work with i2c lcd instead of serial? it would be a great help for me..

Cheers
Fábio Eliseu

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-29-2012, 11:25 PM   #2 (permalink)
EcoModding Lurker
 
JellyBeanDriver's Avatar
 
Join Date: Jun 2010
Location: So. Cal
Posts: 92
Thanks: 2
Thanked 15 Times in 13 Posts
The MPGuino code is for a parallel LCD display, not serial.

What display do you want to use? Does it have a daughterboard that is doing the I2C to parallel conversion?
__________________
1992 Geo Metro, 1.0L 5spd, 435,000 miles on the original engine and trans!
- knuckles/hubs/brakes/13" wheels from a 2000 Metro
- running 175 70R13
- averaging 51.7 MPG, 56.9MPG best tank.
- self built MPGuino
- http://www.dschmidt.com/MPGuinoJBD.html
  Reply With Quote
Old 07-16-2013, 08:59 PM   #3 (permalink)
EcoModding Lurker
 
Join Date: Jul 2011
Location: spain
Posts: 19
Thanks: 19
Thanked 0 Times in 0 Posts
i try to use 16x2 lcd with l2cd of ebay what code modify for work with l2c instead of parallel?

this: IIC/I2C/TWI/SPI Serial Interface Board Module Port For Arduino 1602 LCD Display | eBay


thanks
  Reply With Quote
Old 07-16-2013, 09:40 PM   #4 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 830
Thanked 708 Times in 456 Posts
That's going to be a bit of work to write I2C code to replace the existing parallel LCD routines. You've got hardware coding to deal with, then you probably have protocol issues to address. Where is the specification sheet for this?
  Reply With Quote
Old 07-17-2013, 07:42 AM   #5 (permalink)
EcoModding Lurker
 
Join Date: Jul 2011
Location: spain
Posts: 19
Thanks: 19
Thanked 0 Times in 0 Posts
IIC/I2C/TWI/SPI Serial Interface Board Module Port For Arduino 1602 LCD Display


LiquidCrystal_I2C1602V1

Description :

This is another great IIC/I2C/TWI/SPI Serial Interface. As the pin resources of Arduino controller is limited, your project may be not able to use normal LCD shield after connected with a certain quantity of sensors or SD card. However, with this I2C interface module, you will be able to realize data display via only 2 wires. If you already has I2C devices in your project, this LCD module actually cost no more resources at all. It is fantastic for Arduino based project.



Specification:

I2C Address: 0x27
Supply voltage: 5V
the backlight and contrast is adjusted by potentiometer
Come with 2 IIC interface, which can be connected by Dupont Line or IIC dedicated cable
Compatible for 1602 LCD

  Reply With Quote
Old 07-20-2013, 03:54 AM   #6 (permalink)
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
Just use a parallel LCD. If you really want to use fewer pins, you can still convert your parallel LCD to serial, using a single inexpensive chip. It uses 5 pins total for the LCD, instead of 8, and the code library has already been posted on the web somewhere (very similar to the code in mpguino, so it's easy to update). More info at Arduino Playground - LCD3wires
  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
dewasha (07-20-2013)
Old 07-20-2013, 05:38 PM   #7 (permalink)
EcoModding Lurker
 
Join Date: Jul 2011
Location: spain
Posts: 19
Thanks: 19
Thanked 0 Times in 0 Posts
it is assumed that the chip is precisely for that to go from parallel to serial and therefore only uses 3 wires, the question is not the connection but the code to modify the obduino32k to work properly with a display connected serially with only 3-wire
  Reply With Quote
Old 07-20-2013, 05:57 PM   #8 (permalink)
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
I converted my mpguino to 3-wire, using the 74hc164. I haven't built an obduino32k, but i'll look at the code & see what I can do for you (and everyone else).

edit1: Ugh. It looks like all the LCD code is in the Arduino library, not directly in the obduino source. This may take a while. I'm surprised the Arduino folks didn't add a 3-wire option to the library code. It should be a popular option for people wanting to use extra lines for an SD card, or other inputs.

edit2: Looks like someone else already wrote a replacement LiquidCrystal library for Arduino, including your i2c. You should find all you need right here: https://bitbucket.org/fmalpartida/ne...stal/wiki/Home


Last edited by nickdigger; 07-20-2013 at 06:44 PM..
  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
dewasha (07-21-2013)
Reply  Post New Thread






Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com