Pages: 1 [2]   Go Down
Author Topic: plafoniera: alimentazione e cavi di controllo  (Read 1677 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 106
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

questo non parla di PWM
Quote

non so perchè non ne parli, ma se apri l'img. noterai che in alto a sx c'è la basetta PWM...
Logged

Tuscany
Offline Offline
Edison Member
*
Karma: 37
Posts: 1479
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

l'hai collegato cosi' ?


Domanda:  Ma che Pin di arduino hai usato per inviare il PWM ?


* sample1.png (318.45 KB, 3509x1092 - viewed 13 times.)
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 106
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

si, pin 11
Logged

Tuscany
Offline Offline
Edison Member
*
Karma: 37
Posts: 1479
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

non ce la faccio a guardare il tuo sketch

prova questo

Code:
int ledPin = 11;      // pin PWM
 
void setup()
 {
  pinMode(ledPin, OUTPUT);   
 }

void loop()
{
for (int i=0; i <= 255 ; i=i+5){
  analogWrite(ledPin, i );
    delay (100);
    }
}
Logged

Pages: 1 [2]   Go Up
Jump to: