Hello. I'm working on a project. I'm using an dual relay module as an H-bridge. I want to control this with an atmega 328 p-pu. So here's my problem. I'm suppose to be able to control a 12V dc motor back/forwarth with this system, but it doesn't work very well. It work perfectly without load, but as soon I connect the motor, everything starts acting wierd.
The motor is supose to run a certain amount of time if I'm not stop it with help of an obstical sensor(Ir). Problem is when I attach the 12 dc motor. It starts but it shout down middle of nowhere. I'm able to start again and it might run for a few secounds, then turn of even though it shouldn't. The microcontroller count every time the button has been pressed. Even that might failure from time to time. (When the motor are attached to the circuit.)
I have done my best. but now I need your help. and excuse me if the grammer in my English ain't pefect. I will post the schematics of the circuit.
Please, tell me if you need more information. Maybe you guys will spot the problem in the schematics instantly. Otherwise I will be happy to tell you more.
The motor is supose to run a certain amount of time if I'm not stop it with help of an obstical sensor(Ir). Problem is when I attach the 12 dc motor. It starts but it shout down middle of nowhere. I'm able to start again and it might run for a few secounds, then turn of even though it shouldn't. The microcontroller count every time the button has been pressed. Even that might failure from time to time. (When the motor are attached to the circuit.)
I have done my best. but now I need your help. and excuse me if the grammer in my English ain't pefect. I will post the schematics of the circuit.
Please, tell me if you need more information. Maybe you guys will spot the problem in the schematics instantly. Otherwise I will be happy to tell you more.
Attachments
-
113.4 KB Views: 15
-
74.8 KB Views: 10