Author Topic: OpenSource oscilloscope with tablet/phone display based on Hantek 6022BE  (Read 19050 times)

0 Members and 1 Guest are viewing this topic.

Offline frenkyTopic starter

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Hi guys.

I think the community could really benefit from cheap dso that was capable of sending data to pc or tablet/phone.

My plan was to use old Velleman PCS100A ( http://goo.gl/itj7Q5 ) dso which uses LPT port for communication.
LPT could be easily replaced with arduino to talk to scope.
To display data there are (at least) 2 options:
- use Ethernet shield and send out UDP stream (Like I did it here: http://frenki.net/2013/12/convert-optical-mouse-into-arduino-web-camera/ )
- set up webserver on arduino to display data (questionable performance)

This is the easy way and I could do it myself...

But if we join forces we could use dso that is cheap and easily available: Hantek 6022BE https://www.eevblog.com/forum/testgear/hantek-6022be-20mhz-usb-dso/
This one uses Cypress EZ-USB FX2LP for usb and ADC communication so it's much more complex.
But probably it could still be done...

Brainstorming:
- Android devices with OTG capabilities could talk to scope directly
- Arduino with USB host shield could perhaps be used
- ignore cypress usb chip and read directly from adc
...

What do you guys think? Wouldn't it be great to have a cheap DSO capable of showing data on tablet that you already have...
 

Offline hlokk

  • Contributor
  • Posts: 41
  • Country: au
Might be some similar ones out there already. Are you wanting to do this because you think it hasnt been done or more for the fun of the project?

Also, perhaps something like this if you're talking tablets? https://www.kickstarter.com/projects/751733865/smartscope-reinventing-the-oscilloscope
 

Offline frenkyTopic starter

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Hi.

I'm familiar with SmartScope on kickstarter.
The price 200$ is a bit too much for me and I'm not sure I would like to fry my tablet with direct connection.

Other available alternatives are:
BitScope Micro (145$) + RPI + Display with hdmi  http://www.bitscope.com/product/BS05/
OsciPrime (300$) + Android tablet with usb host support http://www.osciprime.com/index.php?p=preorder

Since I'm a (mostly web) developer I would like to use what I already have (Hantek 6022BE+arduino+tablet) to make portable DSO...
I think many people already have the same hardware at home.

If there is not much interest I will just convert my old Velleman because it's easier...

Frenky
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
some harsh truth : you mention adruino - this means you have no clue whats going on and will fail :(

DSO-2250 is supported by sigrok and could work under android, nobody bothered writing driver for Hantek 6022BE yet

Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline frenkyTopic starter

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
some harsh truth : you mention adruino - this means you have no clue whats going on and will fail :(
I've heard that a lot in my life, mostly from people who didn't accomplish much in their lives.
(I'm not saying that you are one of them, just that it's what people without success in life often say to other.)

And it has never stopped me to go my on way forward. Where there's a will there's a way...
« Last Edit: July 17, 2014, 05:39:30 pm by frenky »
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2439
  • Country: ca
some harsh truth : you mention adruino - this means you have no clue whats going on and will fail :(

DSO-2250 is supported by sigrok and could work under android, nobody bothered writing driver for Hantek 6022BE yet

This is a better solution, mostly done, possibility for serial decoding if not there already.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
arduino is excellent to read sensors, keypads, control some gear...etc... - but it's way too slow to do any data transmitting (doesn't even make sense to talk abou data processing). when talking about a DSO, the needed data transmit rate is definitely more than arduino can handle.
 don't know what role you planned for the arduino in your project, but if it's some data transimit/processing , then stick to some other platform before you realize it the hard way ;)
if you're planning to read some buttons and encoder knobs only with the arduino... then it might do the job ;)
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
some harsh truth : you mention adruino - this means you have no clue whats going on and will fail :(
I've heard that a lot in my life, mostly from people who didn't accomplish much in their lives.
(I'm not saying that you are one of them, just that it's what people without success in life often say to other.)

And it has never stopped me to go my on way forward. Where there's a will there's a way...

ok then, some car analogy for you:
using arduino to interface oscilloscope with android tablet makes as much sense as running Crysis in FullHD on said arduino
does that make sense to you? :)

>Since I'm a (mostly web) developer

so you know javascript? :) Learn C, then learn about linux kernel drivers
http://forum.xda-developers.com/showthread.php?t=948619
then USB
https://github.com/libusb/libusb
then you can start helping sigrok
http://sigrok.org/wiki/Android

SmartScope uses Sigrok under android, their scope also uses Cypress USB chip just like Hantek 6022BE / DSO-2250

http://sigrok.org/wiki/Hantek_DSO-2250
main difference between smartscope/2250 and 6022BE is FPGA/cpld doing the triggering and static ram that lets them sample faster than USB speed. 6022BE has no ram and just streams samples (well, it has 'some' ram, but uses it only for streaming), 2250 samples to a buffer, basic smartscope samples to a buffer of blockram inside fpga, dram version sampled to external ram.

 All of that is just semantics, and gets taken care of in the driver. Write sigrok driver for 6022BE and you will be able to use it under android with same application smartscope uses.
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline frenkyTopic starter

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Hi.

SmartScope guys haven't released their code yet.
But this guys have:
http://www.osciprime.com/index.php?p=source
They also use cypress fx2 in their scope so I'll study published android source code, to see how to load firmware etc...

In the meanwhile... yesterday I had some time to play around with arduino (I know it's a curse word here...).
Anyway I used: arduino+ethernet shield + node.js +socket.io + html5 canvas (two layers) to make this:



It's only 50 KSa/s and I send new frame every half second (on purpose not arduinos fault).
Probably it doesn't deserve to be called oscilloscope but it's fun to see a signal on many screens...
« Last Edit: July 21, 2014, 07:34:40 am by frenky »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf