Tag Archives: PIC18F

Making a SPL dB Meter

In the 1980s, there was no internet as like today and so the sources of entertainment were televisions, radios and cassette players. When I was a kid, we had an audio cassette player. We used it to play songs but my imagination was always fixed to its VU meter display with its fancy readings as shown below. It changed with the volume of the speakers and matched rhythmically with the sound coming out of it. During my engineering career, I got to know about the Decibel scale and sound pressure measurement. It soon became a goal for me to design an audio dB meter and recreate my child memories. In this tutorial, I will show how to make a dB meter that is accurate enough for general uses.

Read more

Implementing digital filters using PIC18F microcontrollers

Microchip’s PIC18 family of microcontrollers are popularly known for their logic and controlling functions. In addition, these microcontrollers have builtin hardware multipliers and multiple file pointers. These features, along with the built-in analog-to-digital converter (ADC), make PIC18 microcontrollers a competent choice for applications where logic and controlling functions are combined with signal processing applications. This application note demonstrates how the PIC18 family of microcontrollers can be used to implement digital FIR and IIR filters.

Implementing digital filters with PIC18F MCU

Low power temperature data logger using PIC18F27J53

Most of the microcontroller based data loggers use external EEPROM chips for storing the measurement values. This increases the cost, power consumptionm, and the size of the circuit board. Instead, why don’t we choose a microcontroller with a larger flash memory and use it for storing the data. Actually, a data logger’s firmware is not very big in size. So, the remaining flash memory can be used to store the data from realtime measurements. This project is based on the same concept and uses a PIC18F27J53 microcontroller that has 128K programmable flash memory. The PIC18F27J53 family microcontrollers are low power and high performance 8-bit MCUs with Integrated full-Speed USB 2.0. They have Deep sleep mode feature for low power application, and a RTCC module for real time applications.The analog to digital converter (ADC) module is 12-bit, so it gives better resolution.

The beauty of this project is it runs with a single AA cell battery. Wait a minute, how that could be possible. The operating voltage for PIC18F27J53 is between 2-3.6 V, and an AA cell battery can only provide 1.5 V. Yes, it has a voltage booster circuit to up-convert the 1.5 V from the battery to the required voltage level. And the switching for the boost circuit is provided by the microcontroller’s PWM output itself. So, how does the microcontroller start at the beginning? Yes, it requires a jump start at the beginning. That can be done by simply supplying the power from a USB cable at the beginning, then the microcontroller will pick up the power from the battery itself. This is a very interesting project.

Read more