Thursday, January 12, 2017

Seven Segment + Keyboard Arduino Tutorial! Easy for Beginners (in Indonesia)



1.     Implementasi Seven Segment dan Keypad Membran dengan Mikrocontroller Arduino UNO R3

1.1                        Teori

Kali ini penulis mencoba untuk menggabungkan fungsi seven segment dengan keypad, saat tombol keypad ditekan makan angka yang ditekan pada keypad akan muncul pada LED Seven Segment.

1.2                        Percobaan
Pada percobaan ini, penulis menggunan Seven Segment Anoda, jadi jangan salah ya, jangan sampai tertukar dengan Katoda!
Bahan-bahan :
1.     Protoboard
2.     1 buah LED Seven Segment (ANODA)
3.     Keypad Membran 3x4
4.     Kabel jumper
5.     Arduino UNO R3

Langkah-langkah :
1.     Hubungkan pin-pin pada Keypad 3x4 pada pin 2-8 pada Arduino UNO R3
2.     Masukkan seven segment pada protoboard dan hubungkan pinA sampai pinG pada seven segment dengan pin pada arduino dengan urutan sebagai berikut :

int pinA = 9;
int pinB = 10;
int pinC = 11;
int pinD = 12;
int pinE = 13;
int pinF = A0;
int pinG = A1;
3.     Jangan lupa hubungkan pin VCC pada seven segment ke arus (+) pada protoboard
4.     Jangan lupa ya hubungkan rangkaian pada protoboard ke arduino melalui pin GND dan VCC
5.     Jalankan program dengan memnghubungkan Arduino UNO R3 ke PC atau laptop menggunakan Kabel Serial, lalu upload source code. 

Untuk lebih jelasnya, rangkaian nya seperti dibawah ini :



1.2                         Program

//pastikan library keypad telah ada pada arduino ya
#include
const byte ROWS = 4;
const byte COLS = 3;
char keys[ROWS][COLS]= {
  {'1','2','3'},
  {'4','5','6'},
  {'7','8','9'},
  {'*','0','#'},
};
 
byte rowPins[ROWS]={2,3,4,5};
byte colPins[COLS]={6,7,8};

Keypad keypad = Keypad ( makeKeymap(keys), rowPins, colPins, ROWS, COLS);

int pinA = 9;
int pinB = 10;
int pinC = 11;
int pinD = 12;
int pinE = 13;
int pinF = A0;
int pinG = A1;

void setup() {
  // initialize digital pin 13 as an output.
  pinMode(pinA, OUTPUT);
  pinMode(pinB, OUTPUT);
  pinMode(pinC, OUTPUT);
  pinMode(pinD, OUTPUT);
  pinMode(pinE, OUTPUT);
  pinMode(pinF, OUTPUT);
  pinMode(pinG, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
   char key = keypad.getKey();
  
   switch(key){
   case '0':
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, LOW);
  digitalWrite(pinF, LOW);
  digitalWrite(pinG, HIGH);break;
   case '1':
  digitalWrite(pinA, HIGH);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, HIGH);
  digitalWrite(pinE, HIGH);
  digitalWrite(pinF, HIGH);
  digitalWrite(pinG, HIGH);break;
    case '2':
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, HIGH);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, LOW);
  digitalWrite(pinF, HIGH);
  digitalWrite(pinG, LOW);break;
    case '3':
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, HIGH);
  digitalWrite(pinF, HIGH);
  digitalWrite(pinG, LOW);break;
    case '4':
  digitalWrite(pinA, HIGH);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, HIGH);
  digitalWrite(pinE, HIGH);
  digitalWrite(pinF, LOW);
  digitalWrite(pinG, LOW);break;
    case '5':
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, HIGH);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, HIGH);
  digitalWrite(pinF, LOW);
  digitalWrite(pinG, LOW);break;
    case '6':
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, HIGH);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, LOW);
  digitalWrite(pinF, LOW);
  digitalWrite(pinG, LOW);break;
    case '7' :
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, HIGH);
  digitalWrite(pinE, HIGH);
  digitalWrite(pinF, HIGH);
  digitalWrite(pinG, HIGH);break;
  case '8' :
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, LOW);
  digitalWrite(pinF, LOW);
  digitalWrite(pinG, LOW);break;
  case '9' :
  digitalWrite(pinA, LOW);
  digitalWrite(pinB, LOW);
  digitalWrite(pinC, LOW);
  digitalWrite(pinD, LOW);
  digitalWrite(pinE, HIGH);
  digitalWrite(pinF, LOW);
  digitalWrite(pinG, LOW);break;
 
   
   char key = keypad.getKey();
  
   }
}



