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

Daisy Chain of Ic74HC595 can it control a LCD screen.


  • Please log in to reply
24 replies to this topic

#1 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 22 April 2012 - 05:22 PM

I currently have an LCD screen controlled via a single Ic74HC595. However, using the daisy chain function like this so that the same 3 IO ports can do more than just control a single lcd, but maybe an lcd and leds.

[code=auto:0]Ic74HC595Chain ChainOut = new Ic74HC595Chain(SPI_Devices.SPI1, Pins.GPIO_PIN_D9, 2)/code]

The daisy chain wiring is shown HERE
Steve


My Other Hobby: Engineer Turned Baker

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 April 2012 - 05:59 PM

Hi smarcus3, It depends on the LCD and it's required speed. Can you specify which LCD?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 22 April 2012 - 06:00 PM

Hi smarcus3,

It depends on the LCD and it's required speed. Can you specify which LCD?


I was hoping you would see this.

Its this one, HERE
Steve


My Other Hobby: Engineer Turned Baker

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 April 2012 - 06:12 PM

Ahhh... you mean something like this? Cant be done. sorry. Nah, just kidding :) Let me find the source code, I've got it somewhere but not close atm. If you have a few hours?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 22 April 2012 - 06:13 PM

Yeah so that one daisy chained 595s can drive 1 lcd and other things. Sure take your time. Thanks for the help in advance.
Steve


My Other Hobby: Engineer Turned Baker

#6 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 22 April 2012 - 06:16 PM

I would love to get it in the same format as other 'interfaces' in the toolbox library such as the 7segment led.
Steve


My Other Hobby: Engineer Turned Baker

#7 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 April 2012 - 06:20 PM

I would love to get it in the same format as other 'interfaces' in the toolbox library such as the 7segment led.

It will be. I've got the code at home. I'll post it here asap :D
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#8 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 22 April 2012 - 06:21 PM

Awesome!!! I was going to take a stab at doing it, but if it is already done Ill work on something else. Can't wait to see the code. Thanks
Steve


My Other Hobby: Engineer Turned Baker

#9 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 23 April 2012 - 06:34 AM

Use the attached file to combine these two projects:
- .NET Micro Framework Toolbox
- μLiquidCrystal

Sample code:

Ic74HC595Chain IcChain = new Ic74HC595Chain(SPI_Devices.SPI1, Pins.GPIO_PIN_D8, 3); // Used Latch pin is digital pin 8, used SPI-bus is bus 1; pins 11, 12, 13
Ic74HC595LcdProvider LcdProvider = new Ic74HC595LcdProvider(IcChain, 2);
Lcd Display = new Lcd(LcdProvider);
Display.Begin(Width, Height);

Attached Files


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#10 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 23 April 2012 - 06:39 AM

Thanks. I assume I wire it up the same as on your site here: https://stefan.co/el...h-bitshift-ics/ I'll try it out tomorrow.
Steve


My Other Hobby: Engineer Turned Baker

#11 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 23 April 2012 - 06:39 AM

Thanks. I assume I wire it up the same as on your site here: https://stefan.co/el...h-bitshift-ics/

Yup, and to the LCD like this:
http://geekswithblog...id_crystal.aspx
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#12 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 23 April 2012 - 06:41 AM

I already got the lcd wired up like that so itll only be re-routing a few wires. Thanks. Ill give you a positive review. Or even 2.
Steve


My Other Hobby: Engineer Turned Baker

#13 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 29 April 2012 - 08:01 PM

I just finnaly got around to testing this and I cannot get the lcd to display anything. Which pins of the IC go to which Pins of the N. I hooked it up like the example but it is not working.
Steve


My Other Hobby: Engineer Turned Baker

#14 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 29 April 2012 - 08:03 PM

I hooked it up like the example but it is not working.

Is your LCD requiring 3.3V or 5V?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#15 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 29 April 2012 - 08:04 PM

Is your LCD requiring 3.3V or 5V?


I believe 5V but it should be receiving that. All I did was stop using the microlcd library functions and used your lines of code instead. The wiring is unchanged. I think it might be miss wired on the N side.
Steve


My Other Hobby: Engineer Turned Baker

#16 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 29 April 2012 - 08:38 PM

Just figured it out. Thanks
Steve


My Other Hobby: Engineer Turned Baker

#17 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 29 April 2012 - 08:40 PM

Just figured it out.

Thanks

Ok cool, what was the issue if I may ask? :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#18 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 29 April 2012 - 08:41 PM

Wired up wrong.
Steve


My Other Hobby: Engineer Turned Baker

#19 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 29 April 2012 - 08:51 PM

Wired up wrong.

Ahh happens to me all the time as well :)
Glad you got it running now!
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#20 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 29 April 2012 - 08:53 PM

that it does.
Steve


My Other Hobby: Engineer Turned Baker




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.