I made plexiglass enclosures for the three new H-bridge circuits. They are very prettiful.
I got the ten MOSFETs I ordered in the mail and set out to repair the damaged H-bridge circuit. I got a good start by melting another MOSFET. I was still working on the flame-blackened board that had an unknown problem. I probably should have just started over, but I wanted first of all to find out WHAT the problem was, and second I already had most of the work done on this board.
After many hours of testing, desoldering, resoldering, and fighting combat stealth mosquitos, I found the problem. Where a 100k resistor should have been, there was a 47 ohm resistor. How frustrating. I took all my test point solders out and began resoldering components in. Just as I was soldering the last connection, the mosquitos launched a synchonized V-formation attack, but I perservered. I connected the board, and it worked. I now have all four H-bridge circuits fully functional.
Tomorrow is my last day before getting ready for camp, and my goal was to have all the electronics for the car done. I will build the plexiglass housings for the H-bridge circuits, and solder the on/off security circuit for the car, thereby completing all the circuitry.
I haven't posted in a while. I just finished the emergency circuit. The signals for the H-bridge circuits (high power, low power, and direction) pass through this circuit. When the big red emergency button is pressed it will bypass the other circuitry and put the brakes on 50% to bring the car to a stop. There is a picture of it below.
A couple days ago I soldered the other three H-bridge circuits, but when I tested them only two worked properly. The third only ran the motor in one direction. When I got out the multimeter to test points, I accidentally touched two solder points together and the whole thing went up in flames. Not fun. I ordered some more MOSFETs, as well as four 20AH batteries which I got for under $100 including shipping and handling plus a one year warranty!
I'm leaving for a summer camp on the 31st and I'll be going up north, so I think I'll pick up Chris's welder on the way back to begin the frame.
A couple days ago I made an encosure for the interface circuit. Over the past couple days I've been working on getting the reverse circuit to work, and today I soldered it and built an enclosure for it. This circuit's job is to prevent the car from being switched from drive to reverse or from reverse to drive while the car is in motion. If the reverse switch is switched to reverse while the car is driving, the green drive light turns off and the red illuminated reverse switch blinks on and off until either it is put back in the drive position or the car comes to a full stop. It works the same for going in drive from reverse. The circuit can tell if the car is moving by checking for a current accross the motor terminals. This board has 18 components per square inch and 72% of the perf holes are used.
I finished soldering the interface circuit today. This circuit has 12 connection wires total. It has two power wires, three wires for the gas pedal potentiometer, three wires for the brake pedal potentiometer, one wire for reverse, and three wires (direction, high-side power, and low-side power (PWM)) to control the four H-bridge circuits. These last three have indicator lights soldered onto the board - a red LED for direction, a green LED connected to the PWM signal, and a yellow LED for high-side power. I tested the circuit on the H-bridge circuit I've built with one of the motors and it worked great.
This is a complicated little circuit. When generating a PWM signal, it must ignore the gas pedal position if the brakes are on. In addition to generating the PWM signal, this circuit has to give the motor controller a direction signal. This signal must be forward if the gas pedal is down and the car is going forward and backwards if the gas pedal is down and the car is in reverse, but in both situations it must be inverted if the brakes are on. It uses an XNOR gate (or snore gate as I like to call it) to accomplish this. It also has an output to turn the high-side MOSFETs in the H-bridge circuits on or off. They are on whenever the brakes are off and off when the brakes are on.
This is definitely one of my more-compact circuits. It's smaller than the voltage doubler circuit. With a total component count of 56 and dimensions of 2 1/8" x 1 1/4", there are approximately 21 components per square inch, and that's not including wires. Of the 286 holes in the perf-board, 211 of them have a component lead or wire through them. That's 74% of the holes that are used. Look at the pictures to see what I mean.
A few days ago I made a nice little enclosure for the voltage doubler circuit. It might even be water proof! Yesterday I finished and printed out a circuit for all the vehicle's core electronics. Last count I think there were 75 transistors.