Hey guys, first, or second post, I'm not sure. Anyway, here's my problem. First off, there are NO erroneous connections, I checked every one with the multimeter. Basically I have an AtMega8. I have an LED, and a transistor connected to pin 17/PB3 (OC2). This pin outputs a PWM signal. But, that's not really the problem, because this happens regardless if I have the MCU in the socket or not. Here's a quick and dirty schematic for the problem I'm having.
Geeze that pic sucks, here's a link to it so you can zoom in/download it.
http://picasaweb.google.com/lh/photo/1ezKOYv14f3ieDaJ6oA4Bg?feat=directlink
Ok, so as you can see, both the LED and a transistor are connected to pin 17. Two transistors are then connected to the first. (I'm not sure if I have it drawn right, but it's connected right, because I've used these transistors in very similar situations before, I always face them the same direction, and power goes in the top, out the bottom, with the control wire in the middle.) I'm doing this because I have a 5V PWM signal that I want to control 2 12V fans with. Yes, there are probably better ways, but this is what I thought of. So the PWM signal is sent through the first transistor, which is controlled by pin D7. The PWM signal then controls the two other transistors, letting the 12V signal through to the fans, and making me able to control their speed at the same time. The transistors aren't PWM optimized, but I'm under the speed they can switch at. Anyway, 12V shows up at wire 1 and 2, which makes sense (obviously, it's connected directly to the 12V source). However, 12V is ALSO present at wire 3, the control wire for both of the transistors. This is where I think something is wrong. 12V is also present at the wire connect to D7. However, when I test continuity, there is 700 Ohms of resistance between the wires 1 and 3 (and obviously 2 and 3). I thought that was odd, so I checked on another transistor not in use, and I got the same results. Since there is 12V present at wire 3, the transistor "opens" and lets current through to the fans, which also weirdly enough lights the LED. I'm so confused, I don't know where I went wrong. If anyone can offer any wisdom I'd be grateful. Of course the rest of the AtMega is wired correctly, I just didn't feel like doing the whole schematic. Again, this happens when the AtMega isn't in the socket.
Geeze that pic sucks, here's a link to it so you can zoom in/download it.
http://picasaweb.google.com/lh/photo/1ezKOYv14f3ieDaJ6oA4Bg?feat=directlink
Ok, so as you can see, both the LED and a transistor are connected to pin 17. Two transistors are then connected to the first. (I'm not sure if I have it drawn right, but it's connected right, because I've used these transistors in very similar situations before, I always face them the same direction, and power goes in the top, out the bottom, with the control wire in the middle.) I'm doing this because I have a 5V PWM signal that I want to control 2 12V fans with. Yes, there are probably better ways, but this is what I thought of. So the PWM signal is sent through the first transistor, which is controlled by pin D7. The PWM signal then controls the two other transistors, letting the 12V signal through to the fans, and making me able to control their speed at the same time. The transistors aren't PWM optimized, but I'm under the speed they can switch at. Anyway, 12V shows up at wire 1 and 2, which makes sense (obviously, it's connected directly to the 12V source). However, 12V is ALSO present at wire 3, the control wire for both of the transistors. This is where I think something is wrong. 12V is also present at the wire connect to D7. However, when I test continuity, there is 700 Ohms of resistance between the wires 1 and 3 (and obviously 2 and 3). I thought that was odd, so I checked on another transistor not in use, and I got the same results. Since there is 12V present at wire 3, the transistor "opens" and lets current through to the fans, which also weirdly enough lights the LED. I'm so confused, I don't know where I went wrong. If anyone can offer any wisdom I'd be grateful. Of course the rest of the AtMega is wired correctly, I just didn't feel like doing the whole schematic. Again, this happens when the AtMega isn't in the socket.