Pro/Forums

Pro/Forums (http://forums.procooling.com/vbb/index.php)
-   Testing and Benchmarking (http://forums.procooling.com/vbb/forumdisplay.php?f=61)
-   -   Some EE opinions please (http://forums.procooling.com/vbb/showthread.php?t=10028)

Groth 09-09-2004 09:54 AM

Quote:

Originally Posted by Incoherent
It's free software from ExpressPCB.

Not a bad little program. It's a lot easier to bung up a tolerable schematic with it than with the SPICE programs I have. And their PCB layout is easy and straitforward. It ain't very powerful, but the learning curve is much nicer than with the hardcore PCB programs I've failed to master.

It's a shame the output is so crippled; they certainly want the software used only with their services. Are you planning to have them make your board? Got to be a way to hack the output...

Incoherent 09-09-2004 05:42 PM

1 Attachment(s)
I'll be totally honest, I didn't realise it was a propriatory format, was just happy it was so user friendly. In any case, for me it's a great help just to get the layout, so I can do it manually.
I might use them. The little miniboard for $51 for three boards is not cheap but in the long run (actually in the short run too) it would save a hell of a lot of hassle. That way anyone else interested could perhaps benefit as well. We'll see.
Been thinking about incorporating a radiator fan speed controller into the circuit. As it stands I have a spare amp so I could take a feed from one of the INA122s and feed a fan driver. I am certain that I am able to see quite strong water temperature dependency on WB performance just with the crap thermometer I have now, I'd like to explore this and a bit of water temperature regulation could be useful.

Attaching a near final schematic for general perusal.
The fan driver is incomplete, I'll add a bit of proportionality and hysteresis later. But you get the idea.

Groth 09-10-2004 03:34 AM

Nice to see I'm not the only one who grabbed the schematic. ;)

Looks good. I like how you've used the control/data lines, should make the interface program easier. Let not forget the vital green LED!

If the time constant for your system is large enough, you could get away with just the simple on/off thermostat fan control you have shown, though I wouldn't mind seeing a PWM controller attached to your newly tasked error amplifier. :cool:

What sort of plans have you for the digitals ins and outs?

Incoherent 09-10-2004 05:15 AM

Quote:

Originally Posted by Groth
Nice to see I'm not the only one who grabbed the schematic. ;)

Looks good. I like how you've used the control/data lines, should make the interface program easier. Let not forget the vital green LED!

If the time constant for your system is large enough, you could get away with just the simple on/off thermostat fan control you have shown, though I wouldn't mind seeing a PWM controller attached to your newly tasked error amplifier. :cool:

What sort of plans have you for the digitals ins and outs?

Re control/data lines, I really can't take any credit for this, it's a carbon copy of the original circuit this is based on.
Vital green LED indeed. :) A side effect is that it keeps a 10mA load on the 317, but the blinky lights factor is of paramount importance. ;)
PWM. I'd like to do that but I'm wondering if that might be a bit noisy. ?
No real plans for the digital side, just a nice to have thing. Perhaps for switching the heater power level or multiple pumps.

Groth 09-10-2004 06:01 AM

Audible noisy or electrical noisy? For electrical it wouldn't be a big deal, assuming you have J4-4 be your PWM signal and have the power transistor and, more importantly, the fan's ground off board.

Incoherent 09-10-2004 06:30 AM

Quote:

Originally Posted by Groth
Audible noisy or electrical noisy? For electrical it wouldn't be a big deal, assuming you have J4-4 be your PWM signal and have the power transistor and, more importantly, the fan's ground off board.


Electrical. OK, suggest a good PWM circuit. Emphasis on noise reduction and simplicity.
Wouldn't I need some common ground connection? Oh. Not with an optocoupler.?

Groth 09-10-2004 07:12 AM

I guess you could use an opto, but not really necessary. I'm assuming you're going to have everything with a common ground, just without the fan's current return through your board. Given the small but real /trace/connection/wire resistance, you don't want the pulses of fan current to induce noise in your board's ground.

As for the circuit, a linear ramp sawtooth wave is easy to make with a 555 timer. Then run that into a comparator along with the output of your error amp (variable gain on that would be cool), voila PWM.

DeadEye 09-12-2004 05:32 PM

Looks like you both have been busy lately. I like how it has progressed since our last chat.
I have been very tied up with work recently, so hadnt been about much myself. I will go sit back on the sideline and give any comments/input as required but it all seems to be in hand.

BTW, I use the Ranger2 PCB program for my circuits and layouts, it gives every type of output that I would want including photoplot and gerber files for hole drilling etc.

Later guys.

Incoherent 09-14-2004 05:24 PM

Guys.

Regarding grounding of the analog side of things, do you think that a ground plane is a good idea. I am planning to seperate digital and analog grounds, connecting them only at the ADC. Tips? Suggestions?

Groth 09-15-2004 06:41 AM

Separate digital and analog ground is probably unnecessary, since the internal ADC convertion clock (1.7 MHz) is much higher that your comms clock (~1-10 KHz) and your sample rate (10 Hz?). If you really want 'em separate, use the p-port ground as your digital ground and your power connector solely analog.

Plane: yeah, cool if you can. I'd try to lay everything out as a single sided board (easier to home make) and then use the other side as a ground plane.

What sort of through-hole to surface-mount ratio are you going to have?

Incoherent 09-15-2004 02:08 PM

Quote:

Originally Posted by Groth
Separate digital and analog ground is probably unnecessary, since the internal ADC convertion clock (1.7 MHz) is much higher that your comms clock (~1-10 KHz) and your sample rate (10 Hz?). If you really want 'em separate, use the p-port ground as your digital ground and your power connector solely analog.

Plane: yeah, cool if you can. I'd try to lay everything out as a single sided board (easier to home make) and then use the other side as a ground plane.

What sort of through-hole to surface-mount ratio are you going to have?

Well, as it is evolving the board will be two sided. I will probably use the ExpressPCB service. I can see that there is no way I am going to be able to lay this out by hand and keep a decently small board.
As it is so far I am managing to keep the bulk of the analog stuf on on side with a few power and digital lines on the other. This means there is a fair bit of room for a ground plane.

The only surface mount stuff are the opamps and the instrumentation amps.

Have a gander at the current unfinished but nearing completion state of things. Right click and save target. Circuit and pcb. You need the ExpressPCB software to view it and feel free to be critical.

Not pretty, I am not giving up my day job. I decided to try the layout for size before seeing if I could incorporate a PWM generator in the available "miniboard" space. It will probably work, I will at least put the traces in.

Groth 09-15-2004 08:44 PM

Uh, both of those links are schematics, no PCB layout. :confused:

I did eventually find a layout: damn fine start, though it's a shame not to have the schematic that's linked to the PCB. Too bad the program doesn't include templates for mounting resistors/diodes vertically - could save you a bunch of space.

You like the through-hole, eh? If it was mainly surface mount and most of the complex artwork was on one side, I could've etched it for you...

Incoherent 09-16-2004 02:24 PM

Quote:

Originally Posted by Groth
Uh, both of those links are schematics, no PCB layout. :confused:

I did eventually find a layout: damn fine start, though it's a shame not to have the schematic that's linked to the PCB. Too bad the program doesn't include templates for mounting resistors/diodes vertically - could save you a bunch of space.

You like the through-hole, eh? If it was mainly surface mount and most of the complex artwork was on one side, I could've etched it for you...


Sorry about the mixup, was in a hurry.
The relevant files are DAQ_xx3.xxx. The PCB should be linked to the schematic.

I am leaning heavily towards getting it etched for me. There's a catch though, $51 for three boards. $44 shipping to Sweden. I am not feeling rich.


I do not have much/any experience with surface mount stuff. Is it easier to hand solder? I don't have any special SMD tongs or anything.

Groth 09-16-2004 07:12 PM

Most surface mount part are easy, I prefer them cause I don't like drilling holes. For resistors/caps (0805 is my size of choice), I grab them with plain old forceps (I'm grounded, of course), position them, and touch one end with a fine tipped iron that has a tiny blob of solder on it. Assuming I didn't twitch at the wrong time, the other end gets a similar blob of solder.

