PIC16F877A

PIC16 SPI Tutorial

Simply put, synchronous serial protocols like SPI and I2C have a separate line for timing (the CLK line) while asynchronous protocols like UART (RS232) doesn’t. The addition of a clock line makes reception timing much more easier and thus reduces transmission errors. It is also possible to interconnect more than …

Read More »
PIC16F877A

Serial (USART) Communication with PIC16F877A

PIC microcontrollers, obviously, can do more than just light up LEDs or reading button states. Microcontrollers can also communicate with another microcontroller or with other devices like sensors, memory cards, etc. Often the communication is done serially, where data bits are sent one at a time. The microcontroller serial communication …

Read More »

Arduino Nokia 3310 LCD Interfacing

Displays are almost always a part of any microcontroller project or embedded system. Fortunately, there are cheap LCDs available with a wide support for multiple microcontroller devices. One is the PCD8544-based liquid crystal display, more popularly known as the Nokia 5110/3310 LCD. This Arduino Nokia 3310 LCD interfacing article covers …

Read More »
PIC16F84A

Input/Output with PIC Microcontrollers

For most microcontrollers, the input and output channels are handled by data direction special function registers. AVR microcontrollers call them Data Direction Registers (DDR) while ARM-based STM32 has a group of “GPIO” registers. PICs call them TRIS registers which is supposed to be short for “TRIState”. In this article, we …

Read More »
NRF24L01 Lower Power

Arduino NRF24L01 Interfacing Tutorial

If you are looking to have wireless features on your next project and don't want to spend that much, then an Arduino NRF24L01 solution might be for you. The NRF24L01 by Nordic Semiconductors contains a 2.4 GHz RF transceiver, synthesizer and baseband logic which can be interfaced through SPI. Apparently, …

Read More »
arduino rgb led tutorial

An Arduino LED Control Tutorial

The “hello world” of microcontroller programming is flashing a LED. As an introduction to Arduino programming, we’ll code several simple Arduino LED sketches; we’ll be blinking a LED, make a LED respond to an input and fade a LED. I’ll also show you how to easily manipulate multiple LEDs and …

Read More »
Arduino Servo MG996R

Connecting a Servo Motor to An Arduino

Building robots with Arduino starts with knowing how to move objects through motors. There are a lot of type of motors used in microcontroller-based systems: dc motors, stepper motors and servo motors.  In this Arduino servo motor article, I will discuss what is a servo motor and how to use …

Read More »
arduino like ide for pic - chipkit uc32

Arduino Like IDE for PICs

Before the Arduino become popular, PICs was the go-to microcontroller device for most electronic hobbyists. PICs were cheap and the resources (at that time) were plenty. But then Arduinos came, which offer a much simpler way to code and so only few now use these microcontrollers. Arduino's strength relies on it …

Read More »