lesson one, motor plus micro on the same power supply = bad news.
second, diagrams help debuging, people know whats connected to what..
take the four batteries, and power the mbed straight from them, its internal voltage regulators will cope with up to 9V. (technicaly more, but heat is an issue, stuff melts) I normally feed it 5 volt from a L7805, as I often need a 5 volt line, and use 12 or 7.5V lead acid (car) batteries. they can cook things so kinda worthwhile doing, L7805s cost ~£5 for 25 posted, mbeds are ~£50, go figure.
if your dropping the voltage to the mbed to about 5.2V, using 4 1.5V batteries, once they start discarging the voltage will drop, and the regulators cut out. if the motors draw a lot of current on a change, the voltage over the battery drops as there is a delay in response, this is sufficent to cause the mbed to reset. this potentialy generates a while one loop of reset, start motor, cut out reset.... the fact it works with one suggest this is a likely cause.
another thing, most rechargeable AA and AAA batteries are 1.2V, which gives, 4.8 V. the mbed may work partialy at less than 4.5V, but not very well, as the regulator can't cope with the low drop.
if thats confused you, welcome to the unsimple world of power supply. you will need to do reasearch.
Hi,
I'm in the process of designing and building a mbed based robot. All sensors (anti collision, linefollowing, temp, light and sound) work fine.
Now my problem: Whenever I connect the mbed and two motors (using an h-bridge, tried L293 and L298) to the same powersource the mbed keeps resetting during startup. With one motor connected all works fine. In the past I build the asuro robot and the probot-128 both available at Conrad. These robots are AVR based and use the same motors as I do and also the same powersource (4 AAA 1.5V batteries). Voltage is limited using a 1N4007 diode with a forwarding voltagedropt of 0.8 volts. Both the Asuro an ProBot-128 work fine using two motors.
Why is the mbed so sensitive for current peaks (I assume that's the problem), and is there a solution?
TIA Bon