: eldorado1 (and others)...my brain is failing me...help!



fubar569
05-03-08, 01:48 PM
K...so i figured i'd finally crawl underneath the car and install a switch on that transmission line pressure wire...but the weather is horrible (rain...bah!) so i can't actually get to it. in the mean time, i'm contemplating the best way to do this...

i know i should install a switch on the ground wire. cut the switch, break connection, defaults to max line pressure...ok simple enough, but an indicator light would be nice to let me know im in "zomgdragracing" mode. this makes things a fair bit more complicated...seems i'd need at least a SPDT relay and a simple switch...one "pole" would have the harness side of the (-) wire to NC, the trans side to common, and nothing to NO...correct? the other "pole" would have the positive side of the indicator lamp connected to NO, nothing to NC, and a 12v power source to common...correct?...when powered on this should break the connection in the (-) wire giving max pressure and turning on my little LED to let me know i'm about to snap my neck...i figure if i use a lighted switch in this it would allow 2 safety measures...the switch would illuminate when power should be going to the relay, and the LED would indicate the relay is active and Max pressure applied...if any one of these are out something would be messed up and i need to abort and investigate further...

sound correct so far?

Also, eldo...you have built a box that varies line pressure based on throttle percentage...could you offer me some guidance perhaps on a simplified version of that using a dial and switch of some sort? i figure a switch and relay to divert signal to a box controlled by dial. once switch is active, select amount of pressure you wish from stock to max on the dial...

sound feasible? - we can discuss in PM further if you wish...

eldorado1
05-03-08, 10:12 PM
Words hurt my brain. I understand pictures better. But I'm lazy too, so here's another idea. If you use a switch, you open up a circuit that goes from +12 through the pressure coil to the PCM where it's grounded. If you open up that circuit, you can get a 12V drop from that. In order to prevent (much) current from flowing through the pressure coil and not giving you max pressure, what about using an LED with a resistor across the switch? There might even be illuminated switches that have this built in. It would need to be an LED switch though, not a lamp. If you need a schematic let me know

For the line pressure vs TPS, what I did was programmed a microcontroller to feed me a % duty cycle PWM vs. the 0-5V TPS input. That's the easiest way in my opinion. Otherwise it involves some kind of PWM circuitry which could get messy. It's 1 chip vs 6 chips.

fubar569
05-04-08, 08:31 AM
i wish i could draw nice pictures for you, but im hungover... :alchi:

MS Paint will have to do

this should be a visual of what i described above. Add a ground wire to that switch if you use an illuminated one, but thats what i had in mind:

http://mysite.verizon.net/fubar569/blarg.JPG

fubar569
05-04-08, 08:38 AM
If you need a schematic let me know

For the line pressure vs TPS, what I did was programmed a microcontroller to feed me a % duty cycle PWM vs. the 0-5V TPS input. That's the easiest way in my opinion. Otherwise it involves some kind of PWM circuitry which could get messy. It's 1 chip vs 6 chips.

anything you can provide would be a wonderful help. It also looks like i have much more reading to do on said microcontrollers...

PM inbound. I'd rather discuss further specifics there for a couple reasons...

AJxtcman
05-04-08, 12:50 PM
PWM Motor Speed Controller

http://www.solorb.com/elect/pwm/pwm1/pwm1.gif

Pulse Width Modulator for 12 and 24 Volt applications


This circuit was featured in an article in Home Power Magazine #75
(C) G. Forrest Cook 1999

http://www.solorb.com/elect/pwm/pwm1/

Introduction
A pulse width modulator (PWM) is a device that may be used as an efficient light dimmer or DC motor speed controller. The circuit described here is for a general purpose device that can control DC devices which draw up to a few amps of current. The circuit may be used in either 12 or 24 Volt systems with only a few minor wiring changes. This device has been used to control the brightness of an automotive tail lamp and as a motor speed control for small DC fans of the type used in computer power supplies.
A PWM circuit works by making a square wave with a variable on-to-off ratio, the average on time may be varied from 0 to 100 percent. In this manner, a variable amount of power is transferred to the load. The main advantage of a PWM circuit over a resistive power controller is the efficiency, at a 50% level, the PWM will use about 50% of full power, almost all of which is transferred to the load, a resistive controller at 50% load power would consume about 71% of full power, 50% of the power goes to the load and the other 21% is wasted heating the series resistor. Load efficiency is almost always a critical factor in solar powered and other alternative energy systems.

