PCB for Shifter Circuits - Project Showcase - Netduino Forums
   
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

PCB for Shifter Circuits


  • Please log in to reply
22 replies to this topic

#1 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 02:33 AM

I have been designing for a little while now a few circuits which I commonly use the 74HC595 to control. Right now these are:

  • LCD Screen
  • 7 Segment Display
  • 7 Individual LED Driver

This list is changing and growing as time passes.

I have been designing my circuit using ExpressSch and the PCB with ExpressPCB. ExpressPCB offers 'cheap' PCB manufacturing with 3 PCBs measuring 3.8" by 2.5" for $60 with shipping.

Below is my circuit diagram and the PCB diagram. Each of the boards will be separated manually and can be daisy chained together.

Posted Image

Posted Image

Thoughts? Comments?
Steve


My Other Hobby: Engineer Turned Baker

#2 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 03:37 AM

Here is a better pic of the PCB showing traces ...

Posted Image
Steve


My Other Hobby: Engineer Turned Baker

#3 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 01 May 2012 - 04:18 AM

Hello Steve, could you post the schematic a bit larger (e.g. pdf)? Thanks and cheers
Biggest fault of Netduino? It runs by electricity.

#4 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 04:40 AM

Here is a bmp of the schematic

Attached Files


Steve


My Other Hobby: Engineer Turned Baker

#5 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 01 May 2012 - 06:22 AM

Okay, thanks...a bit better.


Some consideration (just 'cos you are going to pay $60)...
-- Schematic
  • for the leds, you have correctly used one resistor per led, but for the 7-seg display, you didn't. I'd use one resistor per segment as well, otherwise you'll notice a different brightness upon the number of segments activated.
  • why did you supply two 595's with 3.3V instead of 5V? There's no reason at all. By using +5V, you'll (1) obtain more brightness for the leds/display, (2) overload lesser the Netduino regulator, and (3) the 595 is *not* "+5V tolerant". I mean that you're driving the data-input of the 2nd 595 (being +3.3V powered) with the +5V output of the 1st 595. Simply use +5V for the whole circuit and forget the +3.3 at all.
  • the LCD backlight is switched by the NPN transistor without any resistor. Either you'll burn the transistor, or -worse- the LCD backlight. If none of them would happen, you'll have of sure an overheat of the transistor, and an huge current flowing through. I'd provide a resistor (let's say 10-20 Ohms 0.5 Watt) in series to the backlight.
  • Always backlight. In my LCD library, I didn't wasted a 595 pin for the backlight. Instead, I chose to drive the transistor (through a resistor) using a PWM output. That yields the ability to adjust the brightness of the backlight by simply tuning the PWM duty-cycle.
  • Both the leds and the 7-seg display are reversed. For the led strip, if you mean to drive them using a positive logic (logic high means led light), it's correct to wire them to the ground, but the "diode-arrow" should also be oriented toward ground. For the 7-seg display, you've used a common-anode display (supposedly), which have to be wired to +V. If so, the diode-arrow should be oriented toward the 595 outputs. Also notice that the logic will be negative (i.e. logic low means segment light).
  • I didn't check, but bear in mind that there's a segment standard map, which uses A=bit 0, B=bit 1, etc. If you're already considered it, forget this point.
  • For the leds strip, isn't worthwhile to leave free the bit 7, instead of the bit 0?

-- PCB.
  • Are there two LCDs? In the schematic there's only one...
  • LCD layout. If you place the two LCD sockets in such a way, the user is obliged to wire them, and that's tedious. Instead, it's pretty comfortable to sold a male strip to the LCD board, and use a female strip for the driver board (have a look here). However, that require a bit of space because the size of the LCD itself. Note that there are LCD having the pads either bottom or top, or even both.

Hope it helps. That's only to save your investment: if you want, forget everything!
Cheers
Biggest fault of Netduino? It runs by electricity.

#6 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 06:49 AM

