Pratik Makwana
Published © CC BY-NC-SA

DIY PWM Driver

In this project, I will show you how to make PWM Controller.

IntermediateFull instructions provided3 hours4,411
DIY PWM Driver

Things used in this project

Hardware components

Power MOSFET N-Channel
Power MOSFET N-Channel
×1
TLP250 - Gate Driver
×1
Resistor 330 ohm
Resistor 330 ohm
×2
1N5403 - Diode (3A)
×1
Resistor 1k ohm
Resistor 1k ohm
×1
Capacitor 100 nF
Capacitor 100 nF
×1
Screw Terminal Block : 3 PIN (5mm)
×1
PCB : FR4 Glass Fiber
×1
Header (2.54mm) - 2 PIN
×1

Software apps and online services

EAGLE CAD (PCB Desinging Software)

Story

Read more

Custom parts and enclosures

PWM Driver

Schematics

PWM Driver

Code

Arduino PWM Code

Arduino
int potPin = A0;   // Analog input pin that the potentiometer is attached to A0 pin
int potValue = 0;  // Value read from the pot
int pwm1 = 9;      // PWM is on digital pin 9 
int pwmval = 0;

void setup() 
{
  Serial.begin(9600);               // Open serial monitor at 9600 baud
  pinMode(pwm1, OUTPUT); 
}

void loop() 
{
   potValue = analogRead(potPin);              // Read the pot value
   pwmval = map(potValue, 0, 1023, 0, 255);
   analogWrite(pwm1, pwmval);
   Serial.println(pwmval);
   delay(100); 
}

Credits

Pratik Makwana

Pratik Makwana

0 projects • 5 followers
I'm electronics enthusiast. I like to design and develop new things.

Comments