With the design of Smart House Door Locks Using Password and RFID-based Via GSM Messege Arduino Mega 2560, will be a member of security when homeowners go away. In the era of globalization is still a lot of crime, especially at the empty house in residence owners. Jangan khawatir, pengetikkan kode program yang salah tidak akan mengakibatkan kerusakan.5 ABSTRACT Nama : Abdul Kholiq Program studi : Teknik Elektro Judul : Rancang Bangun Kunci Pintu Rumah Pintar Menggunakan Password dan RFID Via GSM Message Berbasis Arduino Mega As technology develops very rapidly in this era of globalization has provided many benefits in various aspects of social progress. Hal utama yang perlu diperhatikan adalah menghidupkan LED dengan kode digitalWrite(pinNumber, HIGH) dan mematikan LED dengan kode digitalWrite(pinNumber, LOW). Masukkan perubahan sesuai imaginasi anda untuk mendapatkan kreasi animasi anda sendiri. Maka animasi LED yang berbeda akan kita lihat. Hilangkan // pada baris fungsi yang ke 3, kemudian upload program-nya. Kalau anda perhatikan kedua fungsi tersebut, masing-masing melakukan hal yang sama, tetapi dengan pendekatan yang berbeda (fungsi kedua menggunakan loop).īosan dengan animasi yang sekarang sedang berjalan? Cobalah 2 contoh animasi yang lain. Upload program-nya dan perhatikan bahwa tidak terdapat perubahan. inAndOut() //lights the two middle LEDs then moves them out then back former off (one LED will look like it is scrolling oneOnAtATime() //this will turn one LED on then turn the next one OneAfterAnotherLoop ( ) //does the same as oneAfterAnotherNoLoop but with oneAfterAnotherNoLoop() //this will turn on each LED one by one then turn each off Untuk merubah program agar menjalankan baris kedua, rubah kode program menjadi seperti berikut ini: Ini artinya baris kode tersebut dianggap sebagai komentar (comment) dan tidak akan dijalakan oleh program. Perhatikan kode pada baris void loop(), di dalamnya terdapat 4 baris kode. Int offLED2 = 4 + offLED //turns off the LED we turned on last timeĭigitalWrite (ledPins, HIGH ) ĭigitalWrite (ledPins, LOW ) Int offLED1 = 3 - offLED //turns off the LED we turned on last time Int onLED2 = 4 + i //this is the first LED to go on ie. Int onLED1 = 3 - i //this is the first LED to go on ie. instead we turn off LED 7, (looping around) Int ledPins = //however if i = 0 we don't want to turn of led -1 (doesn't exist)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |