Arduino for pmw 3signal

Discussion in 'Embedded Systems and Microcontrollers' started by Puruahotam, Jul 13, 2018 at 6:05 PM.

  1. Puruahotam

    Thread Starter New Member

    Apr 28, 2018
    6
    0
    Hello all seniors, i'm new on here so please If there is any mistake, please forgive. I want to know about arduino, can i get 3pmw vairiable signal by arduino. kindy help me.
     
  2. -live wire-

    Active Member

    Dec 22, 2017
    589
    51
    Welcome to AAC. Could you please be a little more specific? If you are asking about having 3 simultaneous, different PWMs, it is certainly possible. You just need to use millis(). What exactly do you need these PWMs for, and what kind of input must control them?
     
    Puruahotam likes this.
  3. MrSoftware

    Active Member

    Oct 29, 2013
    970
    268
    Also what frequencies, and what type of precision do you need? And which arduino are you looking at? The Uno uses the Atmega 328p processor, here's one (of many) PWM examples:

    https://gist.github.com/Wollw/2425784
     
    Puruahotam likes this.
  4. shteii01

    AAC Fanatic!

    Feb 19, 2010
    4,317
    676
    Uno has 6 pwm pins.
     
    Puruahotam likes this.
  5. Puruahotam

    Thread Starter New Member

    Apr 28, 2018
    6
    0
    For control input analog 0-10, or two pusbutton freuency increase or descrease

    How can i ganerate, please give some essy tips. I'm beginers for arduino
     
    Last edited by a moderator: Jul 14, 2018 at 2:31 AM
  6. bertus

    Administrator

    Apr 5, 2008
    18,118
    3,447
  7. -live wire-

    Active Member

    Dec 22, 2017
    589
    51
    But all pins are capable of PWM with the resolution * frequency being equal to the clock speed. It's just that only 6 or so allow the "analog write" function at a higher frequency.
     
Loading...