Mudah bukan! Selamat Mencoba :)







Wednesday, August 26, 2015

Ceritanya lirik lagu gantung

Some people think I do
Some people think I don't
Some people think I am
Some people think I'm not

What am I suppose to do
What am I suppose to be

All I want is give up
But it ends with made up

I don't know how to make you love me
I just wish
You pretend to be


Chorus:
Give me your sunset, I wanna be your sunrise
Let go of your past, just let me be your next

Kiss me through the moon light
Hold me through the sun light

Or just smiling at me through the night
Or just smiling at me through the night




Success (Part 2)

Everytime I saw tv or magazine or even social media, I was amazed by people who did great jobs. You know what I mean? They are being actress or entrepreneur in very young ages. They are very successful. Somehow it brings some kind of jealousy in my heart, really. We are in the same age, but they could make money and I couldn’t. And of course, what makes me frustrate most is because my mother always says as if I were an useless child. Like “You can see those children?they can make money in your age, they are so mature. Look at you. You can’t even make something great.” Sometimes it slices my heart into pieces, but I try to not make it more serious, so I just took my path.

So I came back to my older post, in this blog of course. "I think success is not being rich or wealthy, but success is about our dreams, when we want something we catch it, when we get it, we already succeed." Maybe my dreams now are everyone else dreams, I always want to be her, to be him, rich like him, pretty like her or anyone else. But no! It is not about me and being my self, it is not because I want it, I just want to be looked by other people who see me being success. I just want people to know me because I can do something great. I want to be appreciated.

Then I think all over again, what is the thing in life you want the most? I want my parents smile and proud and shout to everyone “Yes, that’s my daughter” but really, I don’t know how to do it. I study hard to achieve my best score, it wasn’t enough. But what else can I do? I don’t know how to make money. Everytime I propose my CV to some companies, it failed and failed and failed. Everytime I took chances to propose my self in scholarship, I was late. What is wrong with the universe? And what the hell am I thinking? Is this really important to you? Is it a pride? Think again! I am busy making dreams, but I forget about move. Failing on something, it is proper, very normal for everyone. But thinking your self unbeneficial and useless, Cal? Seriously.. you are worth it. That’s why God created you, because of some purposes. Now that’s your turn to guess those purposes.

Ok, well it sounds so crazy right now talking to my self. But seriously, my biggest weakness is lack of confidence. I am so insecure about my self. Because I am not special...

But now I will make changes. I am not longer that person anymore. Because I know I am PRETTY, I am SMART, I am CLEVER, I am TALENTED, I have ABILITIES, I AM PERFECT. So are you...

So from now on, me and you, and anyone else who read this blog. Don’t blame your self for being weak or ugly or stupid. Because you are not. BECAUSE YOU ARE CREATED FOR SOME PURPOSES. Maybe you have not find out yet-like me, but now, just focus on the path in front of you. Follow it, do your best. And God will leads you to find your purpose. Whatever it is, whatever when it will happens. Maybe 2 minutes from now, maybe 2 years from now, 10 years from now. Don’t let your self down for being not good, like I always feel.






For my dearest readers,

XOXO

Sunday, June 28, 2015

Tutorial : How to build your own Distro Linux

This is the steps to make your own Distro Linux in easy way. I used Porteus Wizard because it helps me a lot to make my own operating system, it has very simple interface and catchy look, so I can understand it easier. 

STEP 1 :
Open your browser and make sure you already linked to http://build.porteus.org/. This is the official website of Porteus Wizard :




Pick your system architecture based on your computer type system. I choose 32BIT.




