Minggu, 22 Januari 2017

arduino uno p10 dmd2 - countdown and scrolling text


library dmd2
https://drive.google.com/open?id=0B4C1oajbpM9RMUdiamwwd05ZOWs

monitoring arus 3 phasa dan temperature



robocar autoback



const int AIA = 9;  // (pwm) pin 9 connected to pin A-IA
const int AIB = 5;  // (pwm) pin 5 connected to pin A-IB
const int BIA = 10; // (pwm) pin 10 connected to pin B-IA 
const int BIB = 6;  // (pwm) pin 6 connected to pin B-IB
int lampudepan = 11;
int lampubelakang = 12;
byte speed = 255;  // change this (0-255) to control the speed of the motors
 char command;
void setup() {
  Serial.begin(9600);
  pinMode(AIA, OUTPUT); // set pins to output
  pinMode(AIB, OUTPUT);
  pinMode(BIA, OUTPUT);
  pinMode(BIB, OUTPUT);
  pinMode(lampudepan, OUTPUT);
  pinMode(lampubelakang, OUTPUT);
}

void loop() {
    //void Forward()
//{
  analogWrite(AIA, 0);
  analogWrite(AIB, speed);
  analogWrite(BIA, 0);
  analogWrite(BIB, speed);
  delay(1000);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
 
//}

//void Back()
//{
  analogWrite(AIA, speed);
  analogWrite(AIB, 0);
  analogWrite(BIA, speed);
  analogWrite(BIB, 0);
  delay(1000);
  //belok kanan
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, speed);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
 
  digitalWrite(lampudepan,HIGH);
  digitalWrite(lampubelakang,LOW);
  delay(300);
  digitalWrite(lampudepan,LOW);
  digitalWrite(lampubelakang,HIGH);
  delay(300);
  digitalWrite(lampudepan,HIGH);
  digitalWrite(lampubelakang,LOW);
  delay(300);
  digitalWrite(lampudepan,LOW);
  digitalWrite(lampubelakang,HIGH);
  delay(300);
  digitalWrite(lampudepan,HIGH);
  digitalWrite(lampubelakang,LOW);
  delay(300);
  digitalWrite(lampudepan,LOW);
  digitalWrite(lampubelakang,HIGH);
  delay(300);
  digitalWrite(lampudepan,HIGH);
  digitalWrite(lampubelakang,LOW);
  delay(300);
  digitalWrite(lampudepan,LOW);
  digitalWrite(lampubelakang,HIGH);
  delay(300);
  digitalWrite(lampudepan,HIGH);
  digitalWrite(lampubelakang,LOW);
  delay(300);
  digitalWrite(lampudepan,LOW);
  digitalWrite(lampubelakang,HIGH);
  delay(300);
  digitalWrite(lampudepan,HIGH);
  digitalWrite(lampubelakang,LOW);
  delay(300);
  digitalWrite(lampudepan,LOW);
  digitalWrite(lampubelakang,HIGH);
  delay(300);
//}
 /*
//void Left()
//{
  analogWrite(AIA, speed);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
//}

//void Right()
//{
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, speed);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
analogWrite(AIA, speed);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
//}

//void Right()
//{
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, speed);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
  analogWrite(AIA, speed);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
//}

//void Right()
//{
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, speed);
  analogWrite(BIB, 0);
  delay(500);
  analogWrite(AIA, 0);
  analogWrite(AIB, 0);
  analogWrite(BIA, 0);
  analogWrite(BIB, 0);
  delay(100);
*/

}


Kamis, 19 Januari 2017

mobil remote control android via bluetooth


bahan yang dibutuhkan :
1. Paket Chasis smart motor robot car kit (beli di topokopedia)
2. Driver motor module HG7881
3. Bluetooth HC05
4. Arduino Uno
5. led 2 (lampu depan dan belakang biar tambah kece)
6. powerbank


tutorial :
1. upload sketch 
Download apk at playstore Tutorial Car Bluetooth Arduino (include sketch and wiring)
2. pasang kabel  (play video)

3. download aplikasi Bluetooth RC Controller
4. Pairing dulu bluetoothnya password :1234
5. run aplikasi tadi. klik gambar setting  (samping kanan segitiga)
6. connect to car
7.Run............. GOooooooooooooooo.......................

mobil ini bisa dijalankan mode sensor
cek di video.. keren abis...