One additional advantage of pulse width modulation is that the pulses reach the full supply voltage and will produce more torque in a motor by being able to overcome the internal motor resistances more easily. Finally, in a PWM circuit, common small potentiometers may be used to control a wide variety of loads whereas large and expensive high power variable resistors are needed for resistive controllers.

The main Disadvantages of PWM circuits are the added complexity and the possibility of generating radio frequency interference (RFI). RFI may be minimized by locating the controller near the load, using short leads, and in some cases, using additional filtering on the power supply leads. This circuit has some RFI bypassing and produced minimal interference with an AM radio that was located under a foot away. If additional filtering is needed, a car radio line choke may be placed in series with the DC power input, be sure not to exceed the current rating of the choke. The majority of the RFI will come from the high current path involving the power source, the load, and the switching FET, Q1.

Specifications
PWM Frequency: 400 Hz
Current Rating: 3 A with an IRF521 FET, >10A with an IRFZ34N FET and heat sink
PWM circuit current: 1.5 ma @ 12V with no LED and no load
Operating Voltage: 12V or 24V depending on the configuration

Theory
The PWM circuit requires a steadily running oscillator to operate. U1a and U1d form a square/triangle waveform generator with a frequency of around 400 Hz.
U1c is used to generate a 6 Volt reference current which is used as a virtual ground for the oscillator, this is necessary to allow the oscillator to run off of a single supply instead of a +/- voltage dual supply.

U1b is wired in a comparator configuration and is the part of the circuit that generates the variable pulse width. U1 pin 6 receives a variable voltage from the R6, VR1, R7 voltage ladder. This is compared to the triangle waveform from U1-14. When the waveform is above the pin 6 voltage, U1 produces a high output. Conversely, when the waveform is below the pin 6 voltage, U1 produces a low output. By varying the pin 6 voltage, the on/off points are moved up and down the triangle wave, producing a variable pulse width. Resistors R6 and R7 are used to set the end points of the VR1 control, the values shown allow the control to have a full on and a full off setting within the travel of the potentiometer. These part values may be varied to change the behavior of the potentiometer.

Finally, Q1 is the power switch, it receives the modulated pulse width voltage on the gate terminal and switches the load current on and off through the Source-Drain current path. When Q1 is on, it provides a ground path for the load, when Q1 is off, the load's ground is floating. Care should be taken to insure that the load terminals are not grounded or a short will occur.

The load will have the supply voltage on the positive side at all times. LED1 gives a variable brightness response to the pulse width. Capacitor C3 smooths out the switching waveform and removes some RFI, Diode D1 is a flywheel diode that shorts out the reverse voltage kick from inductive motor loads.

In the 24 Volt mode, regulator U2 converts the 24 Volt supply to 12 Volts for running the pwm circuit, Q1 switches the 24 Volt load to ground just like it does for the 12 Volt load. See the schematic for instructions on wiring the circuit for 12 Volts or 24 Volts.

When running loads of 1 amp or less, no heat sink is needed on Q1, if you plan to switch more current, a heat sink with thermal greas is necessary. Q1 may be replaced with a higher current device, suitable upgrades include the IRFZ34N, IRFZ44N, or IRFZ48N. All of the current handling devices, switch S1, fuse F1, and the wiring between the FET, power supply, and load should be rated to handle the maximum load current.

Construction
The prototype for this circuit was constructed on an IC proto board with parts and wires stuck into the holes of the proto board. One version of the finished circuit was used to make a variable speed DC fan, the fan was mounted on top of a small metal box and the PWM circuit was contained inside of the box.
A simple circuit board (see picture) was built using a free circuit board CAD program, PCB (1) that runs on the Linux operating system. The circuit board image was printed on a PostScript laser printer onto a mask transfer product called Techniks Press-n-Peel blue film (2). The printed on film is then ironed on to a cleaned piece of single sided copper clad board. The board is etched with Ferric Chloride solution. Holes are drilled with a fine gauge drill bit, parts are soldered in, and the board is wired to the power and load. This technique is great for producing working boards in a short time but is not suitable for making large numbers of boards. A board pattern is shown in Fig 3, this may be photo-copied onto a piece of press-n-peel blue film, or used in a photographic etching process.

Alternately, the dead-bug construction method may be used, this involves taking a piece of blank copper PC board, glueing a wire-wrap IC socket sideways to the board with 5 minute epoxy, then soldering all of the parts to the wire wrap pins. Grounded pins can be soldered directly to the copper board.

