swisscheese:
Hi,Here is the motor, it is a brushless dc motor with hall sensor -
To run the motor I am using a bld 120a motor driver -
The battery I am using is a 14.4 Li-ion 1500 mah. Samsung cells.
I don't have a diagram but will try and explain the setup as best as possible.
I have power coming from battery going to voltage Regulator. Regulator set to output 9 Volts. This is going to Vin on arduino board. Encoder also gets its power from this.
The arduino is then hooked up to a relay which switches on during Setup() with power coming from 5v on arduino board. The relay supplies 14.4v for the motor driver directly from the battery.
This is working perfectly when on the bench with no load/torque applied but when put in the door and button pressed the motor starts for a split second and then stops as the count is getting lost and going outside settings I have in the code. I.e the code is setup to only power the motor between count 50 and 300 however the count is skipping straight to about 63000 when button pressed.
Please take the time and draw a circuit diagram, it will help us to check how you have connected everything, include power supplies and pin/terminal names.
What regulator are you using and if it is a LM series regulator, do you have the appropriate capacitors connected to it?
In the long term it will be easier to help you.
A picture of your project will also help.
Thanks.. Tom..