1. Kondisi[kembali]
Mengatur kecepatan putar MOTOR DC dengan 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]
Download File Rangkaian Klik Disini
Download Video Simulasi Klik Disini
Download File Html Klik Disini
Tidak ada komentar:
Posting Komentar