What is Arduino

What is Arduino

We are often hearing about Arduino board a lot. Some say, its a board used for developing nice projects, some say its an engineers tool, some say its a microcontroller board, and some say its fairly simple thing to play with. The fact? all the statements above are TRUE!!! Yes. Arduino board is basically a board with a powerful processor on it, now what is the processor? We have heard that the processor is there in a Computer. Arduino board is having a similar thing, but it is not as powerful as a computer. It’s also not as costly as that of computer. A computer processor requires a motherboard to operate which houses all the required things for the microprocessor. On the other hand, Arduino has something called Micro-Controller. Yes, the microcontroller is a kind of processor itself, but it does not require any motherboard. Micro-controller is an electronic chip that can be directly connected to any external world devices, like sensors, LEDs, switches etc… directly and it can be programmed to do our desired task. The beauty is, microcontrollers can be reprogrammed again and again for finishing our job the way we want it to be done. Arduino is basically a microcontroller board. The official Arduino website is this

Who uses Arduino Board?

Being said it’s a microcontroller board, who is suitable to use Arduino Board? There’s a more interesting answer to this. Arduino was developed with the sole purpose to make it usable for ANYONE and I mean ANYONE who is interested in using it. The only thing you require to use an Arduino board is understanding English for writing programs for Arduino board. The intention was to make Arduino easy to use by any artist, hobbyist, enthusiast, or engineer. So even if you’re a school going student, a collegian, working somewhere, or retired getting bored, Arduino is for Everyone. Anyone who can read English can write programs for Arduino and develop some really cool Projects.

Open Source Nature of Arduino Board

Arduino is a first of its kind open-source hardware. Open-source hardware means, for all the Arduino boards that are available in the market, all their circuits and layouts and schematic files are freely available to download. You are authorized to do reproduce Arduino boards, or make something your own out of it. You’re entitled to do everything except one thing, that is to use the name ARDUINO. Arduino’s name can not be printed by any other company except Arduino itself. So people develop various Arduino board variations and give it their own name, the most popular one is called FreeDuino. You can also write Arduino coding without using the text by simply following blocks. Learn more about Arduino block-based coding here

Arduino at Glance

As said before, Arduino is a microcontroller board developed for anyone to be able to use it. Let’s see what it is actually. Look at below Picture

Arduino UNO

Above image shows the picture of most popular Arduino Board. This board is called Arduino Uno. We’ll first discuss about arduino and then about the various versions of it. Have a look again at below Image

Arduino Architecture

As you see in above picture, the most important part of Arduino board are USB connector, Microcontroller IC, and the Arduino Pins. If you give a close view, you can read the arduino pins on top side numbered as Pin 0, 1, 2 up-to 13. On the bottom side, there are Arduino pins numbered as A0, A1, unto A5 and some power pins Description of these blocks is as below

Power Jack

Arduino UNO Power jack

This power jack is to provide external DC voltage to power the Board ON, usually Arduino board can be powered from USB cable and we don’t always need to give any external power to the board. Though in some cases, if external power is needed, the Power Jack can be used, we can give any voltage to this power jack from 7V – 20V DC, usually we should not give more than 12v In order to not to damage the on-board voltage regulator IC’s

Power Pins

Vin – This is the pin which gives the applied input voltage through the black coloured DC jack, remember you don’t need to connect power through this DC jack always, you can use the arduino with the USB power also GND, 5v – +5v and Ground connection of board, its required many times while interfacing with external peripherals, when we need to give power to any sensor outside of board, we use these pins3.3v Internal 3.3v supply coming out of the regulator on Arduino board, not much strong, good for powering small things Reset – The Reset Pin of micro controller, giving GND to this Pin resets the controller, there is a reset switch also present to reset arduino board

Arduino Board Pins

Pin 0 – Pin 13, these are the Digital Input/Output Pins of Arduino, means you can take digital inputs (5v or 0v) or giving digital outputs using these pinsPin A0-A5, these are same as the other digital Input/Output pins, except these are also capable of accepting analog inputs. Any signal whose voltage is to be known within 0-5v can be given directly to this pin

