As mentioned in my previous thread, I'm having real trouble with my photovore.I'm using a PIC16F54 connected to 2 h bridges made of BD139 and BD140s. When I tell the PIC to turn on both h bridges (ie, keep two pins high) it's all fine and dandy. When I load up code to take inputs from 2 LDR/resistor dividers and turn on the motors appropriately, nothing happens, although if I spin the motor shaft the motor will turn and run, but slowly. I've rewritten the code, changed pins, tried a BC337 pre amplifier and tried phototransistors as sensors all to no effect.
Boosting the h bridge voltage to 9v had some effect, but a Nicad 9v pack is far too large for my bot. The PIC is running at 5v, as is the LDR sensors. Trying PICKIT2 +5v and a regulated 5v supply from a PP3 made no difference. The hbridge is running at 3volts.
I know it sounds childish, but I'm really beginning to regret ever starting this project. I've had lots of problems, but I've solved them. I've been working on this one for a day, and I've had no luck. It's the last thing in the way of this project, and it's getting to me.
Boosting the h bridge voltage to 9v had some effect, but a Nicad 9v pack is far too large for my bot. The PIC is running at 5v, as is the LDR sensors. Trying PICKIT2 +5v and a regulated 5v supply from a PP3 made no difference. The hbridge is running at 3volts.
I know it sounds childish, but I'm really beginning to regret ever starting this project. I've had lots of problems, but I've solved them. I've been working on this one for a day, and I've had no luck. It's the last thing in the way of this project, and it's getting to me.