Sunday 13 December 2015

Convert Float in to String in C


There is a very useful function called dtostrf() which will convert Float in to String

The syntax is 

Thursday 10 December 2015

LED current limiting resistor calculation


To calculate resistor value needed for a simple led circuit use ohms law


R=VccVfIf

Monday 7 December 2015

Programming Arduino mini pro using USB to TTL converter


Here in this post i'm going to tell you how to program your arduino mini pro using a USB to TTL converter.

Requires:

1.USB to TTL converter( I used D-SUN)
2.Arduino mini pro
3.Connecting wires

Connect ESP8266 to internet(Hotspot) using AT commands


 If your hardware setup is not ready then see my post ESP8266 hardware setup

Now you are ready to send your first Command!
.
The updated firmware versions require Carriage-Return-and-New-Line line endings and
there appears to be no way to configure screen to send both with one key press. Instead, you need
to press <enter> or Ctrl-M then follow that with Ctrl-J.

1. Open your Hyper terminal

2.Configure Hyper terminal

Sunday 6 December 2015

Update the Firmware in Your ESP8266 Wi-Fi Module


 ESP8266 is low cost WiFi module suitable for adding WiFi functionality to an
existing microcontroller project via a UART serial connection. The module can even be reprogrammed to act as a standalone WiFi connected device–just add power. Here this tutorial will help you to update the firmware of your ESP8266.

Saturday 26 September 2015

Thursday 10 September 2015

Interrupt and Polling

What is interrupt?

In an embedded system we use many sensors, serial communication, ADC and much more Microcontroller communicates

FreeRTOS Task




         A task is a user define function with a given priorityTask must return void and take a void pointer parameter.

void ATaskFunction( void *pvParameters );

Each task is a small program in its own right normally

What is FreeRTOS









FreeRTOS is a market leading RTOS from Real Time Engineers Ltd and it supports more than 35 architectures and received greater than 113000 downloads during 2014.

Monday 17 August 2015

Sunday 2 August 2015

Graphic LCD


Graphic  LCD




Character LCD                                                     







GraphicLCD











The character LCD can display only

Finding Value of Capacitors

Finding Value of Capacitors




Electrolytic capacitor














Electrolytic capacitors are polarized capacitor (+ve and –ve) and

Saturday 1 August 2015

Ternary Operator in C



In C programming we often use ternary operator (? :). The ternary operator is a conditional operator similar to the way conditional expression if-else.

Saturday 18 July 2015

Real time Operating System

Real Time Operating System


A real Time Operating System is designed for real time applications, intended to serve real time application requests such applications include embedded systems, industrial robots, scientific research equipment etc.  The operating systems appear to allow multiple programs to execute simultaneously.

General Purpose Operating System

General Purpose Operating System


             The general purpose operating system is a computer  program that supports a computer's basic functions such as

Basics of PIC microcontroller


             PIC is a family of modified Harvard architecture microcontroller made by Microchip, PIC (Programmable Peripheral Interface Controller) microcontroller is popular among engineers and hobbyists. Early models

Friday 17 July 2015

Atollic TrueStudio "Invalid project path: Include path not found"



Warning in Atollic TrueStudio "Invalid project path: Include path not found"

Example below:


Invalid project path: Include path not found (C:\Program Files (x86)\Atollic\TrueSTUDIO for ARM Pro x.y.z\ARMTools\arm-atollic-eabi\include\c++\4.7.3)

Solve ARM GCC error "register may not be same – ‘strexb r3,r2,[r3]’"




This error arises because strexb and strexh is undefined when two registers are same. The problems would be in lines 736 and 753 of inc/core_support/core_cm3.c.

 Solution


Wednesday 15 July 2015

PIC development tools

PICkit3 incircuit debugger/programmer


The PICkit 3 In-Circuit Debugger/Programmer a simple, low-cost in-circuit debugger that is controlled by a PC running MPLAB X IDE software. The PICkit 3 In-Circuit Debugger/Programmer is an integral part of the development engineer’s tool suite. The PICkit 3 In-Circuit Debugger/Programmer is a debugger system used for hardware and software development with Microchip PIC  microcontrollers and dsPIC Digital Signal Controllers  that are based on In-Circuit Serial Programming(ICSP) and Enhanced In-Circuit Serial Programming  2-wire serial interfaces.