set PWM pin () output as ()

set pwm pin output as

set PWM pin () output as () is a stack block available in evive block, Arduino Uno block, Arduino Mega block, and Arduino Nano block. The block set PWM output on evive PWM pins. The user can select the output from a range of 0 to 255.  If the PWM output is 128, then half the time output will be High and for rest, the output will be Low.

Available pins:

  • evive: 12 PWM pins available to the user: digital pins 2 to 13
  • Arduino Uno: 6 PWM pins available to the user: digital pin 3, 5, 6, 9, 10 and 11
  • Arduino Mega: 15 PWM pins available to the user: digital pin 2-13, 44-46
  • Arduino Nano: 6 PWM pins available to the user: digital pin 3, 5, 6, 9, 10 and 11

You can select the pin using the drop-down menu.

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. Controlling Pin 13 LED brightness using potentiometer 1 in stage mode.
    set pwm output example
  2. Controlling Pin 13 LED brightness using an analog sensor connected to analog pin A0 in upload mode.
    set pwm output example 2

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation
pwm analog pins

PWM Pins

Pulse Width Modulation (PWM) is a technique used for mapping digital signals onto analog values by measuring the percentage duty cycle.
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart

Registrations for Codeavour 2019 are OPEN!
Participate in this unique coding contest and stand a chance to win exciting prizes!
x