Unexpected behaviour of 12V DC Motor with PIC Microcontroller – electroSome https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/feed/ Sat, 18 Mar 2023 05:00:08 +0000 https://bbpress.org/?v=2.6.9 en-US https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11921 <![CDATA[Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11921 Thu, 17 Dec 2015 12:23:45 +0000 George Mathew Dear Sir,

I am trying to make a robotic car with two 12V dc motors(30 rpm) and an L293D  and using PIC16F877A.

My problem is that when motors are disconnected,The voltage levels on on the output of  L293D (already connected its inputs to outputs of PIC) is changing as per the sequence in the Program. But Once the motors are connected, The sequence sometimes change,may not change and may sometime stay constant and voltage levels not changing according to program.

For eg if  ‘1’ ‘0’ is the condition for motor to rotate in anticlock wise direction.and suppose we change it to ‘0’ and ‘1’,If the motors are not connected,the program is working fine and output is behaving properly else not.

Actually what is the problem,Is there any solution??

 

]]>
https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11922 <![CDATA[Reply To: Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11922 Thu, 17 Dec 2015 12:56:10 +0000 Ligo George Hi,

Your problem seems to be with Power Supply. Hope you are using same power supply for powering DC Motor and PIC Microcontroller. There will be a sudden drop in the supply voltage when the motor is powered, this will reset the microcontroller and program starts from the beginning again and again.

Try the following,

  1. Use separate 12V and 5V power supplies.
  2. Make sure that every components used in the circuit is able to provide peak current required during motor switching
  3. Increase the capacitance of both 12V and 5V rail. Eg : Put 1000µF for 12V and 100µF for 5V. Add 0.1uF near each ICs.
]]>
https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11924 <![CDATA[Reply To: Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11924 Fri, 18 Dec 2015 02:38:50 +0000 Ligo George Please let me know whether the problem is solved or not.

]]>
https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11925 <![CDATA[Reply To: Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11925 Fri, 18 Dec 2015 05:30:54 +0000 George Mathew Thank you for your response sir…

As you said,I am using a 12V common power supply.By using a 7805 regulator,it is cut down to 5V and is supplied to PIC board section and IC supply voltage .

For 12V   pin (Vs) in L293D,It is taken in parallel from 12V dc power in the board and there is no connection with PIC section.then how this will happen??

Also Is capacitances necessary??

Rgds,

George

]]>
https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11926 <![CDATA[Reply To: Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11926 Fri, 18 Dec 2015 06:50:36 +0000 George Mathew checked with seperate power supply also……but no result.

]]>
https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11927 <![CDATA[Reply To: Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11927 Fri, 18 Dec 2015 06:53:23 +0000 Ligo George Ripples in the 12V rail will be coupled to 5V rail also and DON’T FORGET to make ground common when you are using separate power supplies.

]]>
https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11928 <![CDATA[Reply To: Unexpected behaviour of 12V DC Motor with PIC Microcontroller]]> https://electrosome.com/topic/unexpected-behavior-dc-motor-pic/#post-11928 Sat, 19 Dec 2015 05:41:13 +0000 George Mathew Dear Sir,

I connected power supply like that only.Ground was common. But that was not the problem.I connected back the supply as earlier in parallel.

As you said, problem was that ripples.When I connected a 1000uf(25V) capacitor  in parallel with Vs Pin(12V) and the Ground pin of  L293D, the problem was solved.

Thanks for your support.

Rgds,

George

 

]]>