Showing posts with label Control. Show all posts
Showing posts with label Control. Show all posts

Friday, August 7, 2015

Controlling the LED Brightness #Learn Arduino



Finally I can go up from blink to another basic of Arduino. In this circuit we can control the brightness of LED with potentiometer.LED brightness is determined from the position knob on the potentiometer.

Some material we need:
  • Arduino (I am using Arduino UNO)
  • LED
  • Potentiometer 10K ohm
  • 330 Ohm resistor
  • PC/laptop
  • Breadboard
  • 6 jumperwire
  • Data cable from Arduino to PC 
 Here is the code that we can simply copying from Arduino IDE example:


the new things we learn in here is "sensorPin =A0". It means that we select the input pin for the potentiometer. To read the value from the sensor we just type "sensorValue = analogRead(sensorPin);"  inside the loop.

Monday, August 3, 2015

Blink LED #Learn Arduino

Up from hello world, now we go little bit further to make the LED blinking.

Some material we need:
  • Arduino (I am using Arduino UNO)
  • LED
  • 330 Ohm resistor
  • PC/laptop
  • Breadboard
  • 3 jumperwire
  • Data cable from Arduino to PC
This is the code, and it's available on the example of Arduino IDE Software with title "Blink"


"high" means 5V supply and make the LED is ON and
"low" meand 0V supply and make the LED is OFF.

The LED will be ON and OFF repeatedly every 1 second  that's because we put the code on the loop.

Tuesday, May 12, 2015

Apakah itu Programmable Logic Control (PLC)?

Menurut The Association of Electrical Equipment and Medical Imaging Manufacturers (NEMA)

"PLC is defined as a digital electronic device with a programmable memory for storing instructions that execute specific functions such as logic, sequence, timing, counting, and arithmetic to control an industrial machine or process accordance with the desired industri" 

Jadi PLC ini adalah suatu perangkat elektronik yang bekerja secara digital, dapat diprogram karena di dalamnya terdapat mikroprosesor dan memory untuk menyimpan perintah-perintah dalam mengeksekusi fungsi-fungsi seperti logika, sequence, timing, counting, dan fungsi-fungsi aritmatika yang tujuannya adalah mengontrol mesin-mesin maupun proses yang diinginkan.  

Gambar di bawah ini adalah salah satu PLC yang saya gunakan

PLC tipe analog