Getting Started with PictoBlox
Important Terms
Courses

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
This helped
This didn't help

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

PictoBlox Supported Boards
Extensions
Close Menu
×
×

Cart

STEMpedia Starter Kit is now available on Indiegogo!
STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!
x