OpenSource oscilloscope with tablet/phone display based on Hantek 6022BE - Page 1
Forum section: electronics / general

author: frenky
author_rank: Unknown
timestamp: July 17, 2014, 08:47:57 am
content: 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 6022BEhttps://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...

author: hlokk
author_rank: Contributor
timestamp: July 17, 2014, 09:29:11 am
content: 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

author: frenky
author_rank: Unknown
timestamp: July 17, 2014, 10:23:14 am
content: 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 hdmihttp://www.bitscope.com/product/BS05/OsciPrime (300$) + Android tablet with usb host supporthttp://www.osciprime.com/index.php?p=preorderSince 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

author: Rasz
author_rank: Super Contributor
timestamp: July 17, 2014, 05:21:16 pm
content: some harsh truth : you mention adruino - this means you have no clue whats going on and will failDSO-2250 is supported by sigrok and could work under android, nobody bothered writing driver for Hantek 6022BE yet

author: frenky
author_rank: Unknown
timestamp: July 17, 2014, 05:34:58 pm
content: Quote from: Rasz on July 17, 2014, 05:21:16 pmI'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...

author: pickle9000
author_rank: Super Contributor
timestamp: July 17, 2014, 07:20:16 pm
content: Quote from: Rasz on July 17, 2014, 05:21:16 pmThis is a better solution, mostly done, possibility for serial decoding if not there already.

author: rob77
author_rank: Super Contributor
timestamp: July 17, 2014, 07:36:43 pm
content: 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 wayif you're planning to read some buttons and encoder knobs only with the arduino... then it might do the job

author: Rasz
author_rank: Super Contributor
timestamp: July 18, 2014, 03:25:15 am
content: Quote from: frenky on July 17, 2014, 05:34:58 pmok 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 arduinodoes that make sense to you?>Since I'm a (mostly web) developerso you know javascript?Learn C, then learn about linux kernel drivershttp://forum.xda-developers.com/showthread.php?t=948619then USBhttps://github.com/libusb/libusbthen you can start helping sigrokhttp://sigrok.org/wiki/AndroidSmartScope uses Sigrok under android, their scope also uses Cypress USB chip just like Hantek 6022BE / DSO-2250http://sigrok.org/wiki/Hantek_DSO-2250main 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.

author: frenky
author_rank: Unknown
timestamp: July 21, 2014, 07:00:00 am
content: Hi.SmartScope guys haven't released their code yet.But this guys have:http://www.osciprime.com/index.php?p=sourceThey 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...