Posts tagged ‘C++’

A Clock/Stop Watch Based on BQ3287

Over the past couple of weeks, I have been experimenting with BQ3287, a real time clock module from Taxes Instruments. My ultimate goal was to eventually create a full fledged control platform based on this RTC module (more on this later). But first and foremost, I would like to explore its capabilities as an accurate time keeper. Continue reading ‘A Clock/Stop Watch Based on BQ3287’ »

Arduino Development Using NetBeans

The Arduino development environment is probably the preferred development platform for the majority of Arduino users. It is lean and relatively easy to use. Quite a few examples are at your finger tip and even for people without much programming experience, it is relatively easy to get started. You can write and upload your sketches (programs) without the need to ever leave the IDE. Continue reading ‘Arduino Development Using NetBeans’ »

Working With LM19 Temperature Sensor

LM19 is an analog temperature sensor that operates over a while temperature range (-55 to 130 Celsius). It is very easy to interface it with a microcontroller due to is fairly linear voltage output. Continue reading ‘Working With LM19 Temperature Sensor’ »

A Library for LTC1665/LTC1660

ATmega328p does not provide any Digital/Analog conversion channels (although the D/A conversion can be simulated by means of measuring the PWM output). We can easily add up to eight D/A channels using either a LTC1665 (8 bit) or LTC1660 (10 bit) from Linear Technology. Continue reading ‘A Library for LTC1665/LTC1660’ »

Interfacing LIS3LV02DL Using SPI — II

In my last post, I described in detail how to hand solder LIS3LV02DL, an LGA packaged accelerometer chip. And here I will show you how the communication with Arduino is done using SPI. Continue reading ‘Interfacing LIS3LV02DL Using SPI — II’ »

4 Digit 7 Segment Display Using Arduino

I was inspired by Paul’s 7 segment display and decided to build one myself. He used 4 common cathode 7 segment displays. In his original schematics, all the segments within a display shared one current limiting resistor which unfortunately affect the display brightness when different numbers of segments are lit. I happened to have two common anode dual 7 segment displays (QDSP-G545) so I decided to use them and four 74HC595 shift registers to build a four 7-seg display. Realizing that other people might be using either common anode or common cathode displays, I also built a library that can be used for either case. Continue reading ‘4 Digit 7 Segment Display Using Arduino’ »

A Parallel Port Stepper Motor Driver With Discrete Components

Using PC’s parallel port is a convenient way to control a stepper motor. For unipolar stepper motors, up to two motors can be controlled with the 8bit data line. Continue reading ‘A Parallel Port Stepper Motor Driver With Discrete Components’ »

A Simple Program for Finding Palindromic Prime Numbers

A palindromic prime (palprime) is a prime number that is also palindromic. So out of curiosity I wrote a simple program a few days ago that can find the palindromic numbers within a given range. Here is the code in C++: Continue reading ‘A Simple Program for Finding Palindromic Prime Numbers’ »

Image Blur Detection via Hough Transform — IV

In my previous three articles (1,2,3) I discussed how to use Canny edge detection and Hough transform to identify blur images. Here I will show some results from the algorithm discussed before. Continue reading ‘Image Blur Detection via Hough Transform — IV’ »

Image Blur Detection via Hough Transform — III

I will continue where I left off in my previous post. After performing Hough transform, and extracted the longest sections of lines for each corresponding Hough line detected, we will need to calculate the gradients of the image pixels luminance around the line sections. Continue reading ‘Image Blur Detection via Hough Transform — III’ »

Image Blur Detection via Hough Transform — II

In my previous post, I briefly discussed the rationale behind automated blur detection in digital imagery and did an overview of an algorithm that could be used to detect blur images. Here I will show some implementation details along with some C++ code snippets. Continue reading ‘Image Blur Detection via Hough Transform — II’ »

Image Blur Detection via Hough Transform — I

It is often necessary to identify and classify images based on their clarities. For instance, it is desirable for an automated process to locate blurred images within a large digitized image library and then automatically sharpen the blurred images via inverse filtering or blind deconvolution. In the following series of articles, I will discuss a practical method in detecting blur images using Hough Transform. Continue reading ‘Image Blur Detection via Hough Transform — I’ »