Newbee here, playing around with the Arduino Uno starter kit.
I have connected 9V DC motor through the H-bridge.
In general the code/setup works as expected, I can start/stop the motor with a button etc.
My problem is that the motor spins a bit back and forth when Arduino boots.
Before it finally stops.
This is the case even with nothing at all in the setup/loop code blocks.
The only thing that seems to help is to uncomment the LCD initialization:
// LiquidCrystal lcd(8, 7, 5, 4, 3, 2);
I believe I have checked that the LCD pins and the H bridge pins are not mixed up.
Can I control the initialization sequence better?