Alignment
No alignment is required with this circuit.
Use
This circuit will work as a DC lamp dimmer, small motor controller, and even as a small heater controller. It would make a great speed control for a solar powered electric train. The circuit has been tried with a 5 Amp electric motor using and IRFZ34N FET and worked ok, D1 may need to be replaced with a faster and higher current diode with some motors. The circuit should work in applications such as a bicycle motor drive system, if you experiment with this, be sure to include an easily accessible emergency power disconnect switch in case the FET shorts out and leaves the circuit full-on.
Wire the circuit for 12 Volts or 24 Volts as per the schematic, connect the battery to the input terminals, and connect the load to the output terminals, be sure not to ground either output terminal or anything connected to the output terminals such as a motor case. Turn the potentiometer knob back and forth, the load should show variable speed or light.

Parts
U1: LM324N quad op-amp
U2: 78L12 12 volt regulator
Q1: IRF521 N channel MOSFET
D1: 1N4004 silicon diode
LED1 Red LED
C1: 0.01uF ceramic disc capacitor, 25V
C2-C5: 0.1uF ceramic disk capacitor, 50V
R1-R4: 100K 1/4W resistor
R5: 47K 1/4W resistor
R6-R7: 3.3K 1/4W resistor
R8: 2.7K 1/4W resistor
R9: 470 ohm 1/4W resistor
VR1: 10K linear potentiometer
F1: 3 Amp, 28V DC fast blow fuse
S1: toggle switch, 5 Amps

Parts Sources
Jameco 1-800-831-4242 http://www.jameco.com/
Digi-Key 1-800-DIGIKEY http://www.digikey.com/

(1) Free PCB Software for Linux
(2) Techniks, Inc P.O. Box 463 Ringoes, NJ 08551 908-788-8249 Press-N-Peel

Printed Circuit Artwork
PWM PCB artwork in GIF format and in PostScript format
PWM parts silk screen in GIF format and in PostScript format
Silkscreen clarifications: the unlabeled circular pattern near LED1 is a wire jumper and the part labeled FB1 is really R9.

The connections for the 8 pin header on the printed circuit board are as follows:

Header layout as oriented
in PCB artwork:
7 5 3 1
8 6 4 2

1: VR1 clockwise
2: VR1 counter clockwise
3: 12V Supply + and Load +
4: VR1 wiper
5: 12V Supply + and Load +
6: 12V Supply -
7: Load -
8: 12V Supply -

PWM Motor/Light Controller
Power this project from sunlight with a CirKits solar power circuit kit.
These two schematics are variations on another PWM circuit that I designed. The diagrams are for 12V operation only and there are high side (common ground) and low side (common +12V) versions. The low side version of the circuit uses an N Channel FET, the high side version of the circuit uses a P Channel FET. N Channel devices tend to handle more current than P Channel devices, they are also less expensive. The high side version of the circuit is useful when one side of the load has to be grounded.

This circuit can switch a fairly high amount of current, an IRFZ34N MOSFET can handle over 35 Amps if connected to a proper heat sink. Higher power FETs, such as the IRFZ48N or IRF1010Z can be substituted if even larger currents are required. It is also possible to connect multiple FETs in parallel for even more current capacity. Always use thermally conductive grease between the FET and the heat sink, and remember that the heat sink is electrically live.

Inductive loads (motors) may require special care since they can generate large voltage spikes that can damage the MOSFET. Replacing the 1N4002 with a fast recovery diode may help absorb the reverse voltage kick when driving an inductive load such as a motor. If you use these circuits for experiments with electric vehicles, be sure to install a circuit breaker in series with the battery, the circuit breaker should be easy to reach by the driver. This is especially important due to the fact that when MOSFETs fail, they often short out, leaving the motor on at full speed.

Note that the pwm control has an opposite effect on these two circuits, the low side version is on with a high pin 7 output voltage and the high side version is on with a low output.

The inductor on the gate side of the power MOSFET transistor can be a ferrite bead or a few turns of wire wrapped around a 10 ohm, 1/4W resistor. The purpose of this part is to prevent RF oscillations from occurring in the MOSFET circuitry.

Note: if the circuit does not completely turn off and on when the 10K potentiometer is fully left and right, replace both of the 3.9K resistors with 3.3K resistors.


12V low side PWM Motor/Light Controller
http://www.solorb.com/elect/pwm/pwm2/pwm2.jpg


12V high side PWM Motor/Light Controller
http://www.solorb.com/elect/pwm/pwm2/pwm3.jpg




(C) G. Forrest Cook 1999