IC's are only a bit tougher. Grab one lead with the forceps, position the part, and tack down a corner lead. Then tack down the opposite corner. If you use a decent amount of rosin flux, you can then sweep a heavily tinned iron across the leads, soldering an entire side at once (the flux plus the solder surface tension will prevent bridging; if you do get bridging desolder braid clears it right up).

Well... the SOIC ones easy at least. If you get into TSSOP or QSOP it's more fun.

44 for shipping? :eek: That's absurd.

PCB is looking good. I'm impressed that you've needed so few vias. I think you could clear up some of the loopy paths by swapping which amp in the quad packages is doing what. Same with parallel port.

Your analog (power connector) and digital (p-port) ground: keep 'em separate. Star ground > ground loops. Same with the shunt inputs, don't tie it into board ground.

By the by, the tons of through hole stuff doesn't mean I can't make the board. It mostly means drilling your own holes. Oh, and no plated vias in home boards; components could need soldering both top and bottom.

Incoherent 09-17-2004 06:46 PM

Quote:

Originally Posted by Groth
Your analog (power connector) and digital (p-port) ground: keep 'em separate. Star ground > ground loops. Same with the shunt inputs, don't tie it into board ground.

Do you mean totally seperate analog and digital grounds? i.e. connect only the DGND pin of the ADC only to the parallel port ground? No connection to the AGND pin or power supply ground at all? Anywhere? Should the Flipflop and the digital IO's be connected to P-port ground? but at the same time they need a power ground.
Or should there be a single connection for the digital circuitry as per the datasheet...
http://w1.863.telia.com/~u86303493/C...max_ground.jpg
But they suggest a star ground.
Sorry, I get confused all the time about this.


PCB, schematic.
Damn, back when I was supposed to know all this I was drunk. I do remember hating to manually insert little via rivets so I avoided them like the plague. It carries through still perhaps.
Hmm, so surface mount is easy eh? I'll have a look at that I think.

Been thinking about the PWM circuit. The comment about the time constant triggered a flurry of calculation which led to a bit of a tiff with the Differential Calculus. I came out of it OK I think. T@t=e^(-t/c*m*(C/W))*(DTi-((C/W)*W)+(C/W)*W is my thought for the day.
Anyway, this comparator fan control circuit is a PWM circuit in a way. The triangle wave generator is the water itself and the fan. Just a really low frequency and a bit of PFM as well. :)
A bit of friday night irrelevance.

Groth 09-18-2004 01:05 PM

Yeah, they thinkin' the same thing I am, just different scales/justifications. The reason behind not connecting the board ground with the parallel port ground is induction, loop = antenna. In the meantime, the parallel port signals are noisy (no reason for the mobo maker to use filter caps on the outputs, in their normal task it doesn't matter). Beyond the loops thing, letting the the signal current return to ground via the parallel port keeps the local ground cleaner.

The latch doesn't need a similar treatment. It's not bothered by noise, and any noise it introduces when activated isn't important since you aren't going to be doing AD conversion at the same time you're setting the latch.

Then again, do I really know and understand the things I think I know and understand? :shrug:

Vias: I've never done the rivet thing, it sounds frightening. Speaking vias, you could kill a number of the ones west ot ADC if you move the Vref line to underneath the ADC (it's DC so it won't be an issue) and remove the reduntant ground connections.

The parallel port has its inputs at the north end and outputs at the south, while you have the digital-in connector to the south and the -out to the north. You could eliminate a couple vias and shorten a lot of traces there.

