tugas pendahuluan modul 2




 

1. Kondisi[kembali] 
Percobaan 3 (Mengatur Kecepatan Putar MOTOR DC) kondisi potensiometer 90%

2.  Rangkaian Simulasi[kembali]


3. Flowchart[kembali]


4. Listing Program[kembali]

void setup() {
  // put your setup code here, to run once:
  pinMode(A0,INPUT);
  pinMode(9,OUTPUT);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  int nilai = analogRead(A0);
  byte output = map(nilai,0,1023,0,255);
  analogWrite(9,output);
  Serial.print("potensiometer: ");
  Serial.print(nilai);
  Serial.print("  ");
  Serial.print("output: ");
  Serial.println(output);
  delay(100);

}

5. Video [kembali]




6. Link Download[kembali]

Download listing program di sini
Download file rangkaian di sini
Download video simulasi di sini
Download file html di sini
         
       
   

Tidak ada komentar:

Posting Komentar