Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Newbie: Need to convert a pulse to flat

Status
Not open for further replies.

amirox

Newbie level 3
Newbie level 3
Joined
Jan 15, 2012
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,328
Hello everyone,

I am new to electronics. I am using a variation of an arduino board.

I have an LED that is refreshed constantly (I can control the rate in my program,lets say 1000 times a second). Instead of having the LED on or off, it is turned on and off 1000 times a second. of course it looks like it is on to human eye.

I want to drive a fan when the LED is on (well, looks on). Using a transistor (PN2222) and a power supply I tried to connect the legs of LED to the fan with no luck. I am almost sure it doesn't work because the power to LED is cut of 1000 times a second.

Is there any electronic component that I can use to flatten this pulse of power:-|?
 

After reading your post, it appears you are attempting to implement a DC motor control using what is referred to as Pulse Width Modulation (PWM).

Although it is not clear from your post, the purpose of the LED in the DC motor control circuit.

Are you attempting to create a visual feedback with the LED intensity as a reference to the DC motor speed?


The principle behind PWM DC Motor Control is by maintaining a set frequency, while varying the duty cycle of the square wave you can effectively control the speed of a DC motor.

Obviously a duty cycle of 100% is in effect a study voltage, equivalent to the peak voltage of the square wave.

As you decrease the duty cycle the delivered average voltage drops until you finally reach a duty cycle of 0%.

For unidirectional control, a transistor or Darlington transistor can be utilized. However, for bidirectional control an H-Bridge, like a L298D, is commonly employed.

The appropriate device required to drive a DC motor, is largely dependent on the specifications and requires of the DC Motor being driven.

Whenever you drive a device with an inductor/coil you should ensure there is protective circuitry to protect against Back EMF from the coils magnetic field collapsing, like a diode across the motor terminals and make sure you are have an appropriate base resistor in place.

Simple Transistor DC Motor Driver Schematic:




Here are a few projects you might find of interest using Arduino and PWM:

Using PWM outputs with an Arduino and a LED

High-Power Control: Arduino + TIP120 Transistor

Tutorial 5 for Arduino: Motors and Transistors

Arduino controlling fan or motor speed with PWM

Arduino Programming Part 3

DC motor control with a SN754410 motor driver IC and the Arduino board

**broken link removed**

Secrets of Arduino PWM

Arduino Motor Shield

**broken link removed**



If you post your code and a schematic of your circuit, I maybe able to assist you further.

Hope the info helps in your endeavors,

BigDog
 

You can also check this article

**broken link removed**

Alex
 

thank you guys for the reply. There are lots to learn.

I tell you about our project.

I am trying to get 120 digital outs. The pins are connected to 120 DC motors (fans), a series of fans pushing air in and out of 120 inflatable pillows. The fan motors are not reversible so the work around is to use two fans stacked on top of each other in different directions and toggle between the two fans to inflate and deflate the pillows. Also each motor needs to be addressed individually.

The idea was to work with Peggy (Peggy 2 Light Emitting Pegboard kit) to get enough outputs, and with the existing library we would be able to use the patterns and examples that are available to start with.

Basically I was after a mega-mega arduino.

I assembled the board (Peggy2LE) and soldered the LEDs but legs their leg long enough to be able to connect a wire to it. Then I ran the wirs to a 1k resistor and a transistor (PN2220) that should turn on a fan (12v ,0.4ma). Using a 12v power source and the transistor I wish to turn the a fan on when an LED turns on.

I am very new to electronics. I read the articles you sent me but still not quite suite what to do? do I need a capacitor?

Any suggestions on how to do this?

p.s. what software do you use to draw schemetics?
 

In my view, you would want to apply a DC voltage to each fan motor to make it run at full speed. Any multiplexing logic should be placed before the motor driver, but not feed a pulsed voltage to the motor itself.

For the driver transistor selection, you need to know the fan motor specification, nominal voltage and maximal current consumption.

I think, that the output interface can be most simply implemented by a single 120 bit shift register chain, preferably using standard serial-in/parallel-out devices like cd4094, 74HC595 etc. It should be able to update the outputs in less than a millisecond.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top