Ground for U7 and it neighbors is a problem. All the return current from there passes under the ADC; any noise C3 bypasses to ground will travel directly under the ADC. :(

Diff-Eq, ewww. I went to class three times, don't expect me to decypher that. You should patent that combined PWM/FM concept. :)

Incoherent 09-20-2004 04:22 PM

The beginnings of another attempt. PCB5 and schematic5.

This really is time consuming. I can't figure a way to get the digital stuff through any other way so I'm leaving it. I've moved some things arround a bit.
The via's to the west of the ADC are for some decoupling if I find I need it.

Groth 09-20-2004 09:01 PM

1 Attachment(s)
Wow, you did make a bunch of changes. Looks damn good. I like the idea of the spare holes for decoupling.

I played with it a bit, to see if the digital lines could be unkinked any. I swapped the functions of J5 and J6 and switched around which pin goes to which parallel port bit. The only thing that might cause a problem (if you're not writing your own software) is the way I switched a couple pins from the 'control' output byte. Easy enought to switch 'em back...

While I was playing I also removes a redundant power trace, ran grounds to U1 and U2, and switched around which output of U2 went to which ADC input.

I got a little carried away, but I really like puzzles. :)

Incoherent 09-21-2004 06:42 AM

Oh, you've been busy. Thanks heaps for that, I like your treatment of the ADC west components, much better than what I had.
If possible I would like to not have to change the program. The intention is to use the ISEE program here , it seems to give me what I want (a time stamped data log file) and some limited calibration possibilities. Most calibration will be done offline, in Excel but there is a very simple control language that in the ISEE program that I'm going to try and use as well. Could also be used to control the fan actually.
This means that I do not want to change the IO distribution too much, my programming ability is close to zero and I don't want the time for me to learn to be another implementation delay.
I am rerouting the digital spagetti a bit though, inspired by your treatment of it.

Edit: Looking closer at your version I suddenly realised what you've been driving at. Brilliant. Simple and obvious on reflection. Another one of what you are full of Groth.
But I will keep the ADC steering signals the same as the original, otherwise your suggestions are the bees knees.

Incoherent 09-21-2004 04:06 PM

OK, near final version is done.
PCB and Schematic 6_g.

The digital stuff has is as you suggested Groth, the only difference being I have reset the ADC control lines to where they were. Not sure if your suggestion was actually correct in this respect, what does p-port pin 17 actually do? Anway, I am happy that the software will work, it's just a matter of assigning channel numbers.
Things added are some through holes for if I later need filter resistors on the inputs and on the ADC Vdd. A matter of trace cutting.
Some verification to clear up the slight remaining confusion. Should I leave the DGND unconnected to the AGND?
Is it worth spreading the ground around the place?

Groth 09-21-2004 04:06 PM

Explains the recent rumbling in my belly... I'm full of bee's knees.

Ah, I had forgotten about that software and their project (with the stupid pdf that still won't work right for me). Handy cool stuff once the back row of p-port signals are wired how they use to be.

So where's that PWM? :D

Groth 09-21-2004 04:42 PM

Quote:

Originally Posted by Incoherent
what does p-port pin 17 actually do?

Should I leave the DGND unconnected to the AGND?
Is it worth spreading the ground around the place?

The control byte is at p-port address+2; /C0 is pin 1, /C1 is pin 14, C2 is pin 16, and /C3 is pin 17. I've no idea why three of the four are inverted.

I'd keep DGND as it is, but reserve the option of solder-bridging it to AGND if things are funky. (I learned that 'keep the options open' from you :) )

Widening the ground under the ADC would be cool, maybe even run a ground trace under it on the top layer. Large scale ground-pours? Eh, up to you. I don't think it'll make a measurable difference, but it won't hurt.

Incoherent 09-26-2004 04:49 PM

Quote:

Originally Posted by Groth

So where's that PWM? :D

How about this. DAQ_PCB6_pwm.pcb and DAQ_schematic6_pwm.sch.

Good to have it on board, I don't need to use it initially if I don't want to. Frequency and amplitude settings are component values I'll play around with a bit.
This is final pending no mistakes or better solutions found over the next few days.

Groth 09-28-2004 09:49 PM

A few inconsistancies between schematic and PCB. :confused: As is, the PWM won't work.

Edit: Superfluous exposition elided. :)

Incoherent 09-29-2004 12:06 AM

Quote:

Originally Posted by Groth
A few inconsistancies between schematic and PCB. :confused: As is, the PWM won't work.

Damn it. A mistake there. I haven't considered your suggestions yet but the glaring error is that the inverting input to amp4 U1 pin13 should be fed from amp2 U10 pin7 integrator OP. NOT pin 2-5.

U1 is the comparator. U10 is the triangle wave generator. A near exact copy of this from Maxim. Only component values will be different.

Groth 09-29-2004 12:35 AM

Hmm, yeah that'll work. Different way than I've seen before, I hadn't though of offsetting/compressing the triangle wave. Cool.

For what it's worth, some combinations of settings for VR1 and VR2 will stop the oscillator.

Incoherent 09-29-2004 01:17 AM

Quote:

Originally Posted by Groth
Hmm, yeah that'll work. Different way than I've seen before, I hadn't though of offsetting/compressing the triangle wave. Cool.

For what it's worth, some combinations of settings for VR1 and VR2 will stop the oscillator.

Well, as you've spotted, it lets me use the raw temperature level untouched. No gain stage. Reducing the amplitude of the TW increases the effective gain and the bias is the set point.
Not a very conventional approach I guess but in my Excel model it works. :rolleyes: I think I'll have some fun with settings before I get something stable. :)

Groth 09-29-2004 02:23 AM

Yup, the more I think about it, the more I like your PWM. Compact, subtle.

I retract all the good things I said previously in reference to surface mount ICs. I just spend a couple hours fighting with a 10 lead micro-SOIC monster (0.3 mm leads on 0.5 mm centers). :mad: I hate it when I can't run traces between an IC's legs.

Incoherent 09-29-2004 03:33 AM

Indeed. The first 186 sample that Maxim sent me was one of those but 20 lead. I flapped around with it a bit before deciding that the SO 1.27mm pitch was the smallest I could contemplate. They were good enough to send me a DIP package as well.
I wonder if there really is any real space gain from using these small chips. The external components need to be further away relatively in order for the leads to have the room to flare out and connect. Plus as you say, there is no room for traces between legs.
I guess its all 4 layer and up.

Groth 09-29-2004 04:42 AM

With access to reflow soldering and plenty of plated-through vias, they're great for space saving. Us poor hobbyists have to make due with with crude solding irons and boards etched in the kitchen sink. :shrug: The board I was working on ended up 30x70 mm; it'd be tough to put 130 pins worth of through-hole in that space.

SOIC/1.27 is my favorite. Small, but big enough for a between-the-legs trace. You do know you're required to make something with that SSOP Max186. :D


All times are GMT -5. The time now is 05:33 AM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
(C) 2005 ProCooling.com
If we in some way offend you, insult you or your people, screw your mom, beat up your dad, or poop on your porch... we're sorry... we were probably really drunk...
Oh and dont steal our content bitches! Don't give us a reason to pee in your open car window this summer...