PIC based Oscilliscope


Posted on Feb 4, 2014

In order to accomplish this my initial thought is to sample an input (ADC) at consistant time increments and then display the waveform on a graphic lcd display. If I want to change the time scale I can just change the rate of time between samples, and if I want to increase the voltage scale I can scale the measured values by some multiple. With that basic concept, this project will require an


PIC based Oscilliscope
Click here to download the full size of the above Circuit.

ADC, microcontroller, graphic lcd, and some form of input. After doing a bit of search for the LCD display this link was selling a 4 inch display with touch screen for a mere $25 (which is dirt cheap for that type of resolution if you check sparkfun or other website). So now I had the display and the input source, though more thought will be needed to have graphical interface, the next item to tackle was the ADC. I had a few 24bit Microchip microcontrollers that had onboard ADC that could sample at 1. 1 Msps, as they were designed to be optimized for digital signals. Not only that but they can sample multiple channels at one time which would be good for a two channel oscilliscope (if I decide to upgrade later on). The chip is a dsPIC33FJ128GP802, and it also has the capability to do sampling in the background while filling up an onboard DMA so that the only work in code will be to draw the display, plot the data, and handle inputs. The dsPIC33 is a 16 bit processor as opposed to the 8 bit processors which makes math on larger values much easier and quicker. On that same note, it also can run up to 40 MIPS so there should be plenty of speed if math operation may be needed to do an FFT or other analysis of data. Initially in testing I was interfacing the touch screen with an onboard ADC of the microcontroller, but after thinking about how that ties up a resource I decided to go with a dedicated touch screen controller the...




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Lead Acid Battery Discharge protector
    Colpitts harmonic oscillator 100Mhz
    Telephone Bell Simulator Circuit
    8051 USB PROGRAMMER
    Flame Feedback
    getting started with sn 6675
    Relay Driver Circuit
    The clock circuit diagram for racing
    BCD THUMBWHEEL SET 99 min TIMER



    Top