1. Kondisi [Kembali]
Kondisi potensiometer 0%
2. Gambar Rangkaian Simulasi [Kembali]
3. Flowchart [Kembali]
4. Listing Program [Kembali]
byte pot = A0;byte motor = 9;int nilai;int output;void setup() {pinMode(motor, OUTPUT);Serial.begin(9600);}void loop() {nilai = analogRead(pot);output = map(nilai, 0, 1023, 0, 255);analogWrite(motor, output);Serial.print("potensiometer: ");Serial.print(nilai);Serial.print(" ");Serial.print("output: ");Serial.print(output);delay(100);}
5. Video Simulasi [Kembali]
6. Link Download [Kembali]
File rangkaian download
Video simulasi download
File HTML download
Tidak ada komentar:
Posting Komentar