STEP 2 :
Select your system type, if you want your operating system has a partition on its data storage, choose EFI, if not, just select default.
Select your boot mode : Graphic User Interface or Text                                                                                                             
Choose your desktop, here’s the choices :
1.       KDE4 known for its plasma desktop, provide basic desktop functions and applications for daily needs of an end-user as well as tools and documentation for developers to write stand-alone applications for the system
2.      LXQt  is a desktop built on Qt which partly uses Razor-qt and LXDE components.
3.      MATE aims to preserve the classic desktop metaphor
4.      Xfce is a lightweight desktop environment. It aims to be fast and low on system resources, while still being visually appealing and user-friendly. 


I choose MATE because of its classical desktop interface.




STEP 3 :
Setting your own operating system : Timezone, UTC Support, Keyboard Layout and Sound Volume. It based on what you want to customize your operating system.


I choose UTC (Coordinated Universal Time) to be more worldwide

STEP 4 : 
Click 'Advanced options' there already explanation there, so you don't have to worry if you don't understand what you have to choose. I choose Guest to set user who will be logged in to my GUI distro linux. If you want to set password to guarantee your security, you can set it.





STEP 5 :
Customize it further, once again, this is the benefit by using Proteus Wizard, it is easy to understand because you can easily find the explanation in every step. Choose what you want to keep in your operating system settings. Just click enable 








STEP 6 : 
Here is the modules, select your web browser, word processor (like microsoft office word in windows), VoIP client (Voice over Internet Protocol is a technology that allows you to make voice calls using a broadband Internet connection instead of a regular (or analog) phone line) in here, we can use Skype, and eventually Development Tools that compatible to your own operating system. Just pick your own settings, my own use Google Chrome, AbiWord, Skype and enable any development tools.






STEP 7 :
Finally this is the last step. Choose your video card driver, it required when using heavy graphics functions such as playing video games etc. I choose nVidia Current 340.x. because it is very common. You can choose AMD or Open Source Drivers if you want a different function and ability on your own distro linux. Don't forget to make sure your own operating sistem has printing support. Then, click BUILD.






STEP 8 :
You do not have to wait for any longer, you can directly download your own Distro Linux!





This is the result in the end. Use Virtual Machine to try your own Distro linux. You can use virtual box or vmware. I try it on virtual box :


Just click continue afterwards


Select setting, and storage. And put your operating sistem in iso format. Select 'OK' and then START.




The interface of my own Distro Linux :



Google Chrome can be used :




 Create a document :



 Very easy and simple, right? So, why wait? Customize your very own distro linux now! Thank you for your visits. I hope it can helps those who want to make their own Distro Linux in easy and simple way. HAPPY TRYING :)

CALYSTA MERINA M.
NIM : 1113091000071
TEKNIK INFORMATIKA 4-C
TUGAS AKHIR UAS SISTEM OPERASI













Monday, June 8, 2015

Alone

I felt silence when I know it's crowded 
I walked by, but no one noticed me
I came to the dark, but no one shouted my name
Something was missing, but I don't know what

Through the darkness I keep stuck
Waiting for someone to pick me up
But perhaps, I am deluted
Because no one looks at me

I miss being missing
I need being needed
I want being wanted

....Maybe that's all....

Because all I feel is alone

....Maybe for right now....


Wednesday, January 7, 2015

Wednesday, December 31, 2014

Technology World: Drive me NUTS

I only want to say one thing: I HATE DOING SOMETHING THAT I'M NOT GOOD AT. Damn yeah. Goshhhhh I am struggling with my major. I feel like I am drowning in 'technology insanity'. Help me someone please, because maybe after 2 years from now I will lost in the madness of 'programmers-should-do'  -if you know what I mean.

I forget to tell you about what I'm doing now, which is be an informatics engineering student in one of the state islamic universities in Jakarta. Combined technology and religion aspects?never come to my mind. Is it crazy? Yes. Drive me crazy? ABSOLUTELY. I never imagined my life with technolgy, because my relationship with technology is not really good... i remember when I was in high school, my phone was broke 3 times in a month, and I don't know how to fixed it. Soooooo entering engineering school is beyond imagination lol.

So, we'll see. I'm going to this...


Or this...