Hobbies And Interests
Home  >> Hobbies >> Other Hobbies

How to Build an Electronic Fan Controller

You can control the speed of an electric direct current fan using a variable resistor connected between the terminals of the fan and the power supply. However, this simple solution presents a couple problems. Using a variable resistor means you cannot connect the circuit to an automated system. Additionally, routing relatively large currents through a single variable resistor can present a fire risk. To overcome these problems, use a PICAXE microprocessor to control the motor through pulse width modulation, or PWM.

Things You'll Need

  • PICAXE-08M proto board kit data sheet
  • PICAXE-08M proto board kit
  • Soldering iron
  • L293D datasheet
  • L293D driver IC
  • Side cutters
  • Thin gauge wire
  • Computer and data cable
  • Variable DC power supply
Show More

Instructions

  1. Build the Prototyping Environment

    • 1

      Open your PICAXE-08M proto board kit and place the parts in position. Insert the two resistors, capacitor and DIL socket. Bend the pins out slightly on the reverse of the board to prevent them from dropping out.

    • 2

      Check the polarity of the components and solder them in place.

    • 3

      Connect the L293D driver IC to the PICAXE 08M chip via the proto board. Connect pins 4, 5 and 13 via a heat sink to ground. Use the thin gauge wire to make these connections.

    • 4

      Connect the remaining driver input pins to the PICAXE controller according to the datasheet. Connect the fan motor to pins 3 and 6 of the L293D chip.

    • 5

      Solder in place the 1N4001 reverse bias diode across the terminals of the fan to prevent back EMF from damaging the circuit.

    Upload the Code to Your PICAXE Chip

    • 6

      Connect your PICAXE proto board to your computer using the data cable.

    • 7

      Input the PWM commands into the PICAXE interface. The syntax for this is "pwm pin, duty, cycle". So for the fan controller system used here, the command would be "pwm 2, variable1, variable2". You can find further usage of the PWM function in the PICAXE manual.

    • 8

      Connect the power supply and upload the code to your PICAXE chip.

    • 9

      Remove the data cable, reset the power supply and test your electric fan controller.


https://www.htfbw.com © Hobbies And Interests