Arduino Software

One can write simple arduino programs using the Free and Open Source Arduino Software. Arduino IDE is available for Free download from this link. http://arduino.cc/en/Main/Software Choose the Operating System before you download any files, as of today, Arduino supports all Major Operating Systems, viz, Windows, Linux and Mac. You can download arduino as a single install-able file for windows or can also choose a complete package that does not need any installation. You can install the official arduino software free of cost from here

Arduino Board Versions

There has been a variety of various Arduino Boards available which can sometimes make one to get confused. Though the Uno and other compatible boards (duemilanove) are most popular, there are many other Arduino boards available from Arduino. Here’s a quick list to understand basic differences between popular arduino boards features and pricing

Arduino Uno

  • Processor: ATmega328 (8-bit CPU, 16MHz clock speed, 2KB SRAM, 32KB flash storage)
  • Features: 14 digital I/O pins, 6 analog input pins, removable microcontroller
  • Form Factor: 2.7″ x 2.1″ rectangle
  • Price: Rupee 1400 (original, clones are available at much cheaper costs too!!!)

Arduino Uno is the most “standard” Arduino board currently on the market, and is probably the best choice for beginners just getting started with the platform. The board is compatible with more shields (add-on boards) than other models. Additionally, the ATmega328 microcontroller (if damaged) can be removed from its socket and replaced for as little as 200 Rupee.

The Uno’s main limitation is the ATmega328 chip, which doesn’t have a lot of SRAM or flash memory. That limits the kinds of programs you can load on the chip—if your project involves a display or otherwise needs to store and use any form of images or audio data, 2KB of memory probably isn’t going to be enough. But still for most of the beginner’s projects, uno is the best choice

Arduino Mega

Arduino Mega
  • Processor: ATmega2560 (8-bit CPU, 16MHz clock speed, 8KB SRAM, 256 KB flash storage)
  • Features: 54 digital I/O pins, 16 analog input pins, non-removable microcontroller
  • Form Factor: 2.7″ x 2.1″ rectangle
  • Price: Rupee 3000INR (original, clones are available at much cheaper costs too!!!)

As the name suggests, Arduino Mega is with mega features, Massive pin count, 54 pins is too much and can handle most of the big projects also. It has got the same kind of CPU as that of Uno but with an added pin, added RAM, and added Flash Memory, Flash memory is something where Program is stored. Arduino Mega is perfectly suitable for small to large projects equally. But due to the inclusion of new boards, mega is not so extensively used these days.

Arduino Leonardo

  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage)
  • Features: 20 digital I/O pins, 12 of which can be used as analog inputs, native USB support
  • Form Factor: 2.7″ x 2.1″ rectangle
  • Price: Rupee 1800-2000/- INR

The Leonardo is, essentially, a slight upgrade to the Uno. It looks a lot like the Uno, but it features a soldered-on ATmega32u4 microcontroller with a tiny bit more memory. The main advantage of the AtMega32u4 is the chip’s built-in USB compatibility. This allows the Leonardo to interface with a PC, which sees it as a generic mouse or keyboard. It also features a few extra analog input pins.

Most impressively? The Leonardo is actually cheaper than the Uno, ( This thing does not apply to India, sadly, here uno is cheaper than Leonardo). Before you buy Leonardo, remember that the general assumption around the web says that Leonardo still has a few bugs that need rectification and isn’t quite as beginner-friendly as the Uno.

Arduino Due

Arduino Due
  • Processor: Atmel SAM3X8E ARM Cortex-M3 (32 bit CPU, 84MHz clock speed, 96KB SRAM, 512KB flash storage)
  • Features: 54 digital I/O pins, 12 analog input pins, 2 analog output pins, native USB port
  • Form factor: 4″ x 2.1″ rectangle
  • Price: Rupee 3400/- INR

One of the newest Arduino boards, the Due is the big guy in this family, packing a 32-bit ARM processor that faster than any of the processors found in other Arduino boards. The Due is primarily for much more complicated projects that can make use of its muscular processor, or that need more I/O pins than are found on the smaller Arduino boards. So the Due is substantially bigger and more expensive than the Uno or Leonardo, so consider whether you really need the extra power before buying this.

One drawback to the Due is that it operates at 3.3 volts, which is different than the 5 volts that most other Arduino boards operate at. That limits the add-on hardware that’s compatible with the Arduino Due—if an add-on board tries to send a 5 volt signal to the Due’s I/O pins, it could damage the microcontroller. If you need a powerful Arduino board that still operates at 5 volts, you can look at the $58 Arduino Mega 2560, but for the most purposes that board is outperformed by the cheaper Due.

Arduino Esplora

Arduino Esplora
  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage)
  • Features: Lots of built-in input and output hardware
  • Form Factor: 6.5″ x 2.4″ oval
  • Price: Rupee 4500/- INR

The Esplora is an Arduino board (based on the Leonardo hardware) that comes with a whole bunch of some input and output hardware soldered directly to the board. On the input side you get a joystick, four buttons, a linear potentiometer (slider), a microphone, a light sensor, a temperature sensor and a three-axis accelerometer. For outputs, you get a buzzer, an RGB led, and a TFT display connector to attach a LCD screen (not included).

The deal is that you do not get the standard set of digital and analog I/O pins, which allow you to wire up all sorts of hardware to your Arduino board. That sharply limits the kinds of projects you can make. The Arduino Esplora is best for people who want to learn to use the Arduino software to write programs that have access to a basic toolbox of I/O sources, without having to worry about the electronics side of things.

Arduino Yun

Arduino Yun
  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage), Atheros AR9331 system on a chip
  • Features: Wi-fi enabled Linux based system on a chip, 14 digital analog I/O pins, 12 of which can be used as analog inputs. Native USB.
  • Form Factor: 2.7″ x 2.1″ rectangle
  • Price: Rupee 6000/- INR

The Yun is an attempt to make it easier to connect to cloud-based services from the Arduino platform. Typically, the low-bandwidth, low-memory micro controllers have a hard time handling the verbose protocols used to access those services—to get around this limitation, the Yun features a separate Linux-based system-on-a chip on the motherboard. The Linux system takes care of the networking tasks, while you can use the ATmega32u4 like a standard Arduino Leonardo. It simply converts the arduino into a full wireless board compatible

More Arduino boards can be found on the official Arduino website here

Verdict

That said, it’s up to you to decide the perfect arduino for your project. Generally, if you’re a beginner, then Arduino Uno is best to get started with due to low cost, ease of use and a large amount of open source projects already developed for trying and hacking. Happy Learning!!! Offcourse these are not the only arduino boards available out there, there are a lot more of them which you can check on www.arduino.cc. Thank you for reading.

DC Power Supply

DC Power Supply

What is DC Power Supply?

All circuits and gadgets and everything that is running on Electrical energy requires some particular Voltage and Current. There are 2 type of electrical powers available, called AC Supply and DC Supply. AC Supply is the one which is available to us from our Home Socket, this is a very high voltage (230v) and coming directly from the power plant, no storage. While in India, and in most of the countries, the domestic supply is AC only, most of the electronics circuits (almost all of them!!!) runs only on Pure DC power supply. Now DC is Direct Current and AC is alternating Current, below image might clear some things for you

above image shows that DC is a continuously ON and constant value whereas AC is continuously varying and changing its value continuously. Electronics circuits require no more than 12v DC and in most cases not more than 5v DC, such small DC voltages are not hazardous to human being and you can touch the source of such small DC supply, but never attempt to touch AC supply at all. Now let’s see how this AC is converted to DC for our use.

All electronics circuits run on DC Power supply and understanding the working of the power supply is the main key for running your project. A poor power supply may interfere in lots of different things making the circuit to not work, to hang sometimes, or to fluctuate the proper working. Hence though it’s little boring to study, its always good to understand what are the DC Power supplies, and what are the sources of good DC power

