To Automate Your Life
Monday, October 15, 2018
Wednesday, September 26, 2018
Mengukur Temperatur dengan Sensor LM35 dan Arduino
Sensor temperatur LM35 merupakan IC (integrated circuit) sensor yang digunakan untuk mengukur temperatur yang setara dengan output tegangan yang diberikan. Data suhu akan dibaca melalui pin A0 pada Arduino kemudian diproses oleh internal Analog Digital Converter (ADC) pada Arduino. Nilai tegangan yang terbaca adalah dari 0 hingga 5 V.
Tegangan output yang dihasilkan ini akan dikonversi dengan faktor konversi temperatur sederhana. Nilai pembacaan sensor adalah dalam derajat celcius yang dirumuskan sebagai berikut:
Tc = Vout .(100 ◦ C/V )
Maka jika Vout bernilai 1 Volt keluaran yang akan dihasilkan oleh sensor ini adalah 100◦C. LM35 memiliki sensitivitas 10mV/◦C
Tegangan output yang dihasilkan ini akan dikonversi dengan faktor konversi temperatur sederhana. Nilai pembacaan sensor adalah dalam derajat celcius yang dirumuskan sebagai berikut:
Tc = Vout .(100 ◦ C/V )
Maka jika Vout bernilai 1 Volt keluaran yang akan dihasilkan oleh sensor ini adalah 100◦C. LM35 memiliki sensitivitas 10mV/◦C
Saturday, March 10, 2018
Hello World with LCD Keypad Shield
I already found very useful code to display the character with the LCD.Foto kiriman Hani (read:honey) (@hanifadinna) pada
Happy share :)
Thursday, March 8, 2018
Controlling the LED Brightness
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
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.
Blink LED pada Arduino
Up from hello world, now we go little bit further to make the LED blinking.
Some material we need:
"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.
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
"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.
How To Hello World Repeatedly in Arduino
Modifying from how to hello world in Arduino, here I would like to make the "hello world" appear repeatedly.
---------------------------------------------------------------------------------------------------
//Learn Arduino-Hello world Repeatedly-Hanifadinna
void setup () {
Serial.begin(9600); //open serial port with speed 9600 bit per second
}
void loop () {
delay(10000); // delay time 10 second
Serial.println("Hello world"); //print out the hello world
}
---------------------------------------------------------------------------------------------------
Verivy, uplod and we just simply type "ctrl+shift+M" to show the print of "hello world", and then we got this from serial monitor.
To make the hello world appear repeatedly is because we put :
delay(10000); // delay time 10 second
Serial.println("Hello world"); //print out the hello world
inside the void loop, so the hello world will appear repeatedly every 10 second.
---------------------------------------------------------------------------------------------------
//Learn Arduino-Hello world Repeatedly-Hanifadinna
void setup () {
Serial.begin(9600); //open serial port with speed 9600 bit per second
}
void loop () {
delay(10000); // delay time 10 second
Serial.println("Hello world"); //print out the hello world
}
---------------------------------------------------------------------------------------------------
Verivy, uplod and we just simply type "ctrl+shift+M" to show the print of "hello world", and then we got this from serial monitor.
To make the hello world appear repeatedly is because we put :
delay(10000); // delay time 10 second
Serial.println("Hello world"); //print out the hello world
inside the void loop, so the hello world will appear repeatedly every 10 second.
Hello World pada Arduino
The first time we practicing programming ussually with "hello world". Since Arduino both hardware and software, here is how to hello world in Arduino
---------------------------------------------------------------------------------------------------
//Learn Arduino-Hello world
void setup () {
Serial.begin(9600);//open serial port with speed 9600 bit per second
delay(10000); // delay time 10 second
Serial.println("Hello world"); //print out the hello world
}
void loop () {}
---------------------------------------------------------------------------------------------------
//Learn Arduino-Hello world
void setup () {
Serial.begin(9600);//open serial port with speed 9600 bit per second
delay(10000); // delay time 10 second
Serial.println("Hello world"); //print out the hello world
}
void loop () {}
Subscribe to:
Comments (Atom)
-
The first time we practicing programming ussually with "hello world". Since Arduino both hardware and software, here is how to he...
-
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...
-
Hello World with LCD (liquid crystal display) keypad shield. Another simple #arduino project. #microcontrollers #helloworld #electron...

