Pages: [1]   Go Down
Author Topic: PWM 12V pump control  (Read 1042 times)
0 Members and 1 Guest are viewing this topic.
Detroit
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Lets do science
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Howdy,

So i'm building a simple circuit using arduino's PWM and a potentiometer to control a 12V pump(powered by an external source). I tested the circuit with an LED and it worked just fine. I connected the circuit to a uln2803 darlington transistor pair and again tested the circuit with an LED powered by an external source through a darlington pair. The LED lit up but I could not control its brightness. The LED is connected to the output of the IC and the + of a 5V source. A simple diagram is shown below.


Any idea's as to why it's not working?

Thanks
Logged

0
Offline Offline
Full Member
***
Karma: 5
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

what about ground ? both the microcontroller (arduino) and external power has to have common ground

your diagram shows that only external power is connected to the ground pin on the ULN... what about arduino ?
« Last Edit: August 16, 2012, 09:26:03 am by kerimil » Logged

Detroit
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Lets do science
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Currently, the source and the arduino do not share a common ground.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 435
Posts: 23597
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"the source and the arduino do not share a common ground"
That would be a problem. As far as the ULN2803 is concerned the base voltage is just floating.
Need the grounds connected so all signal levels are properly referenced to something.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Full Member
***
Karma: 5
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

there is your problem

look

both arduino and power source ' - ' have to be connected to gnd pin on the ULN chip
Logged

Detroit
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Lets do science
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now it works just dandy. Thanks for the help
Logged

Pages: [1]   Go Up
Jump to: