Hello xfpd
Post your sketch, well formated, with comments and in so called code tags "</>" and schematic to see how we can help.
Have a nice day and enjoy coding in C++.
No but you can use a digital voltmeter to look at the 5V supply with and without the motor connected. They both should read the same, something above 4.8V. If you read less with the motor connected then your power supply hasn't got enough current capability for your project.
The parts all come from the Arduino Uno R3 kit. The motor and LED shift register projects that have been failing are Arduino Uno Basics. The Arduino motors run off the Arduino power supply, powered by a 9vdc battery. Looking for a way to determine if the PEM drivers or ATMEGA328P or my whole Uno os bad.
Thank you Leo. The 9vdc battery powers a small DC-to-DC (5vdc/3.3vdc) regulator to drive a small servo, stepper and indicator LEDs with Uno controlling positions, as i develop a mains-driven stepper.
I have many 9vdc "wall warts" to replace the 9v batty. Is that good for small projects, or am i injecting another unknown?