Archives

All Posts Tagged Tag: ‘ADC’

Arduino Voltmeter

Arduino Voltmeter Banner

I’ve been experimenting on ADCs alot recently and I suddenly thought of doing this small experiment. I’ll try to turn my Arduino into a voltmeter by using its’ analog input and the very powerful map() function. I’ll be using a HD44780 character LCD to display the voltage output and a 10k potentiometer to vary the input voltage going into the …

Read More

Microchip PIC16F877A ADC Configuration

16f877a Adc Banner

I’ll admit that the datasheet is very confusing especially for beginners like me. In this post, I’ll attempt to summarize everything I know about the ADC on a PIC16F877A and hopefully it will be informative to my dear readers. First and foremost, we must have a clear picture on what the built-in ADC is doing. Think of it like there’s …

Read More

Writing code for PIC Microcontrollers in C (Hi-Tech C Compiler)

Hitech Banner

I’ve always wanted to learn how to write PIC programs in C. You might think that’s odd but I was taught how to write in assembly language and not C unlike other universities or colleges. Most of the time it’s the other way around. Learning assembly code is a good thing actually because these C code will eventually be translated …

Read More

Arduino Oscilloscope

Arduino Osc

Can’t afford an oscilloscope? Now you can have your own for much less (albeit a mini one). Watch the video to see how it works. First and foremost, I should mention that I did not come up with the idea, nor the programming of this code. I’m using the program and code from an open source project called xoscillo. Please …

Read More

Arduino : Basic Serial Communication

Arduino Serial

Besides uploading sketches to an Arduino, the computer can also receive data or send commands through the Serial Monitor in the Arduino IDE. Usually my demo video will be at the end of the post but this time I think I’ll do it differently, so here it goes. The sketches that were used in the video are as follows. Thanks …

Read More

Microchip PIC16F877A Analogue to Digital Conversion

16f877a Adc Banner

As mentioned in the previous post, the PIC16F877A has a built-in Analogue to Digital converter. What ADC does is basically convert an analogue voltage ranging from -Vref to +Vref (usually 0V to 5V) and converts it to a binary value. The ADC on the PIC16F877A has 10-bit resolution and this provides 1024 steps (2^10=1024) which is more than enough for …

Read More