Thursday, November 28, 2013

[TUTORIAL] Mengontrol LED dengan Android menggunakan Arduino dan Bluetooth Module


   Pada sesi kali ini saya akan menerangkan cara untuk menyalakan LED dengan menggunakan Android.
Langsung saja cekidot..

Yang dibutuhkan :
  1. Arduino Uno
  2. LED
  3. Bluetooth Module
  4. Resistor 330 Ohm
  5. Breadboard
  6. Kabel Jumper
  7. dan jangan lupa HP yang bagus :D
Langkah langkahnya yaitu
  • Susun rangkaian sebagai berikut
Disini saya menggunakan 2 LED (bebas warnanya), jika ingin menggunakan 1 LED saja juga tidak masalah.
  • Setelah itu buka program Arduino, jika belum punya bisa download di sini
  • Unduh scriptnya di sini
  • Klik Tools > Board > klik Arduino Uno
  • Klik Verify
  • Koneksikan Arduino dengan PC/Laptop
  • Klik Upload
Jika terdapat tulisan seperti ini

Cabut kabel Jumper yang menghubungkan Bluetooth Module dengan VCC dan GROUNDKemudian klik Upload, dan pasang kembali VCC dan GROUND-nya
  • Disini saya menggunakan aplikasi ArduDroid yang bisa didapat gratis di PlayStore, untuk linknya ada di sini
  • Setelah terinstall pada Android, jalankan aplikasinya
  • Koneksikan Smartphone dengan Bluetooth Module, caranya klik Menu > Connect me to a Bluetooth device
  • Pair-kan Smartphone dengan Bluetooth Module (untuk PIN standard nya 0000 atau 1234)
  • Selamat Mencoba :)

VIDEO TUTORIAL


Monday, November 25, 2013

Red Sony Xperia Z1 Leaked Running Android 4.4.2 Kit Kat



Sony has already confirmed that the Xperia Z1 will be among the devices that get the Android 4.4 Kit Kat update, but they haven’t given any concrete time frame other than sometime in January. Now, a red colored version of the Z1 has leaked which shows it clearly running Android 4.4.2.

The pictures come from the SECafe.vn Facebook page, and show a very nice looking Z1 sporting that red paint job. The third picture below clearly shows the device running Android version 4.42.2. That version should sound unfamiliar, as it’s newer than we’ve seen before, even newer than the Nexus line of devices. Version numbers can be faked of course, so as with all leaks, don’t assume this is fact until it’s official. That being said, the pictures definitely look legitimate and since Sony has already confirmed Kit Kat is coming to their newer devices, it’s pretty likely that this is the real deal.



The Xperia Z1 originally launched in three colors, black, white and purple. Its standout specs are the 5-inch 1080p display, water and dust resistance, 3000mAh battery and 20.7MP camera. The water resistance in particular is something we’d love to see other manufacturers start doing, too. The Z1 can even withstand going into the pool up to 5 feet underwater.

It is already available in parts of Europe and Asia, and is rumored to be coming to T-Mobile in the US. It can also be purchased directly from Sony’s online store in black, white or purple for $649 unlocked. Customers definitely like color options when buying a new phone, so that red model would be a welcome addition to the lineup.

The jump straight to a newer version of Kit Kat isn’t surprising, manufacturers often skip releases and jump straight to the newest version of Android which often incorporate bug fixes from the initial release. By skipping 4.4 and going right to 4.2.2, Sony ensures that the Z1 doesn’t get any Android bugs that may have plagued the initial 4.4 code.

Sony doesn’t have the best track record with updates, and are often one of the slowest to get updates pushed out. Hopefully the fact that pictures are already leaking with Kit Kat visible is a sign that other Sony devices will get the update sooner rather than later.

What do you think? Would you buy a Xperia Z1 in red?

_____________
Original post by :

Sunday, November 24, 2013

[TUTORIAL] Membuat simulasi Traffic Light menggunakan Arduino


   Di kesempatan kali ini saya akan menjelaskan bagaimana membuat sebuah simulasi Traffic Light atau Lampu Lalu Lintas menggunakan LED dan Arduino.

   Yang dibutuhkan :
  1. 1x Arduino Uno
  2. 3x Resistor 330 ohm
  3. 3x LED (Merah, Kuning, dan Hijau)
  4. 1x Breadboard
  5. 4x Kabel Jumper
   Langkah-langkahnya :
  • Susun rangkaian seperti gambar berikut 


  • Pin 5 Arduino dihubungkan ke Resistor, kemudian kaki resistor satunya dihubungkan ke LED HIJAU, kemudian kaki LED pendek dihubungkan ke Pin Ground Arduino
  • Pin 4 Arduino dihubungkan ke Resistor, kemudian kaki resistor satunya dihubungkan ke LED KUNING, kemudian kaki LED pendek dihubungkan ke Pin Ground Arduino
  • Pin 3 Arduino dihubungkan ke Resistor, kemudian kaki resistor satunya dihubungkan ke LED MERAH, kemudian kaki LED pendek dihubungkan ke Pin Ground Arduino
  • Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial
  • Download dan Install program Arduino di Arduino.cc
  • Setelah terinstall, jalankan program Arduino-nya
  • Klik menu "Tools -> Board -> Arduino Uno"
  • Masukkan Script berikut

// variables
int HIJAU = 5;
int KUNING = 4;
int MERAH = 3;
int DELAY_HIJAU = 2000;
int DELAY_KUNING= 700;
int DELAY_MERAH = 2000;

// functions
void setup()
{
  pinMode(HIJAU, OUTPUT);
  pinMode(KUNING, OUTPUT);
  pinMode(MERAH, OUTPUT);
}

void loop()
{
  HIJAU_NYALA();
  delay(DELAY_HIJAU);
 
  digitalWrite(HIJAU, LOW);
 
  int HITUNG = 1;
 
  while(HITUNG < 16)
    {
      digitalWrite(KUNING, HIGH);
      delay(50);
      digitalWrite(KUNING, LOW);
      delay(50);
      HITUNG++;
    }
   
  digitalWrite(KUNING, HIGH);
  delay(500);
 
  MERAH_NYALA();
  delay(DELAY_MERAH);
 
  KUNING_NYALA();
  delay(DELAY_KUNING);
 
}

void HIJAU_NYALA()
{
  digitalWrite(HIJAU, HIGH);
  digitalWrite(KUNING, LOW);
  digitalWrite(MERAH, LOW);
}

void KUNING_NYALA()
{
  digitalWrite(HIJAU, LOW);
  digitalWrite(KUNING, HIGH);
  digitalWrite(MERAH, HIGH);
}

void MERAH_NYALA()
{
  digitalWrite(HIJAU, LOW);
  digitalWrite(KUNING, LOW);
  digitalWrite(MERAH, HIGH);
}

  • Klik tombol "Verify"
  • Klik tombol "Upload"

Untuk Videonya


Semoga Bermanfaat :)