Rabu, 18 Januari 2017

membuat jam dengan modul p10 dan arduino nano 328

bahan yang diperlukan:
1. Arduino Nano 328
2. Shield P10 for nano
3. RTC DS3231
4. Modul P10
5. kabel usb untuk memmrogram arduino
6. Software Arduino
7. Library :
   1. DMD
   2. TimerOne
   3. DS3231

Tutorial :
1. Setting jam dahulu menggunakan sketch dibawah ini:
// DS3231_Serial_Easy
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// A quick demo of how to use my DS3231-library to
// quickly send time and date information over a serial link
//
// To use the hardware I2C (TWI) interface of the Arduino you must connect
// the pins as follows:
//
// Arduino Uno/2009:
// ----------------------
// DS3231:  SDA pin   -> Arduino Analog 4 or the dedicated SDA pin
//          SCL pin   -> Arduino Analog 5 or the dedicated SCL pin
//
// Arduino Leonardo:
// ----------------------
// DS3231:  SDA pin   -> Arduino Digital 2 or the dedicated SDA pin
//          SCL pin   -> Arduino Digital 3 or the dedicated SCL pin
//
// Arduino Mega:
// ----------------------
// DS3231:  SDA pin   -> Arduino Digital 20 (SDA) or the dedicated SDA pin
//          SCL pin   -> Arduino Digital 21 (SCL) or the dedicated SCL pin
//
// Arduino Due:
// ----------------------
// DS3231:  SDA pin   -> Arduino Digital 20 (SDA) or the dedicated SDA1 (Digital 70) pin
//          SCL pin   -> Arduino Digital 21 (SCL) or the dedicated SCL1 (Digital 71) pin
//
// The internal pull-up resistors will be activated when using the
// hardware I2C interfaces.
//
// You can connect the DS3231 to any available pin but if you use any
// other than what is described above the library will fall back to
// a software-based, TWI-like protocol which will require exclusive access
// to the pins used, and you will also have to use appropriate, external
// pull-up resistors on the data and clock signals.
//

#include <DS3231.h>

// Init the DS3231 using the hardware interface
DS3231  rtc(SDA, SCL);

void setup()
{
  // Setup Serial connection
  Serial.begin(115200);
  // Uncomment the next line if you are using an Arduino Leonardo
  //while (!Serial) {}
 
  // Initialize the rtc object
  rtc.begin();
 
  // The following lines can be uncommented to set the date and time
  rtc.setDOW(WEDNESDAY);     // setting hari
  rtc.setTime(12, 0, 0);     // Setting jam
  rtc.setDate(1, 1, 2014);   // Setting Tanggal, Bulan, Tahun
}

void loop()
{
  // Send Day-of-Week
  Serial.print(rtc.getDOWStr());
  Serial.print(" ");
 
  // Send date
  Serial.print(rtc.getDateStr());
  Serial.print(" -- ");

  // Send time
  Serial.println(rtc.getTimeStr());
 
  // Wait one second before repeating :)
  delay (1000);
}

2. Setelah jam sudah disetting
upload sketch dibawah ini:
jam nano


tutorial ini juga tersedia di play store:
Tutorial P10 dengan arduino

jadilah seperti video dibawah ini

Selasa, 03 Januari 2017

Membuat Running Text dengan arduino uno

Bahan :
1. Modul LED P10

2. Arduino Uno

3. Shield P10


4. Kabel DMD (sudah include saat beli modul p10)
5. Kabel Usb Arduino Uno
6. Laptop / PC
7. Power Supply 5V 10A (max 3 modul P10)

Library :
1. DMD
2. TimerOne
masukkan library pada software arduino pada folder libraries

Langkah-langkah :
1. Run app Arduino di PC/Laptop
2. File -> Examples -> DMD -> DMD_demo
3. Colokin arduino uno ke PC/Laptop
4. Pasang kabel DMD ke shield P10 dan modul P10
5. Tancapkan Shield P10 ke Arduino Uno
6. Upload sketch to Arduino








ada tutorial versi aplikasi android juga
disitu juga include sketchnya
termasuk membuat jam dari P10
Tutorial P10 with arduinno uno

Cara membuat datalogger blynk di spreadsheet / googlesheet menggunakan akun versi Free

  silahkan video di atas. semoga bermanfaat. jika masih kurang jelas bisa kontak saya