DC Adapters

Using a very simple and popular electronic component called diode, any AC signal can be converted to DC signal. But before doing this, we have to drop down the 230v AC to somewhat smaller voltage like 12V AC. This is done by using a Step-Down Transformer. Step Down Transformer is an AC to AC Converter which can convert a higher AC voltage to smaller AC voltage. After Step Down transformer, a diode-based rectifier circuit is used to convert the AC supply to DC Supply.

A Typical transformer looks like this

It has 2 coils, one called the primary winding and the other called secondary winding. For a typical step-down transformer, Primary is the One where we connect the Mains Supply (230v) and secondary is the one where we observe step down voltage(say 12v). You can develop such a small circuit on your own using a circuit like below. After a diode-based rectifier, we’re required to use a Capacitor filter and voltage regulator. A Voltage Regulator like 7805 can give you 5 v of regulated constant DC voltage at the output. There are many variants of voltage regulators like 7805,7809, 7812 and so on. Below is a simple DC power supply-Circuit

dc power supply

Above circuit shows a transformer, a bridge rectifier which converts the AC output from the transformer to DC pulsating voltage. The capacitor is used to filter out the AC component of the supply. And 7805 is the voltage regulator used whose job is to regulate the voltage to +5v constant supply. A small 100nF output capacitor ensures the high-frequency noise being conducted to Ground


The NuvoTon W78E052D controller Code downloading Steps

The NuvoTon W78E052D controller Code downloading Steps

In this tutorial series, we are using “Nuvoton ISP-ICP Utility software” to program the target MCU. Download Nuvoton ISP-ICP Utility software.

  • Now open the Nuvoton ISP-ICP Utility software and follow the below steps.
  • Select the ISP by COM port option for flashing the .hex file through a COM port.
  • Select the COM port from the drop-down. Check the device manager for the com port number.
  • Choose the required controller. In this case, it is W78E052D.
  • Browse and select the .hex file by clicking on Load File.
  • Finally, click on Update chip to flash the .hex file then press the reset button from the board.
Nuvoton ISP

The below screenshot shows the flashing status in a blue color progress bar.

Flashing Progress


A popup will appear after a successful flashing of the hex file.

Message for Successful Flash
LED light emitting diode

LED light emitting diode

LED’s are perhaps the most interesting electronic component that we use in circuit. LED’s are (Light Emitting Diode) components which can emit a specific light. It can be RED, Green, Blue or Yellow. LED’s require very less voltage to turn ON (typically 3v) and they have a very long life. We see LED’s in power indicators in almost any electronic appliance. The power light we see on TV, DVD, microwave, in TV remote control are all LED’s. We have LED TV’s now a day’s which uses LED’s to give the backlighting to the LCD Panel in it

Symbol of LED

LED’s are directional devices and are required to be connected in a specified direction only in a circuit. The LED’s are having two leads, they are called as Anode, and Cathode as shown in below image

The above image shows the LED circuit symbol in the upper side and how to identify the leads of LED in the lower side.

LED Usage

The most important thing to remember about using LED in any electronic circuits, is that never, I mean never ever connect LED to any Power Source directly. LED’s are to be always connected to any power source with a series resistor.

LED and Resistor

LED Series Resistor

There is a little Mathematics here about what should be the idle value of series resistor with LED. To be frank, there is no honest “value” or any real value. All the LED’s have a specified maximum current specified by the manufacturer which should not be exceeded, that’s it. We can use any resistor which limits the current flowing through resistor less than a specified value. As a thumb rule, all common LED’s have a rating of maximum of 60mA (mili amperes) It means, we should not allow more than 60 mA of current to pass through LED otherwise it will get damaged.

Using the simplest Ohms Law, we have this

R = V / I

Where

R = Resistance

V = Voltage Applied

I = current passing through the circuit

