Tuesday , February 21 2017
Home / Tag Archives: programming

Tag Archives: programming

Arduino Like Serial / UART Library for PIC 18 Microcontrollers

PIC with serial port

In my last post describing the implementation of a circular buffer I mentioned that I was working on a serial UART library for PIC 18. Well it is now completed! Yesterday I tested all the functions of the library and its working like a charm! In this post I will explain some key aspects of the code and how to download and use it in your code. What is UART? Universal Asynchronous Receiver and Transmitter is a serial communication protocol. …

Read More »

Implementing Circular/Ring Buffer in Embedded C

circular buffer

Most embedded programmers come to realize that majority of the code that they write in a day are either related to state machines or circular buffers or queues. In this article we will have a look at circular buffers and how you can implement them in low memory devices. For those of you who don’t know what a circular buffer is, its a kind of array that will loop back to 0 after it reaches the maximum number of bytes …

Read More »

Stepper Motors – Introduction and Working Principle

Stepper motor is a specially designed DC motor that can be driven by giving excitation pulses to the phase windings. They cannot be driven by just connecting the positive and negative leads of the power supply. They are driven by a stepping sequence which is generated by a controller. The motor moves in steps according to this sequence. This post will discuss the basic theory behind the stepper motors. Printers are a great source for stepper motors. Old dot matrix …

Read More »

Make a Digital Clock with DS1307 and PIC 18F4520

digital clock lcd

Digital clocks are are very commonly (cheaply) available these days. Some of them have a built in RTC to keep the time running even if the main battery fails and some of them don’t. In either case, for an offline embedded application to get a time stamp, an RTC in almost the only cheap solution solution available. Most of these clocks use a 7-Segment display to display the time and date while some use LCD displays. In this post we will see how to …

Read More »

Programming Shortest Path Line Follower Robot

blackboy

This post is the programming section of my previous post Shortest Path Line Follower Robot Logic Revealed!  that dealt with the logic behind the following routines. To understand the complete nature of this post you should read that post first and then continue with this one. No, this is not the entire code! even if the title reads Programming Shortest Path Line Follower Robot :-). This by no means is the entire code for the shortest path detection robot. But …

Read More »

Programming a Line Follower Robot

Line Follower sensor

Programming a Line Follower Robot is the next step that you should do after building it. This is a follow-up on my previous post Line Follower Robot – Build it from scratch. If you haven’t already read it, I suggest you read it before going any further in this post. When it comes to programming a line follower robot doesn’t mean you can just copy paste a bunch of code from somewhere and say you are done programming 😛 You …

Read More »
Keep in touch with the current trends!
Did you like this article? Sign up and get our latest posts delivered to your inbox!
  We hate spam and never share your details.