Differences between revisions 1 and 2
Revision 1 as of 2017-10-07 13:21:29
Size: 4013
Editor: RudolfReuter
Comment:
Revision 2 as of 2017-10-08 11:05:24
Size: 6209
Editor: RudolfReuter
Comment: new #2
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
  * '''Portable operation''' possible, with battery pack (power consumption 120mA @ 9V}   * '''Portable operation''' possible, with battery pack (power consumption 120mA @ 9V)
  * '''Good documentation''' - manual, schematics, firmware update
Line 15: Line 16:
== Specifications ==
||<tablestyle="float: right;">[[attachment:DSO150_DSC07450.jpg|{{attachment:DSO150_DSC07450.jpg|attachment:DSO150_DSC07450.jpg|width="400"}}]] ||
=== Specifications ===
Line 44: Line 47:
||<tablestyle="float: right;">[[attachment:Eagle6_exp-lbrs.ulp.png|{{attachment:Eagle6_exp-lbrs.ulp.png|attachment:Eagle6_exp-lbrs.ulp.png|width="468"}}]] ||
=== Bauteile in Library kopieren ===
Bei '''speziellen Bauteilen''' (devices) kann man im Internet oft einen Schaltplan finden, der das gewünschte Bauteil enthält, aber es gibt keinen '''Bibliothek File''' (library) dazu.
=== Modifications ===
In order to make the DSO more useful, tree modifications are made.
Line 48: Line 50:
Um diese Aufgabe zu lösen, gibt es von der Firma Cadsoft seit circa 2006 eine '''ULP''' (User Language Program) mit dem Namen [[http://ftp.cadsoft.de/cgi-bin/download.pl?page=/home/cadsoft/html_public/download.htm.de&dir=eagle/userfiles/ulp|exp-project-lbr.ulp]], die es ermöglicht, die Bauteile aus einem Projekt (Schaltplan) in eine Bibliothek zu kopieren. ||<tablestyle="float: right;">[[attachment:DSO150_USB-UART_DSC07451.jpg|{{attachment:DSO150_USB-UART_DSC07451.jpg|attachment:DSO150_USB-UART_DSC07451.jpg|width="400"}}]] ||
==== Rechargeable Battery Pack ====
On Ebay.de you can buy a '''6 x AA battery''' housing (ID number 162434646097, 1.6 EUR) with '''15 cm wires''' and an '''ON-OFF''' sliding switch. To connect to the DSO150 you need a '''DC plug''' 5.5/2.1 mm (e.g. ebay.de ID no. 152190640539, for about 10 pc. 2 EUR).
Line 50: Line 54:
Ab der Eagle Version 6.4 wurde diese ULP umbenannt in [[http://www.element14.com/community/thread/21425/l/eagle-version-64-released|exp-lbrs.ulp]]. Ein Erklärung mit Bildern, in Englisch, gibt es [[http://slopjong.de/2012/12/06/eagle-extract-a-symbol-from-a-project-to-a-library/|hier]]. /!\ Because of the '''low voltage''' (7.4 V) you need to short the '''inverse-polarity protection diode'''. See the '''picture''' on the right for the '''wiring'''. The '''voltage regulators''' 78L05 need minmum '''7 V''' for the voltage regulation. So, '''be careful''' to do not inverse the polarity of the power supply wiring.
Line 52: Line 56:
||<tablestyle="float: right;">[[attachment:Eagle6_exp-lbrs.ulp_mask.png|{{attachment:Eagle6_exp-lbrs.ulp_mask.png|attachment:Eagle6_exp-lbrs.ulp_mask.png|width="600"}}]] ||
In der Praxis sieht das so aus:
 * Man löscht in dem kopierten Schaltplan alle nicht gewünschten Bauelemente. Dann hat man nur noch die benötigten Bauelemente im Schaltplan.
 * Dann startet man '''exp-lbrs.ulp''' entweder mit '''run exp-lbrs.ulp''' in der Komandozeile, oder das '''ULP Icon''' anklicken, und die gewünschte ULP auswählen.
 * In der Zeile '''Pfad:''' den gewünschten Ordner auswählen, und abspeichern mit OK.
 * In diesem Fall sollte man dann die neue Bibliothek nennen '''con-usb-dual.lbr'''.

==== USB - UART Converter ====
In order to allow a '''firmware update''', or to capture '''waveform data''' via '''USB connection''' (needs toshi firmware 60B), you need to adopt an '''USB-UART converter'''. Fortunately you get on ebay.de (ID no. 381765079624, 1.15 EUR) a little module which just fits into the DSO150 '''housing''', and has on the data lines the necessary '''3.3 V level'''. The USB plug is '''micro USB'''.

||<tablestyle="float: right;">[[attachment:DSO150_jumper_DSC07463.jpg|{{attachment:DSO150_jumper_DSC07463.jpg|attachment:DSO150_jumper_DSC07463.jpg|width="400"}}]] ||
==== Jumpers ====
In order to make the '''firmware update''' easier, the '''solder jumpers J1 and J2''' are routed with wires to 2mm spacing posts, see the '''picture''' on the right. I am using '''wire-wrap wires''', because they are thin and have a good isolation.

I have mounted the posts with '''hot glue''' to the board.

/!\ Take care about the '''position''', if you place the posts more to the right, the '''electrolyte capacitors''' of the '''analog board''' are in the way.


=== Firmware Mod ===
A nice guy provides an extended '''firmware 60B'''. You can download the [[http://www.jyetech.com/forum/viewtopic.php?f=19&t=1206#p4057|software from toshi]] with source code. The benefits are:
 * Show the '''trigger voltage''' in the '''lower right corner''' of the screen.
 * Allow a '''waveform data''' export via '''USB port''':
  * '''UART parameters''': 38400 baud, 8N1
  * The telegram is coded in '''ASCII''' and with '''Return + Line Feed''' at the line end.
  * 1st line has the '''time interval''' in '''seconds'''.
  * 1024 lines with the waveform data in '''volt'''.


=== Waveform Visualisation ===
OK, you can download the '''waveform data''', but how can you '''visualate''' it? The necessary steps are:
 1. '''Capture''' the '''waveform data''' to a '''text file'''.
  * Start the program first, '''waiting''' for the data.
  * Push the '''ADJ''' button for the '''start''' of the '''data transmission'''.
 1. '''Convert''' the '''waveform data''' to a '''.csv''' (Comma Separated Values) file.
  * Take care to '''localize''' the '''decimal point'''.
 1. '''Visualise''' the '''.csv''' file data with the program '''GNUplot'''.
  * Take care to include the actual '''Date & Time''' in the plot.
I liked to use a software which is '''cross platform''' (Linux, Mac OS, Windows), so I decided for '''Python'''.

The five major tasks in the software are:
 1. '''Wait''' up to 60 seconds for the start of the data transmition.
 1. '''Read''' the data into a list (real time), then write all into a text file.
 1. '''Read''' the data file, then calculate the '''time row''', localize the '''decimal point''' and write the '''.csv''' file.
 1. '''Prepare a parameter file''' for program '''GNUplot'''. Add '''Date & Time'''.
 1. '''Call GNUplot''' with the '''parameter file'''.
  * The '''terminal command line''' looks like:
  {{{
  $ python dso150-p23.py -pd
  # option -p means capture data and write a .csv file
  # option -d means plot data
  }}}
Line 62: Line 107:
 * Nützliche ULP [[https://github.com/sonofbc/My-Stuff/blob/master/Lighting%20controller/EAGLE-5.9.0/ulp/DESCRIPTION|Beispiele]]
 * [[http://web.cadsoft.de/cgi-bin/download.pl?page=/home/cadsoft/html_public/demo.htm&dir=eagle/userfiles/ulp|Benutzer ULP's, z.B. drill-ring.ulp]]
 * [[http://eagle.support.ger.narkive.com/bQmzZpGK/library-zusammenfassen|Library zusammenfassen]]
 * [[http://www.jyetech.com/Products/LcdScope/e150.php|JYE Tech, DSO150]]

JYE Tech DSO150

There is now (Sept. 2017) a low cost (18 EUR) Digital Storage Oscilloscope (DSO shell) from company JYE Tech available, e.g. banggood.com, search for Product ID = 1093865.

  • Pros: nearly complete soldered kit with housing.

    • good user interface (software)
    • with modded software from toshi with data export.

    • Portable operation possible, with battery pack (power consumption 120mA @ 9V)

    • Good documentation - manual, schematics, firmware update

  • Cons: Limited bandwidth of 200 KHz.

    • 1 channel only.

attachment:DSO150_DSC07450.jpg

Specifications

  • Vertical:

    • Number of Channel: 1
    • Analog Bandwidth: 0 - 200KHz
    • Sensitivity: 5mV/Div - 20V/Div
    • Sensitivity error: < 5%

    • Resolution: 12-bit
    • Input Impedance: 1M ohm
    • Maximum Input voltage: 50Vpk
    • Coupling: DC, AC, GND
  • Horizontal:

    • Max Real-time Sampling Rate: 1Msps
    • Timebase: 10us/Div - 500s/Div
    • Record Length: 1024
  • Trigger:

    • Trigger Modes: Auto, Normal, Single
    • Trigger Types: Rising/falling edge
    • Trigger Position: 1/2 of buffer size fixed
  • Display:

    • 2.4-inch color TFT LCD with 320 x 240 resolution
  • Power suppy:

    • 9V DC (8 - 10V acceptable)
    • Supply Current: 120mA @ 9V
  • Physical:

    • Dimension: 115mm X 75mm X 22mm
    • Weight: 100 gram (not including cables and power supply)

Modifications

In order to make the DSO more useful, tree modifications are made.

Rechargeable Battery Pack

On Ebay.de you can buy a 6 x AA battery housing (ID number 162434646097, 1.6 EUR) with 15 cm wires and an ON-OFF sliding switch. To connect to the DSO150 you need a DC plug 5.5/2.1 mm (e.g. ebay.de ID no. 152190640539, for about 10 pc. 2 EUR).

/!\ Because of the low voltage (7.4 V) you need to short the inverse-polarity protection diode. See the picture on the right for the wiring. The voltage regulators 78L05 need minmum 7 V for the voltage regulation. So, be careful to do not inverse the polarity of the power supply wiring.

USB - UART Converter

In order to allow a firmware update, or to capture waveform data via USB connection (needs toshi firmware 60B), you need to adopt an USB-UART converter. Fortunately you get on ebay.de (ID no. 381765079624, 1.15 EUR) a little module which just fits into the DSO150 housing, and has on the data lines the necessary 3.3 V level. The USB plug is micro USB.

attachment:DSO150_jumper_DSC07463.jpg

Jumpers

In order to make the firmware update easier, the solder jumpers J1 and J2 are routed with wires to 2mm spacing posts, see the picture on the right. I am using wire-wrap wires, because they are thin and have a good isolation.

I have mounted the posts with hot glue to the board.

/!\ Take care about the position, if you place the posts more to the right, the electrolyte capacitors of the analog board are in the way.

Firmware Mod

A nice guy provides an extended firmware 60B. You can download the software from toshi with source code. The benefits are:

  • Show the trigger voltage in the lower right corner of the screen.

  • Allow a waveform data export via USB port:

    • UART parameters: 38400 baud, 8N1

    • The telegram is coded in ASCII and with Return + Line Feed at the line end.

    • 1st line has the time interval in seconds.

    • 1024 lines with the waveform data in volt.

Waveform Visualisation

OK, you can download the waveform data, but how can you visualate it? The necessary steps are:

  1. Capture the waveform data to a text file.

    • Start the program first, waiting for the data.

    • Push the ADJ button for the start of the data transmission.

  2. Convert the waveform data to a .csv (Comma Separated Values) file.

    • Take care to localize the decimal point.

  3. Visualise the .csv file data with the program GNUplot.

    • Take care to include the actual Date & Time in the plot.

I liked to use a software which is cross platform (Linux, Mac OS, Windows), so I decided for Python.

The five major tasks in the software are:

  1. Wait up to 60 seconds for the start of the data transmition.

  2. Read the data into a list (real time), then write all into a text file.

  3. Read the data file, then calculate the time row, localize the decimal point and write the .csv file.

  4. Prepare a parameter file for program GNUplot. Add Date & Time.

  5. Call GNUplot with the parameter file.

    • The terminal command line looks like:

        $ python dso150-p23.py -pd
        # option -p means capture data and write a .csv file
        # option -d means plot data

Liste der Seiten in dieser category:

-- RudolfReuter 2017-10-07 13:21:29


Go back to CategoryTechDoku or StartSeite

JyeTechDSO150 (last edited 2018-10-15 20:30:41 by RudolfReuter)