Posts

Showing posts from October, 2017

Arduino 101: Tutorial #7 |Playing with LED|

Image
Hello people! In this tutorial we will try to make various patterns to blink a single LED. This is going to be fun :). So let's get started.! Suggested Reading If you aren't familiar with the following concepts, I recommend checking out these tutorials before continuing. Connecting an LED in a circuit   Working with breadboard Electrical Engineering Basics Making the circuit In this tutorial we're going to use the same circuit that we made in our previous tutorial here.  The circuit goes as follows: The only new thing that we're going to do today is to blink the LED differently by making slight changes to our code. Coding Until now, we've been executing all lines of our code. But what if we want to do something on a certain condition , and something else on some other condition. These kinds of situations as very common in coding and is an important part of programing. These situations are handled in programing by something known...

Arduino 101: Tutorial #6 |Important Concepts|

Image
Hello people! In this tutorial we will see some important concepts like comments in a code and discuss a few mistakes that beginners make while learning arduino. So let's get started.! Important Concepts Comments in a code: If you recall the very first code that we made. It was a fairly simple code to blink an LED. We defined only one variable (our pin number) and used a few commands that made our code to work. Now imagine a situation where you're working with tens of different led's performing different functions used at several different places in a code. You can see how difficult it will be to remember each one of the LED's and their functions in code. In this kind of situation, a code can easily become very messy. It will become very hard to read and understand, not for the computer(of course!) but for the human. Hence to make code more readable to human eyes, we use comments at various places to describe the working of block of codes. These commen...

Arduino 101: Tutorial #5 |Our First Circuit|

Image
Hello people! In this tutorial we will be making our first circuit with the arduino(Yayyy!). We will learn how to connect an external LED with the arduino and make it blink, just like we did in our first tutorial with the inbuilt LED. So let's get started.! Suggested Reading If you aren’t familiar with the following concepts, I recommend checking out these tutorials before continuing. Electrical Engineering Basics : Ohm's law, voltage, current, resistance. Working With Breadboards Theory Diode: A diode is a component that allows current to flow only in one direction. Hence, in electric circuits, a diode can be thought of as a one way check valve, that permits the flow of current only in one direction. There are other types of diodes too, performing different functions, but these are the ones that we'll be using most commonly in our arduino circuits. LED: LED stands for light emitting diode. The two terminals of an LED are called anode and cathode. T...

Arduino 101: Tutorial #4 |Working with Breadboard|

Image
Hello everyone! In this tutorial, we will learn what a breadboard is and how it is used to make electronic circuits. So let's get started.! Breadboard A breadboard, also known as a prototyping board, is used as a construction base for electronic circuits. It is usually used to make quick prototypes and circuits, hence the name prototyping board.Probably the best thing about breadboards is that it is reusable. You can simply disassemble the circuit on your breadboard, and make a new one very quickly.  Working  Breadboard is all about connected holes in a certain configuration. Simply speaking, all the holes joined with a line are electrically connected to each other( Consider the image below).Electrically, this means that all the holes of a line are at the same electric potential. Construction Any breadboard can be divided into 4 grids. Here I name these individual grids as A,B,C and D . All the holes in each grid are in someway electrically connecte...