0

There is blink project consisting 3 sections:

1 - regulation of the led brightness using a potentiometer

2 - whenever: the button is pressed - the led is on

- the button is released - the led is off

3 - change state of a led statically

The question is that:

May I make this project on-board? I am curious that, if I will try making this project on-board (Arduino UNO) will the Arduino damaged?

11
  • When the button is released, the led is off, but at the same time the brightness is regulated with a potentiometer. Those two things can not be done at the same time.
    – Jot
    Commented Oct 20, 2018 at 4:55
  • "making this project on-board"? what do you understand by that?
    – Juraj
    Commented Oct 20, 2018 at 11:50
  • @Juraj Using just Arduino UNO board, not using extra breadboard and led. There are 11 leds like: ON, R17, R6, AX,.. and so on. As I unerstood on-board project is done just using these leds. If I am wrong, would be so glad to learn what on-board and off-board means? ))) Commented Oct 20, 2018 at 12:00
  • so it should be "making this project by using on-board LED"? button or pot should not be on-board
    – Juraj
    Commented Oct 20, 2018 at 12:14
  • only on-board LED controllable from the sketch is LED on pin 13. and it is not dimmable as you can read in the Answer by Kevin
    – Juraj
    Commented Oct 20, 2018 at 12:16

1 Answer 1

3

Pin 13, which is the on-board LED, is not a pwm pin. So you cannot Control the brightness of that LED on-board. You will have to use another LED and a PWM pin.

Not the answer you're looking for? Browse other questions tagged or ask your own question.