Thanks for the response. Ill respond to it tomorrow when it's not so late.
Steve


My Other Hobby: Engineer Turned Baker

#7 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 06:08 PM

Mario, I am going to try to answer all your points one by one.

1)
The brightness changes very slightly with different for the seven seg display but not very noticeably. I did this to keep the overall size of the pcb down.

2)
If 5V is used for the LEDs, they will use 15 mA each or 106mA for the 595 which is above the 70 mA its allow to drive. Is this correct?

3)
I have LCDs hooked up like this and this is the tutorial I have followed. My link They seem to work fine.

4)
Do you have a link to your library?
Steve


My Other Hobby: Engineer Turned Baker

#8 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 06:14 PM

5) The seven seg is wired like this tutorial: http://netmftoolbox....itshift7Segment The seven segment is wired this way b/c thats how the library was written. I will probably reverse the LED driver though as reverse logic isn't as intuitive. 6) Same as point 5 7) I might reverse this, but Ill write a simple function so this could be corrected behind the scenes.
Steve


My Other Hobby: Engineer Turned Baker

#9 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 06:16 PM

Now to PCB stuff. 1) I am putting multiple b/c they are going to be cut out at home once they are printed. I wanted to see how many I could fit into the space. 2) GREAT IDEA. Ill definitively implement this so the user can change the LCD plugged in. Thanks for all the advice.
Steve


My Other Hobby: Engineer Turned Baker

#10 neslekkim

neslekkim

    Advanced Member

  • Members
  • PipPipPip
  • 350 posts
  • LocationOslo, Norway

Posted 01 May 2012 - 10:08 PM

any reason for using the 595 instead of say, MAX7219?, maybe it is camera issues, but have seen lot of flickering with shiftregisters when creating 8x8x8 cubes, but that might be other things of course.. Havent tested the differences myself yet, but have ordered a bunch of 595 and the max, to see how they work out.

--
Asbjørn


#11 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 10:10 PM

I used the 595 bc they are cheap n common
Steve


My Other Hobby: Engineer Turned Baker

#12 neslekkim

neslekkim

    Advanced Member

  • Members
  • PipPipPip
  • 350 posts
  • LocationOslo, Norway

Posted 01 May 2012 - 10:15 PM

ok, I bought 10 max7219 for $6.80, and 10 595's for $2.50, that is totals, not so bad prices though. But if 595 works just as well..

--
Asbjørn


#13 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 01 May 2012 - 11:09 PM

Where did you purchase for that price? I can get the 595s for that at dipmicro. My projects use LEDs for showing the status of various things like power and activity.
Steve


My Other Hobby: Engineer Turned Baker

#14 neslekkim

neslekkim

    Advanced Member

  • Members
  • PipPipPip
  • 350 posts
  • LocationOslo, Norway

Posted 02 May 2012 - 04:10 AM

here: Max7219 http://www.ebay.com/...3#ht_1241wt_905 595 http://www.ebay.com/...#ht_1163wt_1163 Still waiting for them though, and hoping they are good.

--
Asbjørn


#15 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 02 May 2012 - 04:12 AM

When you get the MAX7219 and use it could you share the code / circuit with me?
Steve


My Other Hobby: Engineer Turned Baker

#16 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 02 May 2012 - 04:14 AM

Those are pretty darn cheap on eBay though shipping from china so it will take FOREVER to get here.
Steve


My Other Hobby: Engineer Turned Baker

#17 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 02 May 2012 - 04:39 AM

Mario, I am going to try to answer all your points one by one.

1)
The brightness changes very slightly with different for the seven seg display but not very noticeably. I did this to keep the overall size of the pcb down.

2)
If 5V is used for the LEDs, they will use 15 mA each or 106mA for the 595 which is above the 70 mA its allow to drive. Is this correct?

3)
I have LCDs hooked up like this and this is the tutorial I have followed. My link They seem to work fine.

4)
Do you have a link to your library?


