Asteroids on Oscilloscope

The Joy of Tech - Anything and everything about all things shiny..
Post Reply
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

DSPIC33FJ(flash program size)GP(8 = 16kb ram, 2 = 8kb ram, 3 = 4kb ram)0(4 = 44 pins, 2 = 28 pins)...

So it looks like I could get a DSPIC33FJ128GP802-E/SP as a skinny 28 pin DIP, giving me 128kb program, 16kb RAM, 2 channel output dac, a hefty CPU with DSP super powers, and more bit bangy digital IOs than I know what to do with.*

So:

- port Mattsteroids to 16-bit fixed point math. As the pic33 is a DSP mutha, I can even get away with a few multiplies. (More if I arrange all my multiplicands in a pair of buffers and use the vector ops all in a row.)

- program it up
-- build par port physical interface?
-- build a par port programmer software (in QBasic I suppose)

- build an interface board on some stripboard for it to live on:
-- attach some buttons (L, R, thrust, shoot, hyper) to digital IO
--- or analogue input for throttles/paddles/dials if I'm gutsy
--- maybe simply mounting a 9-pin atari interface would be simpler: it'd let me use zipsticks...
--- AND I know the tricks to using Sega Mega Drive three/six button pads using the built in multiplexer... ooh!
--- and the Amiga mouse is just quadrature input...!,
-- mount some RCA jacks for display output
-- AA power supply bay
-- reset switch

And we're there: audio DSP chip used as an integrated custom oscilloscope arcade CPU + displayaudiovectoriser.

Cripes, this is sounding plausible...!**

*Every pin looks like it can be used for digital IO or its standard function. This gadgets loaded with useful stuff like I2C, JTAG, UART etc... I don't need that right now, but it'd be stupidly useful for integrating with other bits (nonvolatile serial RAM for highscore saving?). The thing that immediately came to mind when I looked over the specs was it had five built in timers with their clocks exposed: whock a summing junction on that, and you've got a five channel square wave sound chip (or 2+3 polyphony stereo-like out if you like) :P. If only I had a super simple tracker thing with its own densely packed music format. Holy crap, I already do.

**I know real systems (Grandstand Astro Wars type stuff) worked on stuff that was three decades behind this. They had super basic CPUs and discrete gizmos and all that to perform all the stuff I'm asking of the PIC33. I'm basically using a chainsaw to make a sandwich, but it's too cool an idea to not try.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Asteroids on Oscilloscope

Post by gravy »

The other way to go could be getting a seperate dac. This one is i2c and you drive it at 200khz:

https://www.adafruit.com/products/935
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

Oh no you ain't. I ain't makin' two trips to the store! :lol:

But yeah, thanks a lot. I hadn't considered that route. :) I don't know one bit about how I2C is typically used in designs, this thread is just my whiteboard for now. The ideal solution for me is the cheapest really. If there's a big glaring hole in my layman's idea that says 'don't use internal audio DSP DACs for oscillo, you'll just get the same crap as before' that can be fixed with a more capable external one, that's exactly the kind of thing I need to know.

I wonder if the TI MSP430 teeny tiny chip I already have lying around is I2C capable...
Last edited by Kamineko on Fri Feb 28, 2014 2:25 pm 0, edited 1 time in total.
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6653
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: Asteroids on Oscilloscope

Post by venusian »

Surely the only proper thing to do is to build your own vector display?
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

Yup, as long as no-one minds it being as big as Doc Brown's 'refrigerator' in Back to the Future 3, and capable of emitting deadly radiation of kinds we don't fully understand. :)
adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Re: Asteroids on Oscilloscope

Post by adam »

someone i know adapted an old disco laser to draw vectors - it drew patterns by moving two mirrors with steppers, he had it running on a scope fairly well, think he used arduino, got as far as a rotating 3d tie fighter

you could use one of these newer 32 bit boards if you need more grunt - something like this (£8.50):
http://hackaday.com/2014/02/18/stm32-nu ... ble-board/
Last edited by adam on Fri Feb 28, 2014 2:37 pm 0, edited 1 time in total.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Asteroids on Oscilloscope

Post by gravy »

Kamineko wrote:Oh no you ain't. I ain't makin' two trips to the store! :lol:

But yeah, thanks a lot. I hadn't considered that route. :) I don't know one bit about how I2C is typically used in designs, this thread is just my whiteboard for now. The ideal solution for me is the cheapest really. If there's a big glaring hole in my layman's idea that says 'don't use internal audio DSP DACs for oscillo, you'll just get the same crap as before' that can be fixed with a more capable external one, that's exactly the kind of thing I need to know.

I wonder if the TI MSP430 teeny tiny chip I already have lying around is I2C capable...
It's kind of cool though I have no practical experience.

i2c is a medium speed serial bus you can hang i2c devices off of, kind of like USB. It's pretty lazy stuff and very legoey. The protocol is very simple and there's some good tools for helping you debug problems.

You can hang that DAC off of a raspberry pi's GPIOs and have it drive an oscilloscope really quickly.

But yeah, keep on with your instincts though. They're leading you to interesting places :D
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

My instincts say illuminated buttons.
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

The thing that immediately came to mind when I looked over the specs was it had five built in timers with their clocks exposed
Input clocks. Can still do it manually I guess but boo-urns.
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Asteroids on Oscilloscope

Post by gumboot »

Kamineko wrote:Yup, as long as no-one minds it being as big as Doc Brown's 'refrigerator' in Back to the Future 3, and capable of emitting deadly radiation of kinds we don't fully understand. :)
It's usually the wife that stands in the way of such projects.

If you're not already married then build what you can before it's too late.
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Asteroids on Oscilloscope

Post by gumboot »

adam wrote:someone i know adapted an old disco laser to draw vectors - it drew patterns by moving two mirrors with steppers, he had it running on a scope fairly well, think he used arduino, got as far as a rotating 3d tie fighter

you could use one of these newer 32 bit boards if you need more grunt - something like this (£8.50):
http://hackaday.com/2014/02/18/stm32-nu ... ble-board/
Was trawling around youtube looking at laser vector displays, once. That's where I stumbled into Marisa Stole the Precious Thing.




And I see this link in 'related'
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Asteroids on Oscilloscope

Post by gumboot »

gumboot wrote:
Kamineko wrote:Yup, as long as no-one minds it being as big as Doc Brown's 'refrigerator' in Back to the Future 3, and capable of emitting deadly radiation of kinds we don't fully understand. :)
It's usually the wife that stands in the way of such projects.
Thinking about this further -- the ideal woman wouldn't ask what goes on in the garden shed, but would still act as a beard to throw off the IAEA.
adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Re: Asteroids on Oscilloscope

Post by adam »

was about this size:

Image

found in a skip - it was one of those that projects a series of shapes, really simple inside, just a laser and two steppers and mirrors
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Asteroids on Oscilloscope

Post by tufty »

gumboot wrote:It's usually the wife that stands in the way of such projects.
As long as your laser is powerful enough, she won't be standing in the way for very long.

Image
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Asteroids on Oscilloscope

Post by sdetoni »

Do you expect me to talk?
No! Mr Bond, I expect you to die!

Promises promises :twisted:
Post Reply