Alternative dso firmware [Application Software Design Entry]

--DSO203

Moderators: violet, jessie, jpa

Jerson
Kindergarten
Kindergarten
Posts: 66
Joined: Fri Sep 23, 2011 7:09 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso Nano, dso nano quad
Location: Bombay, INDIA
Contact:

Re: Alternative dso firmware [Application Software Design En

Post by Jerson » Thu Jan 24, 2013 9:10 am

Thank you very much

gabonator1
Kindergarten
Kindergarten
Posts: 85
Joined: Thu Sep 15, 2011 7:54 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso quad
Location: Sered, Slovakia

Re: Alternative dso firmware [Application Software Design En

Post by gabonator1 » Sat Jan 26, 2013 2:15 am

I know I promised not to add new modules, but I could not resist :)
This time I was playing a little with GPIO. I wanted to make a simple application communicating with popular DS1820 thermometers. These devices are small integrated circuits in TO92 package and the protocol they use is called "one-wire" bus. You only need single pin to write&read from them. Because I already have a UART connector accessible from outside I wanted to share the TX pin for this purpose. I added few functions to my BIOS implementation to control and read from the GPIO pins. ARM M3 MCUs have internal pullup resistors, so you can directly attach the thermometer on the four pin UART connector (PIN1->GND, PIN2->TX, PIN3->VCC) and the application will show the device ID, scratchpad contents and also the temperature with 1/16 of C resolution.

Image

The source code can be found here, there is a nice implementation of pin control in class CPin:
https://github.com/gabonator/DS203/blob ... GpioTest.h

slider2732
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Mon Jan 28, 2013 10:27 am

Re: Alternative dso firmware [Application Software Design En

Post by slider2732 » Mon Jan 28, 2013 10:49 am

Joined the forum specifically to thank you gabonator !
I received my DS203 the other day and was perplexed by the Factory firmware. After a quick bit of searching your name kept popping up, so I took a look here, liked the 'lifestyle' type of easy on the eye look to your firmware and the functions. Plus, that you obviously spend a heck of a lot of time on the project. Installed it, ran it and the DS203 was scoping away til I thought to charge the battery !

Again, thanks so much...brilliant work !


As a bug report and hopefully useful bit of info not crtiticsm...the Square wave in the generator seems to often start with a display of 36MHz, but then will drop down as though at the 9MHz top speed. It goes straight into the 8MHZ ranges from that errant 36MHz.
Also, I noticed a spelling mistake on one screen, will try to find again, but something small like 'triger' instead of 'trigger'.

thomas.schirmer
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sun Jan 27, 2013 7:28 pm

Re: Alternative dso firmware [Application Software Design En

Post by thomas.schirmer » Mon Jan 28, 2013 4:20 pm

Hello gabanator,

I'm new to the DSO203/Quad, received one last week - but was reading this forum previously.

The improvements you, jpa and pmos69 made to this small piece of hardware are really great. This shifts the possibilities enormous.

I'm impressed by your newest modul, the connection of DS1820 one-wire thermometer chips.
Which steps are nessesary to have the UART connector accessible from outside? (my DSO have a aluminum alloy shell)

Many thanks, your work is very helpful!
Sorry for my bad english.

gabonator1
Kindergarten
Kindergarten
Posts: 85
Joined: Thu Sep 15, 2011 7:54 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso quad
Location: Sered, Slovakia

Re: Alternative dso firmware [Application Software Design En

Post by gabonator1 » Mon Jan 28, 2013 7:56 pm

Hello Thomas,
here is a tutorial how to make the UART interface available by drilling a small hole to the plastic casing and placing there a 4-pin connector. I think there wont be much difference with the aluminium shell. Maybe you will find a less invasive method that does not require drilling, but I can't help you with that since I have only the plastic version of DSO.

https://github.com/gabonator/DS203/tree ... rialOutput

thomas.schirmer
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sun Jan 27, 2013 7:28 pm

Re: Alternative dso firmware [Application Software Design En

Post by thomas.schirmer » Tue Jan 29, 2013 3:31 am

Hello Gabriel,

thank you very much, that's a fine documentation of the modification.
I'll read it many times to understand it fully, and than give it a try.

Thomas

gabonator1
Kindergarten
Kindergarten
Posts: 85
Joined: Thu Sep 15, 2011 7:54 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso quad
Location: Sered, Slovakia

Re: Alternative dso firmware [Application Software Design En

Post by gabonator1 » Tue Jan 29, 2013 4:26 am

Hello guys,

if you really like my work, please consider becoming a judge in the DSO QUAD competition and vote for my project :) This competition ends in only 3 days!

http://www.seeedstudio.com/blog/2012/12/28/6157/

Jerson
Kindergarten
Kindergarten
Posts: 66
Joined: Fri Sep 23, 2011 7:09 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso Nano, dso nano quad
Location: Bombay, INDIA
Contact:

Re: Alternative dso firmware [Application Software Design En

Post by Jerson » Wed Jan 30, 2013 1:29 pm

Hello Gabriel

I am thinking aloud here.

Since we have a frequency generator, it would be possible to sweep the frequencies. This in turn could be used to build a module to check inductance / capacitance / LC. This will enable RLC functionality for the DSO.

The swept frequency could also be used to do frequency characterisation curves (response curves) for audio equipment.

Regards
Jerson

ps: this pdf has some ideas to use the PC sound card.
http://icom.hsr.ch/fileadmin/user_uploa ... ter_EN.pdf
And some code from another source
http://www.kerrywong.com/2010/10/16/avr ... asurement/

jpa
Elementary-2
Elementary-2
Posts: 215
Joined: Wed Nov 02, 2011 4:06 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

Re: Alternative dso firmware [Application Software Design En

Post by jpa » Wed Jan 30, 2013 8:24 pm

Jerson wrote: The swept frequency could also be used to do frequency characterisation curves (response curves) for audio equipment.
Already done, twice actually. :)

http://essentialscrap.com/dsoquad/freq.html
https://github.com/PetteriAimonen/QuadP ... y-Response

User avatar
violet
Staff
Staff
Posts: 47
Joined: Thu Nov 15, 2012 11:49 am

Re: Alternative dso firmware [Application Software Design En

Post by violet » Fri Feb 01, 2013 11:55 am

The result of DSO Application Software Competition has come out! :lol: http://www.seeedstudio.com/blog/2013/01 ... -came-out/

Congratulations gabonator1! I will email you for more detailed information soon:)
Years may wrinkle the skin, but to give up enthusiasm wrinkles the soul.---Youth

Post Reply