1) okay.

2) isn't a problem of brightness, but of voltage compability: you must match the correct voltage. All the HC595 should be supplied using +5V only, and the resistors raised so that the max current won't be overflown. Note that is just a problem regarding the value of the resistors, nothing else.

3) A LCD backlight requires about 150mA for shining. It's a led matrix/array, which has to be correctly powered. In which way could you limit the current whereas is too much? In the schematic of Szymon, the transistor must "eat" everything is over the necessary, causing (1) overheat and (2) power wasting. A simple resistor is enough: it is *NOT* the best solution, but it's damn simple.

4)
http://highfieldtale...y-for-netduino/


5) The seven seg is wired like this tutorial: http://netmftoolbox....itshift7Segment

The seven segment is wired this way b/c thats how the library was written. I will probably reverse the LED driver though as reverse logic isn't as intuitive.

6) Same as point 5

7) I might reverse this, but Ill write a simple function so this could be corrected behind the scenes.


5) and 6) Stefan is a very valuable guy, but sometime is...running too fast, without actually watching at standard solutions, or commonly used patterns.
Take this chip, which is very common in the past: http://socrates.berk...iles/DM9368.pdf
It's a HEX-to-7 seg display decoder. The wiring of the display must follow the correct pattern, otherwise the result will be nonsense.

The MAX7219 is also a good idea. Please, consider the http://www.austriamicrosystems.com/ chips as well: they offer several interesting chips, yielding management of led-matrix, RGB-leds, etc.

Cheers
Biggest fault of Netduino? It runs by electricity.

#18 neslekkim

neslekkim

    Advanced Member

  • Members
  • PipPipPip
  • 350 posts
  • LocationOslo, Norway

Posted 02 May 2012 - 04:44 AM

When you get the MAX7219 and use it could you share the code / circuit with me?


It's actualy this series that lead me into that chip:
http://fabienroyer.w...ith-a-netduino/
Fabien and Bertrand have started from driving each led by itself, via 595, and at last the max chip for driving the leds

Those are pretty darn cheap on eBay though shipping from china so it will take FOREVER to get here.


Yes, free shipping from China to Norway helps, and it usually takes about two, max three weeks.

--
Asbjørn


#19 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 02 May 2012 - 05:25 AM

It's actualy this series that lead me into that chip:
http://fabienroyer.w...ith-a-netduino/
Fabien and Bertrand have started from driving each led by itself, via 595, and at last the max chip for driving the leds



Yes, free shipping from China to Norway helps, and it usually takes about two, max three weeks.


Thanks for the link.
Steve


My Other Hobby: Engineer Turned Baker

#20 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 02 May 2012 - 05:27 AM

1) okay.

2) isn't a problem of brightness, but of voltage compability: you must match the correct voltage. All the HC595 should be supplied using +5V only, and the resistors raised so that the max current won't be overflown. Note that is just a problem regarding the value of the resistors, nothing else.

3) A LCD backlight requires about 150mA for shining. It's a led matrix/array, which has to be correctly powered. In which way could you limit the current whereas is too much? In the schematic of Szymon, the transistor must "eat" everything is over the necessary, causing (1) overheat and (2) power wasting. A simple resistor is enough: it is *NOT* the best solution, but it's damn simple.

4)
http://highfieldtale...y-for-netduino/




5) and 6) Stefan is a very valuable guy, but sometime is...running too fast, without actually watching at standard solutions, or commonly used patterns.
Take this chip, which is very common in the past: http://socrates.berk...iles/DM9368.pdf
It's a HEX-to-7 seg display decoder. The wiring of the display must follow the correct pattern, otherwise the result will be nonsense.

The MAX7219 is also a good idea. Please, consider the http://www.austriamicrosystems.com/ chips as well: they offer several interesting chips, yielding management of led-matrix, RGB-leds, etc.

Cheers


Good points once again. Where would the resistor go per point 3
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.