Monday, March 19, 2018

about

situs ini berisi tentang tutorial arduino

contact us

Nama:
Email:
Komentar:
 

disclaimer

Disclaimer for Tutorial Arduino

If you require any more information or have any questions about our site's disclaimer, please feel free to contact us by email at fferdian37@gmail.com.

Disclaimers for https://antenarobotik.blogspot.co.id/:

All the information on this website is published in good faith and for general information purpose only. https://antenarobotik.blogspot.co.id/ does not make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this website (https://antenarobotik.blogspot.co.id/), is strictly at your own risk. https://antenarobotik.blogspot.co.id/ will not be liable for any losses and/or damages in connection with the use of our website.
From our website, you can visit other websites by following hyperlinks to such external sites. While we strive to provide only quality links to useful and ethical websites, we have no control over the content and nature of these sites. These links to other websites do not imply a recommendation for all the content found on these sites. Site owners and content may change without notice and may occur before we have the opportunity to remove a link which may have gone 'bad'.
Please be also aware that when you leave our website, other sites may have different privacy policies and terms which are beyond our control. Please be sure to check the Privacy Policies of these sites as well as their "Terms of Service" before engaging in any business or uploading any information.

Consent

By using our website, you hereby consent to our disclaimer and agree to its terms.

Update

This site disclaimer was last updated on: Monday, March 19th, 2018
· Should we update, amend or make any changes to this document, those changes will be prominently posted here.


privacy policy

Privacy Policy for Tutorial Arduino

If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at fferdian37@gmail.com.
At https://antenarobotik.blogspot.co.id/ we consider the privacy of our visitors to be extremely important. This privacy policy document describes in detail the types of personal information is collected and recorded by https://antenarobotik.blogspot.co.id/ and how we use it.
Log Files
Like many other Web sites, https://antenarobotik.blogspot.co.id/ makes use of log files. These files merely logs visitors to the site - usually a standard procedure for hosting companies and a part of hosting services's analytics. The information inside the log files includes internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date/time stamp, referring/exit pages, and possibly the number of clicks. This information is used to analyze trends, administer the site, track user's movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.
Cookies and Web Beacons
https://antenarobotik.blogspot.co.id/ uses cookies to store information about visitors' preferences, to record user-specific information on which pages the site visitor accesses or visits, and to personalize or customize our web page content based upon visitors' browser type or other information that the visitor sends via their browser.
DoubleClick DART Cookie
→ Google, as a third party vendor, uses cookies to serve ads on https://antenarobotik.blogspot.co.id/.
→ Google's use of the DART cookie enables it to serve ads to our site's visitors based upon their visit to https://antenarobotik.blogspot.co.id/ and other sites on the Internet.
→ Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html
Our Advertising Partners
Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include .......

  • Google
While each of these advertising partners has their own Privacy Policy for their site, an updated and hyperlinked resource is maintained here: Privacy Policies.
You may consult this listing to find the privacy policy for each of the advertising partners of https://antenarobotik.blogspot.co.id/.

These third-party ad servers or ad networks use technology in their respective advertisements and links that appear on https://antenarobotik.blogspot.co.id/ and which are sent directly to your browser. They automatically receive your IP address when this occurs. Other technologies (such as cookies, JavaScript, or Web Beacons) may also be used by our site's third-party ad networks to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on the site.
https://antenarobotik.blogspot.co.id/ has no access to or control over these cookies that are used by third-party advertisers.

Third Party Privacy Policies
You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. https://antenarobotik.blogspot.co.id/'s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites. You may find a comprehensive listing of these privacy policies and their links here: Privacy Policy Links.
If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites. What Are Cookies?
Children's Information
We believe it is important to provide added protection for children online. We encourage parents and guardians to spend time online with their children to observe, participate in and/or monitor and guide their online activity. https://antenarobotik.blogspot.co.id/ does not knowingly collect any personally identifiable information from children under the age of 13. If a parent or guardian believes that https://antenarobotik.blogspot.co.id/ has in its database the personally-identifiable information of a child under the age of 13, please contact us immediately (using the contact in the first paragraph) and we will use our best efforts to promptly remove such information from our records.
Online Privacy Policy Only
This privacy policy applies only to our online activities and is valid for visitors to our website and regarding information shared and/or collected there. This policy does not apply to any information collected offline or via channels other than this website.
Consent
By using our website, you hereby consent to our privacy policy and agree to its terms.


Update
This Privacy Policy was last updated on: Tuesday, March 20th, 2018. Privacy Policy Online Approved Site
Should we update, amend or make any changes to our privacy policy, those changes will be posted here.

Sensor TCRT5000 Menggunakan Arduino

          Sensor TCRT5000 adalah sensor reflective atau pantulan yang dibuat dengan sebuah Infrared sebagai pemancarnya dan potodiode/trasnsitor sebagai penerimanya. Sering digunakan sebagai sensor untuk membaca benda dengan memanfaatkan pantulan cahaya dan diterima oleh pododiode.  Biasa digunakan pada mouse, robot line follower, dll. Pada tutorial kali ini akan dimanfaatkan untuk membaca 2 warna yang berbeda  yaitu hitam dan putih. seperti yang kita ketahu bahwa warna puti bersifat memantulkan cahaya dan warna hitam menyerap cahaya. Berikut ini adalah cara kerjanya.

Pada artikel ini akan diberikan pemrograman interrupt arduino dengan memanfaatkan data keluaran sensor TCRT5000. namun sedikit penjelasan terkait fungsi perinttah interrupt. Perinta interrupt adalah perintah untuk menginterupsi/menyelah proses kerja suatu program dimana akan dikerjakan program yang lebih diutamakan. Pada arduino biasa fungsi interrupt dikerjakan jika terdapat input/masukan pada pin Interrupt/INT (arduino uno pin 2 dan 3). Pada tutorial ini akan ditampilkan data interrupt untuk menghitung  nilai dari variable. berikut ini komponen yang dibutuhkan

