How to blink a LED light on Arduino

I started leaning Arduino these days and I am totally into it! The hardware stuffs have so much fun! I want to share what I learned a little bit about Arduino which is about how to blink a LED light on Arduino. So here is the easiest project that you can do.

◯What you need

  1. Arduino Uno


    2. USB cable (Type A to B)


◯What you code

In my tutorial, I will try to blink for each two second.

◯Explanation of each line of code

・#define LED_PIN 13

// This is able to define LED_PIN 13 as a constant value. (By you just change the code you define when you want to change, you can replace all the programming you code. Which means you do not have to change every single line of code.)

・void setup() {

 pinMode (LED_PIN, OUTPUT);


// It initializes the digital pin which is 13 from #define LED_PIN 13.

・void loop()

// The loop function is the function that runs repeatedly.

・digitalWrite (LED_PIN, HIGH);

// This turns on the LED light.

・delay (2000);

// Milliseconds. In this case, 2000 means 2 seconds.

・digitalWrite (LED_PIN, LOW);

// This turns off the LED light.

How to install Pyserial for Arduino

I am into playing with Arduino these days, and since I love Python, I had an idea of using both together. I did my research on Arduino and using Python with it and how both of them interact each other. I found out that you can use Python and Arduino together and using Python for Arduino might be easier for Python users who are interested in hardware stuffs to move Arduino stuffs. And I think by learning python with an Arduino, you will understand some advantage for both of them and your knowledge of Python might be deeper. However, there are some things you should do before you go out and do Arduino stuffs, so I tried to organize the first step for it in this article.

1. Please make sure that you already have Python 2 ( ← (This link is the latest version of Python 2 so far). Then, you have to install a special library called “Pyserial” to communicate with the Arduino.

2. In order to get Pyserial, open the terminal on your computer, then try to code like this.

3. Open the python 2 shell, then try to put 

If you could not install both of them or either of them, you might get the error like this.

If you got this error message, go back to follow 1 to 3 again and please make sure whether you installed both of them correctly. (You might want to use another editor… Of course you can use it!)

4. Mission complete! You are ready to code!

How to read input file for C++ in Xcode

If you are currently a student from a college and taking some classes of computer science, you have to have an integrated development environment (IDE) to do your HW or to practice some coding on your computer. Many colleges might require students to use CodeBlocks, Visual Studio, or any other IDE because some college does not even provide macOS devices like an iMac. However, if you are a Mac user, using CodeBlocks or others might be uncomfortable for you. Additionally, you might have considered how to use Xcode, but there are some tricky parts on how to use Xcode. Some of my friends also gave up using Xcode because of that even they are Mac users. I have personally been using Mac for a while, so in this article, I am talking about how to input files for C++ in Xcode for people who are stuck on it.

First Step: Open your text editor on your Mac

I personally use a text editor called Atom from Github. At this time, I use these data. You can use any kind of data in the file. After you put some data in the file, press “Command + S.” Then, you can save your file anywhere you want. In this article, I saved the file on the desktop because it is easy to find it out.

Screen Shot 2016-06-27 at 19.40.56

Next Step:

Here is the trickiest part and different from any other IDE.

  1. Go to your Xcode and follow some requirements from Xcode.
  2. After you get that window you can code, there are 2 icons that look like the file on the left side. One of them is the name of the file you set up, and another one is named “product”
  3. When you click on that, a little another icon comes up and the name is exactly the same as the name of the first file you set up.
  4. Right-click on that icon, and click on “Show in Finder”

Screen Shot 2016-06-27 at 19.55.06

5. Drag the file to the place like the image.

Screen Shot 2016-06-27 at 20.06.49

If you get these steps done correctly, let’s get started with coding!

Simple Coding Time!!!

Here is what I code simply.

You do not have to code the same as mine.

Finally, let’s run it!

Screen Shot 2016-06-27 at 20.22.16

Mine is working well! How about you? If you have any questions, please comment below!

Why you should start learning from Python

3 Reasons Why You Should Start Learning from Python Programming

Have you ever learned how to code?

Are you seeking a new skill to get a better job?

If your schedule allows it, you probably have some time to learn Python. Python is a tool that will provide you the necessary steps to improving your job marketability. I will be showing you why Python is the strongest programming language for beginners in this article.

1. Python code is really readable and easy to learn

This might be the first time you ever coded, but it’s ok. Python is the easiest programming language to learn and it’s being used by a lot of veteran programmers, so even if you are beginning of a programmer, I strongly recommend to study Python before you study other languages like C++, Java, or any other ones because you will be caught in confusion and stagnation. On the other hand, you might have the experience with code, but have never coded in Python. Do not worry about it. The concept of Python is actually really simple for a person who has experience in other programming languages. Even if you start studying Python with a limited schedule, you will be able to become a Python programmer in a couple of months later.

2. Python is being major programming by big companies

I met a lot of computer engineer guys who are working in big companies and even startups in Silicon Valley, and most of them said that Python is really useful to develop what they want to do in my interviews. Additionally, Google and Facebook are surely using Python to develop their products, so by studying Python, your chances of getting a job or work at big companies might be expanded.

3. Python covers a wide range

Python is a flexible language that has a wide variety of uses. For example, Python is able to develop web application, use machine learning algorithms, gain useful info from big data and etc. In addition, there are many libraries that you can install for what you develop. For example, if you install a library called Pygame, you can build your own game easily, and if you install another library called Pyserial, you can move Arduino as we As you can see, Python is able to make you fun to develop something and it is an important skill for recent business analytics.

If you have never learned Python, install Python from this link below.