All post of ElecFreaks

Linux+Arduino open oscilloscope – Lxardoscope

By October 19, 2011 3 Comments

LXARDOSCOPE is an Arduino based oscilloscope for Linux, using the Xforms library.  This project that lets you use an Arduino as hardware input for a Linux-based oscilloscope display.  If you have a Arduino Main board that’s perfect, and you can direct start this project.

“LXARDOSCOPE is a software implementation of an oscilloscope in LINUX, using an Arduino UNO for data acquisition. The graphical interface was designed to be as intuitive as possible for users who are familiar with traditional hardware oscilloscopes….” wrote by Oskar Leuthold who provided LXARDOSCOPE  to us.

I just did some simple testing for it. Although he already has detailed the steps in README,  I’m going to add some missing or error-prone areas for beginners.

Beginners User Guide:

 Step one :  Material preparation

  • Linux version – Ubuntu8.04,  Oskar’s the program was been developed  tested on  Mint9 (32bit) with an Arduino UNO.  So we test on Ubuntu8.04. You also can use above version.
  • Arduino main board.  we used Freaduino with ATMega328 (100% Arduino compatible), which could direct used in this project. Actually you can use any Arduino main board.  Oskar is using an Arduino Uno for his testing. You’ll need to remove the ATmega chip from the Arduino board after flashing the code to it, and then build a circuit around it which includes a power source where -2.5V is ground and 2.5V is VCC. All in all, you’ll need a 16 Mhz crystal, HEF4069 hex inverter, ATmega8-family microcontroller, and a few passive components to build this on a breadboard……. This is a Low-cost solution, however not suitable to beginners which not so much hardware experience.


 Step two: Ubuntu LXARDOSCOPE  preparation

The downloaded file contains executables, which might work on your computer. After unpacking the downloaded file, check whether exists on your computer:

  •  ls /usr/lib/*.

If does not exit, install

  • sudo cp /usr/lib
  • sudo ln ­s /usr/lib/ /usr/lib/ 

To start LXARDSCOPE, type in the working directory:

  • ./lxardoscope 

For a general installation, type either

  •  sudo make install or sudo cp lxardoscope /usr/local/sbin 

system wide start command is

  • lxardoscope  

If has exit, please also instead of the old library. You can backup the old library and then copy it.

  •  sudo mv /usr/lib/ /usr/lib/

Step three: How to get started ??

Oskar wrote: ”

1. choose serial port at startup: type ” lxardoskope /dev/ttySX ” with X being the device number. The program tries to initialize this serial port, but others can be selected later.
2. choose serial port on GUI: type ” lxardoskope ” . After starting up, the “Device” pulldown of the GUI is populated with the port choices available from the /dev directory.  ”

That no problem, but if you direct use Arduino main board, please note there not use /dev/ttySX, but /dev/ttyUSB0. Mostly of Ubuntu kernel has the FT232 driver(FT232 is Arduino’s USBtoSerial chip).  You need make sure it as below:

  •  tail-f/var/log/messages 

Looking for the following message:

  • Oct 18 15:32:53 Ubuntu8 kernel: [75191.124294] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0

If you find similar as ” ftdi_sio” message, that’s means there is driver already. If not, please re-plug the USB and Arduino main board times or you need install the FT232’s Linux driver.

After you connect Arduino main board and install dirver. Let’s start the project. Please type:

  • sudo lxardoscope /dev/ttyUSB0   or   sudo ./lxardoscope /dev/ttyUSB0

On success, the START button under the waveform area is enabled. Click it to start acquiring and displaying the data. The pulse indicator changes color from grey,  and then blinks in response to the serial data stream from the Arduino.

At least some horizontal lines should be displayed, maybe already some waveforms. Then make the necessary adjustments to the timebase and vertical scale and position, as on a conventional oscilloscope.

In display mode ADD, position and scale are taken from channel 1; entries for channel 2 are disabled. In display mode X-Y, the selected trigger channel is  displayed in horizontal direction (independent whether triggering is enabled or not)……

LXARDOSCOPE starts up with 3000 samples per second.  It’s really not fast, but worth to play.

More details please reference README in lxardoscope_0.8.tar.gz.


VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

Author robi

ElecFreaks - Community for electronics enthusiasts, provide all you need.

More posts by robi

Join the discussion 3 Comments

  • A great way to be sure that your activity relationship
    makes sense will be to explain it to someone else.
    If you clarify they have it and so what you
    assume the connection is, you are likely on the right
    track. Paul’s cathedral created Previous Agonyis house|the residence of Aged Misery was
    designed by Christopher Wren, who was the seventeenth-century builder By setting up your own site, a correspondent with a few project can take this approach one-step further.

    That site may assist many uses: all of them need
    some function. The site’s function depends, about the
    timeframe, to varying degrees the writer is prepared to devote to it.
    A working reporter may also must negotiate permission to activate in some online writing of their own using the editorial staff of the report or
    journal that engages him. Paul’s cathedral|Christopher Wren, who was simply the seventeenth-century builder It’s two EZ to readers and Skip homonyms will not have the capacity to
    clean it! Paul’s cathedral designed Outdated Agonyis property|the home of Outdated Agony was created by Christopher
    Wren, who was simply the seventeenth-century builder
    There is of success in essay writing a large section found in organizing your
    time efficiently. Should you develop a plan for your work that
    ensures you have ample time to finish each undertaking and avoids conflicts, the
    grade of your publishing may increase drastically. Use this basic method to plan your term and you will be more in a position enjoy and to relax your own time in the information that you have your assignments effectively in hand.
    Paul’s cathedral|Christopher Wren, who had been the seventeenth-century designer
    There is a finish that is positive also a good idea.
    You may summarise your reasons in the finishing sentence, attracting together the threads of an argument but
    in addition reminding the audience that your essay (preferably) has
    shown the details you set out to create.

    A final part for 1000-term essay would be 50-100 words in length.
    Paul’s cathedral created the house of Old Misery|Wren, who was A surgeon that is good should have many qualities.
    First of all, he should advertise not and the truth whispers of founded
    news that is ill. Only authenticated announcement should be given. Secondly,
    he must be neutral rather than like political party or any collection. Any
    specific community’s comments shouldn’t harm. That is crucial in a pluralistic (modern and multi-religious) community
    like India. Paul’s cathedral designed the home of Outdated Agony|Wren, who was A superb
    paragraph following TEEL can have an explanation and data through the
    part. By this I mean a section will not totally possess the reason after which the data in order.
    You’ll have then and data and an explanation another explanation or the proof first after which an explanation.
    However, the TEEL points will be included by a great dissertation. Paul’s cathedral|Christopher
    Wren, who had been the seventeenth-century designer of St.

    Paul’s cathedral|Christopher Wren, who was the seventeenth century builder ___The first-time, read the directions and the
    immediate possibilities for that personal assertion(s) you
    have to create just like you are examining a publication for


    clark Reply:

    Sorry, my dear friend. What do you mean? My mind was in a mess after reading your comment. Could you please give me a short, brief and clear point?


    VN:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • clark says:

    Hello, my friend, thanks for your comment. But is this a blog writen by you?


    VN:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply