Spark Logic

$10 O-Scope revisited

ahull

Over the last few days I’ve been playing with Ray’s STM32 Oscilloscope idea.

Image

Some preliminary results are available here..

https://github.com/pingumacpenguin/STM3 … ontruction

My take on the Scope Sketch is here..

https://github.com/pingumacpenguin/STM32-O-Scope

Its a fun little project and well worth building just for the entertainment value. Currently bandwidth is a little limited, but with a little extra effort it would be possible to make a fully functional 2MHz Scope for next to nothing. Ideal for probing i2c, audio and other low speed signals.

EDIT: We managed to squeeze the maximum speed out of the ADC, read further through the thread for details. The github code includes all of the enhancements made of the course of this thread.

Replies20

martinayotte Sat Sep 12, 2015 1:12 pm

:lol: :lol: :lol:

martinayotte Sat Sep 12, 2015 10:52 pm

victor_pv wrote:
I’m still trying to decipher the description on the last link, that pig may have some secret features…
“New Arrival Interactive Mini-musk Swine Lilltle Pig For Puppy Latex Pronunciation Tool Dog Toys STT-0031”

victor_pv Sat Sep 12, 2015 10:55 pm

martinayotte wrote:victor_pv wrote:
I’m still trying to decipher the description on the last link, that pig may have some secret features…
“New Arrival Interactive Mini-musk Swine Lilltle Pig For Puppy Latex Pronunciation Tool Dog Toys STT-0031”

mrburnette Sun Sep 13, 2015 1:11 am

“New Arrival Interactive Mini-musk Swine Lilltle Pig For Puppy Latex Pronunciation Tool Dog Toys STT-0031”

I do not know what it means, but I want one!

Ray

daybyter Fri Oct 09, 2015 9:29 am

I learned, that you can overclock those little 4$ Boards up to 128MHz. Would that give you more ADC bandwidth, too? Making the 2MHz scope a 3.5MHz scope?

mrburnette Fri Oct 09, 2015 11:55 am

daybyter wrote:I learned, that you can overclock those little 4$ Boards up to 128MHz. Would that give you more ADC bandwidth, too? Making the 2MHz scope a 3.5MHz scope?

ahull Sat Oct 10, 2015 12:48 pm

daybyter wrote:I learned, that you can overclock those little 4$ Boards up to 128MHz. Would that give you more ADC bandwidth, too? Making the 2MHz scope a 3.5MHz scope?

daybyter Tue Oct 13, 2015 9:30 pm

Anyone using the sketch without the touch screen? When I outcomment TOUCH_SCREEN_AVAILABLE, I get quite some errors.

ahull Tue Oct 13, 2015 10:20 pm

daybyter wrote:Anyone using the sketch without the touch screen? When I outcomment TOUCH_SCREEN_AVAILABLE, I get quite some errors.

daybyter Tue Oct 13, 2015 11:37 pm

Ok. No Problem.

In showGraticule, there is this code:

for (uint16_t TicksX = 1; TicksX < 10; TicksX++)
{
for (uint16_t TicksY = 1; TicksY < 10; TicksY++)
{
TFT.drawPixel( TicksX * (myHeight / 10), TicksY * (myWidth / 10), GRATICULE_COLOUR);
}
}

mrburnette Tue Oct 13, 2015 11:44 pm

daybyter wrote:
<…>
I looked over the code in the meantime and thought it could be simplified/optimized somewhat?

daybyter Wed Oct 14, 2015 3:29 am

Thanks for your kind welcome.

Unfortunately I also have way too much code to maintain.

I just wonder if this little scope could be useful when trying to repair old computers. Therefore every little bit of additional bandwidth would be appreciated. So I thought about this overclocking option. Just looking over the code to understand the required modifications.

darth_llamah Wed Oct 14, 2015 10:07 am

daybyter wrote:Anyone using the sketch without the touch screen? When I outcomment TOUCH_SCREEN_AVAILABLE, I get quite some errors.

daybyter Wed Oct 14, 2015 9:12 pm

And I also mixed width and height in my example… :oops:

Fixed it already in my code.

Today I got one of those very cheap arduino keypads

http://www.ebay.com/itm/10pcs-4×3-Matri … 3f2d1c78e8

and now I wonder if this could be used to control the scope, when it’s not attached to a PC. I just don’t like the fact, that the keypad is huge (bigger than my 2,2 inch display).

ahull Fri Oct 16, 2015 11:27 pm

ahull wrote:daybyter wrote:Anyone using the sketch without the touch screen? When I outcomment TOUCH_SCREEN_AVAILABLE, I get quite some errors.

ahull Fri Oct 16, 2015 11:54 pm

daybyter wrote:
I just wonder if this little scope could be useful when trying to repair old computers. Therefore every little bit of additional bandwidth would be appreciated. So I thought about this overclocking option. Just looking over the code to understand the required modifications.

ahull Fri Oct 16, 2015 11:58 pm

daybyter wrote:
Today I got one of those very cheap arduino keypads

daybyter Sat Oct 17, 2015 4:02 am

Maybe my TFT is already a touch display. Not sure yet. Got no description. I would prefer an additional key input anyway. But my first idea was to use a q-tip box as a case

http://g02.s.alicdn.com/kf/HTB1cOP8HpXX … x-baby.jpg

But then I would have to use a smaller keypad. Maybe this one

http://m.ebay.com/itm/1×4-Matrix-Array- … nav=SEARCH

Would make the navigation a lot more complex, though.

Was playing with a breadbox prototype today and the signal looks terrible. Maybe I should start with a better power supply.

bianchifan Mon Oct 19, 2015 4:32 pm

Nice little project, unfortunately it still fails compiling.
After cleaning up all faults mentioned above many errors on Time1.h are remaining:
error: ‘dt_MAX_STRING_LEN’ was not declared in this scope
error: ‘uint8_t’ was not declared in this scope
error: expected ‘,’ or ‘;’ before ‘{‘ token
…
and so on..

Win7/64, Arduino IDE 1.6.5

Sign in to reply