Bahan


Rangkaian



Baca juga : Thermal Printer Menggunakan Arduino

Hubungkan masing-masing komponen sesuai dengan skema diatas, pastikan pin pin D0 sensor terhubung pada D2 atau D3 arduino uno karena harus terhubung pada pin interrupt. Setelah itu, upload program dibawah ini.
#define LED 13 
#define Sensor 2
int data;
void setup() {
  Serial.begin(9600);
  attachInterrupt(digitalPinToInterrupt(Sensor), count, RISING);
  pinMode(LED, OUTPUT);
}

void loop() {
  digitalWrite(LED,!digitalRead(LED));
  delay(1000);
}

void count() {
  data++;
  Serial.print("Nilai : ");
  Serial.println(data);
}


          Dari program diatas, jika sensor mengalami perubahan data dari 0 ke 1, maka arduino akan mendahulukan program pada fungsi count(). variable data akan di increment/ ditambah 1 setiap kali tedapat perubahan data sensor. Sebagai program utama pada menu loop, saya berikan program LED kedip-kedip/blink. Berikut haril keluaran data pada serial monitoring.
Yang wajib diketahui dalam menggunakan fungsi intterupt adalah mode yang digunakan dan konfigurasinya, berikut link referensi untuk lengkapnya > Arduino AttachInterrupt
> attachInterrupt(digitalPinToInterrupt(pin), ISRmode);
pin adalah pin interrupt yang digunakan, disini saya menggunakan pin D2. ISR adalah program yang akan dijalankan, wajib dimasukan dalam fungsi (void), jadi anda hanya memasukan nama fungsinya seperti count diatas. Mode merupakan fungsi dari pembacaan interupsinya, berikut macam-macam dan fungsinya.
  • LOW, dikerjakan jika pin intterupt berlogika LOW (0)
  • CHANGE, dikerjakan jika pin intterupt mengalami perubahan logika dari 0 ke 1 atau sebaliknya.
  • RISING, dikerjakan jika pin intterupt mengalami perubahan logika dari 0 ke 1.
  • FALLING, dikerjakan jika pin intterupt mengalami perubahan logika dari 1 ke 0.
Pemanfaatan mode disesuaikan dengan inputan yang digunakan, contoh diatas jika sensor tidak menditeksi benda makan berlogika 0 dan jika menditeksi benda menjadi berlogika 1. Sehingga saya menggunakan mode RISING.
Pemanfaatan lain dari fungsi interrupt biasanya digunakan untuk menggukur RPM motor, karena membutuhkan tingkat keberhasilan pembacaan sensor yang tinggi, dan mengurangi terlewatnya pembacaan fungsi interrupt sangat penting.

demikian tutorial saya, semoga bermanfaat. terima kasih

Thermal Printer Menggunakan Arduino


      Thermal Printer adalah jenis printer yang menggunakan proses cetak dengan teknologi pemanas untuk mengaktifkan tinta.Printer thermal relatif lebih efisien dan ekonomis di banding printer dot matrik.


Module/Part  yang di butuhkan :
  1. Arduino
  2. Modul Thermal Printer Support Arduino
  3. Adaptor 9V 2 A
  4. Kabel Jumper Secukupnya


Library :
Download library Thermal Printer  (sumber : github-adafruit)


WIRING DIAGRAM 
Berikut Wiring Diagram Thermal Printer Menggunakan arduino 



Baca juga : Water Level Sensor Menggunakan Arduino
ALOKASI PIN ARDUINO   
Komunikasi Thermal Printer denga Arduino menggunakan komunikasi Serial TTL.untuk Pinout nya sebagai berikut :  


Thermal Printer   Arduino     
Rx11
Tx10
VCC+5V
GNDGnd


CONTOH PROGRAM 

untuk contoh program download disini

#include "Adafruit_Thermal.h"
#include "adalogo.h"
#include "adaqrcode.h"

#include "SoftwareSerial.h"
#define TX_PIN 11  // Pin 11 Arduino ke RX Printer
#define RX_PIN 10  // Pin 10 Arduino ke TX Printer

SoftwareSerial mySerial(RX_PIN, TX_PIN); 
Adafruit_Thermal printer(&mySerial);  

void setup() {
  
  mySerial.begin(9600);  // Initialize Baudrate SoftwareSerial
  printer.begin();        

  printer.setSize('L');  
  printer.justify('C');
  printer.println(F("Printer Test\n\n\n\n"));

  printer.sleep();      // printer to sleep
  delay(3000L);         // Sleep for 3 seconds
  printer.wake();       
  printer.setDefault(); 
}

void loop() {
}
Thermal Printer banyak di aplikasikan untuk system antrian dan print out tanda terima, misalnya karcis parkir, karcis film, antrian dokter , antrian di bank dan lain-lain.


demikian tutorial dari saya, semoga bermanfaat. terimakasih

Sunday, March 18, 2018

Water Level Sensor Menggunakan Arduino



Pengenalan

Water level sensor merupakan sebuah modul yang berfungsi seperti tombol yang merubah nilai logika keluaranya, namun sensor ini akan berubah nilainya dipengaruhi oleh air. Sehingga kedua kutup konduktor pada sensor tersebut terhubung dengan air yang bersifat sebagai konduktor penghantar listrik.
Dalam berbegai hal module ini sering digunakan sebagai sarana otomatisi, seperti water level, tandon air, sensor hujan, dll. Sehingga sangat bermfaat dalam kehidupan sehari-hari.