So if we want to limit current to a known value, we have to put the known voltage (which we apply, say 9v as our battery voltage) and the known Current in this equation to get resistor value.

For the sake, we’ll assume we are working on 9v, and we wish to limit our current to 20 mA

So

R = V / I

Hence,

R = 9v / 20mA

R = 9v / 0.02 Ampere

R = 450 ohm

As 450ohm is not a standard value, we can choose any value close to it, for example, we can use 470 Ohm or even 680 Ohm.

Remember, the LEDs in a most electronic circuits are used only for the purpose of Indication and not to light up a room. So we must use the resistor value as large as possible on which LED is lit, so as to keep our overall current consumption limited.

Batteries

Batteries

Every electronic circuit, project or gadget like our mobile phone or the speakers that we use, require electrical power to function. We can draw this required electrical power from our mains outlet using a power supply. When we want mobility and freedom from wires, we have to use a portable powerhouse. These are DC power sources and we call it a Battery. There are many types of batteries and there are literally infinite appliances that use batteries of different types. Our TV remote, Wall-Clock, wristwatches, cars, laptops, mobile batteries are everywhere. The battery provides a mobile voltage source. Depending upon our requirement we chose a battery which fits our requirement and our budget. e-vidya comes with a 9V Battery which is available everywhere and most easy to use. The household battery which we also call as pencil cell used in tv remote is a small one and gives 1.5V of DC voltage. The DC power source is denoted in the circuit diagram by a special symbol as shown below

Anode represents the positive terminal of battery and cathode represents the negative terminal of the battery. During building various circuits, we have to take extreme precaution that we should not connect it wrong otherwise; it may cause severe problems to our circuit. So take care while connecting the battery to any circuit. The 9v Battery provided has a clip showing red wire for an anode and black wire for a cathode. 9v battery looks like this

9 Volt Batteries

How Battery Works?

So what actually is a Battery? It is a combination of two or more electrochemical cells in which stored chemical energy is converted into electrical energy. Each cell consists of two half cells connected in series through an electrolytic solution. One-half cell houses the Anode to which the positive ions migrate from the Electrolyte and the other houses the Cathode to which the negative ones drift. The two cells are may be connected via a specific structure allowing ions (charged particles) to flow.

Types of Batteries

Apart from these 9v Batteries, below are some common types of batteries we use along with pictures and their rated voltage and applications where they are used

Name

  • Pencil Cell
  • General Cell
  • AA Type

Specification

  • 1.5 Volt
  • Lightweight Low current

Usage

Remote Control Battery, Toys, General Purpose

General Cell_AA type Cell

Name

  • Pencil Cell
  • General Cell
  • AAAType

Specification

  • 1.5 Volt
  • Lightweight and Low Current

Usage

Remote Control Battery, Toys, General Purpose

General Cell AAA Type

Name

  • Lead-Acid Battery

Specification

  • 12v, 6v
  • Heavy and High Current Capacity

Usage

  • Emergency Lights, Solar Lamps
  • Emergency Fans, Computer UPS

Name

  • Acid Filled Battery

Specification

  • 12v, 24v,
  • Very Heavy,
  • Very High Current

Usage

  • Vehicles,
  • Bikes,
  • Cars,
  • Inverters
Acid Filled Batteries

Name

  • Special Batteries
  • Li-Ion

Specification

  • 3.7v Each Cell
  • High Current

Usage

  • Mobile Phones,
  • Cordless Phones
  • Laptops
Lithium-Ion-Battery

Name

  • Special Batteries
  • Ni-Mh

Specification

  • 1.2v

Usage

  • Mobiles

Name

  • Special Batteries
  • Ni-Cd

Specification

  • 1.2v High Current
  • Small Size

Usage

  • Mobile Phones,
Special Batteries Type Ni-Cd

Name

  • Battery Pack

Specification

  • Ni-mh,
  • Ni-CD or
  • Li-Ion battery Pack combined for higher voltage

Usage

  • Mobile Phone
  • Robotics
Battery Pack