android bluetooth oscilloscope


Posted on Feb 6, 2014

The transmitter circuit uses Microchip`s dsPIC33FJ16GS504 for the analog-to-digital conversion of the input signals on two channels. The processed data on the dsPIC are then transmitted to the phone (for waveform display) via the LMX9838 bluetooth SPP module. The source codes for the bluetooth communication is based on Bluetooth Chat example from


android bluetooth oscilloscope
Click here to download the full size of the above Circuit.

That example contains three java source files. And, I`ve completely copied the "DeviceListActivity. java", which is used for searching remote bluetooth devices. Then I`ve modified the "BluetoothChatService. java" to use only the RFCOMM Client functions, and used the well-known UUID " 00001101-0000-1000-8000-00805F9B34FB " for the Bluetooth RFCOMM/SPP. For the plotting of waveforms, I`m using SurfaceView object to draw on its canvas. This tutorial found on helps me a lot for this task: " How to use canvas in your android ". The rest of the job mainly involves porting of my previous Python S60 script to JAVA language. It was too painful on my side, because I had to convert a single script file to multiple java + xml source files! Nonetheless, it was a good experience for me on learning the Android SDK (JAVA programming). *The dsPIC I have used is most probably NOT the best choice for this project because of the many left unused peripherals (extra pins). But, this is the only part readily available in my bin and it has the fastest ADC (2 x 2MSps) among the chips I have. It`s almost a year now, and yet some people are still interested in this project (considered to be obsolete). So I`ve decided to place the source repository also on Google Code site. You can either Browse or use git to have your own local copy: See also the Changes, if you want also to learn on how to modify the code. I`ve started the first `commit` with a...




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    VHF Portable "rubber duck" antenna
    Implantable-ingestible-electronic-thermometer
    Ir-Controlled Soldering Station
    Audio Power Amplifier Circuit
    1Khz Harmonic Distortion Meter Circuit
    Electric Organ FOR ABOUT FIVE DOLLARS
    555 How can I make a 15 minute egg timer circuit
    barcode scanner emulator
    Digital Ber-password circuit
    Ultrasonic Dog Whistles
    2 channel audio mixer circuit using transistors
    How to Measure Analog Distance Sensor
    One-way operation of a dynamic braking circuit
    4 hours AC power timer circuit 555 BH4024
    Multipurpose tape recorders TV signal generator circuit



    Top