good evening all. Please can you assist me in understanding what I have done wrong and give me some guidance lol.
I am trying to use a 4 channel H bridge motor driver shield to control a 5V motor. i Have connected it to my arduino mega board and connected a 9V battery to the INPUT. I have removed the jumper.
I have used the code from my library on IDE that I downloaded and using an "if" command , the motor should run full speed, but I am only receiving 1.4V at the output.
If this is the standard one, it's good for smoke detectors not for a motor. They lack the ability to provide a strong current for a long time.
Your 9V battery probably can't provide enough current for your motor, thus the voltage drop.
What are the motor voltage and current requirements?
Much too few information to give any useful advices.
We need technical information about the motor ( as already requested) and which H-bridge you are using.
Welcome!
Check Nine-volt battery - Wikipedia
Actual battery voltage measures from 7.2 to 9.6 volts, depending on battery chemistry. If you are also powering the Arduino from it as your question indicates the odds are slim it will work for more then a very short period.
I will take a SWAG and say you are using a L298 for the motor driver, that part will drop 3 volts and burn that in heat. Subtract 3 from 7.2 you get 4.2 volts on the motor. When it starts it will draw current dropping the 4.2 to (guess) 3.5V. Get an external power supply or several AA, C, or D batteries in series.
Let us know how you do!