Offline
Full Member
Karma: 1
Posts: 120
|
 |
« on: January 24, 2013, 03:13:32 pm » |
My project consists of:
5 4051 multiplexer chips (31 pots connected to 4 chips, all connected to "master" 4051) 6 4021 registers (46 buttons) 4 74HC595 registers (27 LEDs) 1 LM324D amp
Now I was thinking of separating the power lines like this
+5V from arduino to 4021+74HC595+LM324D, GND from each of those chips to arduino GND +9V to 4051, ground from those chips to GND of 9V adapter.
Why? Because I've learned 4051 are really sensitive. When there is nothing connected to Arduino except from those mux chips everything seems to work fine, but the more stuff I add readings become worse.
What should I do? I do not have much experience with grounds and larger schematics like this (larger for me at least) so please advise me.
|
|
|
|
|
Logged
|
|
|
|
|
Anchorage, AK
Offline
Sr. Member
Karma: 10
Posts: 492
|
 |
« Reply #1 on: January 24, 2013, 04:33:37 pm » |
By "Arduino ground", are you using an actual Arduino board, or making your own PCB? If you're doing your own PCB, don't run from IC to IC, use planes instead.
Biggest thing is to use 100nF caps on each power pin to ground. Use a 10uF cap nearby each "group" of ICs to remove any power dips. If you're making your own board, a 100uF cap at the PSU entry helps too. If noise is still a problem, you may need to use inductors between noisy components.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16563
Available for Design & Build services
|
 |
« Reply #2 on: January 24, 2013, 04:40:48 pm » |
Make sure to connect all power supply grounds together. Your description does not read like you have.
|
|
|
|
|
Logged
|
|
|
|
|
South Texas
Offline
God Member
Karma: 8
Posts: 976
|
 |
« Reply #3 on: January 24, 2013, 06:19:59 pm » |
I would recommend de-coupling caps for every device.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 1
Posts: 120
|
 |
« Reply #4 on: January 24, 2013, 06:54:40 pm » |
By "Arduino ground", are you using an actual Arduino board, or making your own PCB? This whole project is on one PCB. There are two ground planes - one for 4051 chips and one for the other ones. I attached the picture. Do note that the board isn't finished yet. The first GND plane (upper) will be connected to Arduino and other (lower) to 9V adapters ground. Is that correct anyways? Biggest thing is to use 100nF caps on each power pin to ground. Use a 10uF cap nearby each "group" of ICs to remove any power dips. If you're making your own board, a 100uF cap at the PSU entry helps too. If noise is still a problem, you may need to use inductors between noisy components.
So I should add caps to mux chips aswell?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 9
Posts: 281
|
 |
« Reply #5 on: January 24, 2013, 08:24:25 pm » |
Both grounds will still have to be joined somewhere. Choose a single common point where the "bridge" should be.
Power bypass caps on EVERYTHING, positioned as close as possible to the chip's power pins.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 73
Posts: 6631
Arduino rocks
|
 |
« Reply #6 on: January 24, 2013, 09:23:36 pm » |
Can we clarify if ground for the 4051's means Vss or Vee?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16563
Available for Design & Build services
|
 |
« Reply #7 on: January 24, 2013, 09:29:20 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 73
Posts: 6631
Arduino rocks
|
 |
« Reply #8 on: January 24, 2013, 10:09:12 pm » |
They call Vss ground, not Vee. We are talking about the CD4051, not the 74HC4051 though - there will possibly be differences in thresholds. I'm not sure you can reliably drive the control inputs from 5V when Vdd is 9V, it would be more common for Vee = -5V, Vss=gnd=0V, Vdd=+5V from what I understand.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16563
Available for Design & Build services
|
 |
« Reply #9 on: January 24, 2013, 11:39:51 pm » |
Yes, unless you were running from a single supply. Then Vee = Gnd.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 9
Posts: 281
|
 |
« Reply #10 on: January 24, 2013, 11:58:45 pm » |
It looks like the chips require split +/-5V supply.
you can buy +/-5V DC-DC converters, that's the easiest way to solve this.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 1
Posts: 120
|
 |
« Reply #11 on: January 25, 2013, 05:53:31 am » |
I'm having difficulties understanding this. So in short best thing to would be to just use Arduinos +5 power supply and use decoupling caps on every chip?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 836
|
 |
« Reply #12 on: January 25, 2013, 06:50:51 am » |
You only need the -ve where your "analog" signal is going negative. As it would for a very small AC or audio signal.
If your input signal is a DC analog signal with the same +ve and ground limits as your circuit, you don't need the negative input and you can connect both Vss and Vee to ground.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 1
Posts: 120
|
 |
« Reply #13 on: January 25, 2013, 08:42:19 am » |
Maybe the simpler solution would be just to use caps on each chip, connect everything to Arduino except for potentiometers on another source?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 1
|
 |
« Reply #14 on: January 25, 2013, 04:26:33 pm » |
just to make sure that you don't get brown outs I would connect a LM7805 or buck ic to the 9V supply and connect all the 5V ic's to it. You cant overdo it with the decoupling caps.
|
|
|
|
|
Logged
|
|
|
|
|
|