Arduino Tutorial for Beginners 11 - Analog Signal Output (PWM) (Control Speed of DC Motor)

preview_player
Показать описание
Welcome to this video on Arduino Tutorial for Beginners. This video about Analog Signal Output (PWM)

This video shows how to control speed of DC Motor with a little bit transistor knowledge. Arduino lacks a true analog output, so we need to use Pulse-width modulation (PWM) to simulate a variable DC supply voltage. PWM is a common procedure for supplying variable power levels to “slow” electrical devices such as resistive loads, LEDs, and DC motors. Pulse-width modulation (PWM) provides the ability to simulate varying levels of outputs.
Arduino Uno has 6 PWM pins: Digital I/O pins 3, 5, 6, 9,10, and 11
Make Fading led and Control RGB led

Code :

analogWrite(_pin,value)
_pin is the PWM pins (has tilde before) and value from 0 to 255

Arduino programs, called “sketches”, are written in a programming language similar to C and C++. Many sensors and other hardware devices come with prewritten software – look on-line for sample code, libraries (of functions), and tutorials. Learn the Arduino platform and programming language to create robots, interactive art displays, electronic gadgets and much more.

#ProgrammingKnowledge #Arduino #ArduinoTutorial
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

I have the power supply and the circuit board to an AC fan motor. It seem to be three phase with hall. There is all the connection to it on the board except PWM 4 pin ( Grn, blk, Wht, Blu). I assume they are 12V power, ground, tach and pwm). I am wondering if I can use Arduinto to hook up these pins and get the motor going? And if you would know how to find the code for it. Thanks in advance.

alchemy
Автор

LED is fine but how can you connect and run motor directly with arduino board?? it's not made for high current, the motor will surely damage arduino pins. Also, we cannot run bigger motor with 5V from the board. Is there any way to use PWM with motor drivers along with external source??

shan_singh
Автор

I tried this but the transistor is getting heated when I ran a single motor which consumes 100mA...not a good solution..

sunillives
welcome to shbcf.ru