Electronics tutorials including microcontroller, microprocessor, programing and circuits. Intended for beginners, electronics hobbyists, college students, professionals and educational purposes.

Using Push Button Switch with Arduino Uno

In this tutorial you will learn how to read the status of a digital pin of Arduino. I hope that you already go through our first tutorial, Getting Started with Arduino Uno - LED Blinking. In this example, a push button switch and an LED is connected to Arduino Uno. When we press the switch, LED will glow for 3 seconds. A pin is configured as Input Pin to connect switch and another pin is configured as Output Pin to...

Getting Started with Arduino – LED Blinking

Arduino Uno R3 Arduino Uno is the best development board for beginners in the field of embedded systems. We can program Arduino board with less technical knowledge and programming skills. This tutorial is intended to beginners in the field of Arduino. Hope you already have an Arduino board. Then you have to download Arduino Software and Driver. You can download it from Arduino Website. Installing Arduino Driver Now connect the Arduino to your computer using a USB cable. As usual Windows may start...

Using Push Button Switch – MPLAB XC8

Push Button Switch I hope that you already go through the first tutorial of MPLAB XC8, Getting Started with MPLAB XC8 - LED Blinking. In that tutorial we learn how to use an output pin by driving an LED. In this we will learn how to read an Input pin using a push button switch. We already seen that TRIS register is used to set direction of each IO pin, ie Input or Output and PORT register is used to read...

Arduino Uno

Arduino Uno R3 The Arduino Uno is the most popular one among other Arduino development boards. It is  based on the microcontroller ATmega328. The factor which make Arduino Uno differ from others is that it does not use FTDI USB-to-serial driver chip. Instead it uses a microcontroller Atmega16U2 (Atmega8U2 up to version R2) which is programmed as USB-to-serial converter. Its peripheral features includes 14 digital input/output pins (of which 6 can provide PWM outputs), 6 analog inputs, a 16MHz crystal oscillator, a USB...

Getting Started with MPLAB XC8 Compiler – LED Blinking

In this tutorial we will learn How to Blink an LED with PIC Microcontroller using MPAB XC8 Compiler. Recently Microchip released a series of development tools including MPLAB X IDE and MPAB XC Compilers. MPLAB X IDE is a software that runs on a computer intended to develop applications for Microchip's Microcontrollers and Digital Signal Controllers. It can be used with Windows, Mac and Linux Operating Systems. It is called an Integrated Development Environment as it provides comprehensive facilities to...

Getting Started with PIC 18F Microcontroller – MikroC

In this tutorial we will learn how to program PIC 18F Microcontrollers using MikroC Pro compiler. I hope that you already know the basics of PIC Programming using MikroC compiler. If you are a beginner to this field, please read our first tutorial Blinking LED using PIC Microcontroller - MikroC. There are a lot of advantages for PIC 18F microcontrollers compared to 16F. Some of them are given below. PIC 18F is optimized for C while PIC 16F is not. ...

Arduino – Development Board For Beginners

Arduino Uno R3 Arduino is a development board based on Atmel Microcontroller introduced in 2005. It is intended for beginners in the field of electronics. This can take inputs from different switches, sensors and can given output to surroundings through light, sound, motion etc. This is the most convenient method for computer based students to develop electronic projects with basic knowledge in electronics. It is an open source system which is flexible and is easy to use. Arduino has its own...

Read Modify Write Problem with Mid-Range PIC Microcontrollers

RMW Problem with PIC 16F Family Microchip's mid-range PIC Microcontrollers use a sequence of operations : Read, Modify and Write to change output state of a pin. In certain circumstances RMW operations might cause unexpected behavior of outputs. You might have already experienced this issue and struggled with it as you can't find exact reason with microcontrollers unexpected behavior. Mid-Range PIC Microcontroller uses two registers, TRIS and PORT to control the direction and status of an IO pin respectively. When you try...

>