Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:28 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Space Invaders Emulator :)

Author Message
ksdesigns

Senior Member

Joined: 25/06/2011
Location: United States
Posts: 143
Posted: 04:38am 25 Sep 2011
Copy link to clipboard 
Print this post

uses original roms still need to rotate screen and add sound
but plays ok so far and all animation works
ken


 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 04:49am 25 Sep 2011
Copy link to clipboard 
Print this post

Thats fantastic

Care to share

Regards
John
 
Nick

Guru

Joined: 09/06/2011
Location: Australia
Posts: 512
Posted: 06:49am 25 Sep 2011
Copy link to clipboard 
Print this post

Fantastic work Ken!! Now THATS how you do Space Invaders for the PIC32.

You're amazing! First you make the Maximite into a TRS-80, then a real Space Invaders machine.

Once you perfect the Space Invaders emulation, it wouldn't be too hard to get Lunar Rescue working (2 for the price of one!). That one used the Space Invaders arcade board, just mainly a new ROM.

...but don't forget the TRS-80! :)

I don't run MMBASIC anymore. My Maximite is a TRS-80!

"You da man!"

NickEdited by Nick 2011-09-26
 
mookster1
Regular Member

Joined: 10/06/2011
Location: New Zealand
Posts: 81
Posted: 09:12pm 27 Sep 2011
Copy link to clipboard 
Print this post

Now THAT is awesome. +1
Capacitance is futile - roll on 2012!
 
ksdesigns

Senior Member

Joined: 25/06/2011
Location: United States
Posts: 143
Posted: 10:21pm 27 Sep 2011
Copy link to clipboard 
Print this post

Still have not rotated the screen yet but has sound and is fully playable
just need to get it rotated.
not real happy with the sound playing wav files thru pwm .
so i figured i would make a board with a dac on it to play wav files
did a rough design and added 4 12bit I2C DAC's and 2 Wii Controller ports
has 26 pin edge connector to plug in to the maximite so you don't need a cable
will try and build one this week
ken





 
Nick

Guru

Joined: 09/06/2011
Location: Australia
Posts: 512
Posted: 02:52am 28 Sep 2011
Copy link to clipboard 
Print this post

Seems like a lot of work just to get monochrome arcade Space Invaders to work on the Maximite but I guess that the board would be good for other games ported later.

Also gives the Maximite a better DAC sound output for sampled sound effects.

Wonder if it's possible to add some control to enable color similar to my idea of channeling the VGA output to selectable RGB pins? (since this board plugs in to the I/O connector).

Don't forget the TRS-80 emulator. :)

I envy your skills.

Nick
 
ksdesigns

Senior Member

Joined: 25/06/2011
Location: United States
Posts: 143
Posted: 03:29am 28 Sep 2011
Copy link to clipboard 
Print this post

It uses a microchip MCP4725 DAC
• Fast Settling Time of 6 μs (typical)
• External Voltage Reference (VDD)
• Rail-to-Rail Output
• Low Power Consumption
• Single-Supply Operation: 2.7V to 5.5V
• I2CTM Interface:
- Eight Available Addresses
- Standard (100 kbps), Fast (400 kbps), and
High-Speed (3.4 Mbps) Modes
• Small 6-lead SOT-23 Package
• Extended Temperature Range: -

so its good for a lot more than audio
that's why i added 4 of them :)
and for the Wii controller you can use the classic one for games

or the numcuck one you get a joystick and a
STMicroelectronics LIS3L02AL 3-Axis MEMS Inertia Sensor


ken

 
Nick

Guru

Joined: 09/06/2011
Location: Australia
Posts: 512
Posted: 05:14am 28 Sep 2011
Copy link to clipboard 
Print this post

Cool. What about doing something to add color?

Send the VGA output signals to that board then have a way to switch the VGA signal to selectable RGB pins. Control the routing with your emulator to change the color at a scanline level.

I see this as a plug in 'game board' enhancement.

I wonder if it's possible to write an emulator bootloader in firmware that loads an emulator from SD into RAM? This could allow selectable games/emulators without the need for firmware loading each.

Makes it more multi-purpose.
 
mookster1
Regular Member

Joined: 10/06/2011
Location: New Zealand
Posts: 81
Posted: 08:23pm 28 Sep 2011
Copy link to clipboard 
Print this post

Would you be able to post a circuit diagram of the sound/game controller module? I was going to design one so I could use the Maximite as a sound synthesiser. As for colour graphics there's a module (the PICASO) that you can get from Sparkfun that lets you send it serial data and draw stuff on the screen. Here's the link: http://www.sparkfun.com/products/10329. It's about US$59.95, though, so it's a bit of a pricey solution.
Capacitance is futile - roll on 2012!
 
ksdesigns

Senior Member

Joined: 25/06/2011
Location: United States
Posts: 143
Posted: 09:51pm 28 Sep 2011
Copy link to clipboard 
Print this post

i will post on when i get it done this week
if you want a easy way sparkfun sells a breakout board for the dac
Sparkfun MCP4725
for about 5$
ken
 
ksdesigns

Senior Member

Joined: 25/06/2011
Location: United States
Posts: 143
Posted: 05:10am 30 Sep 2011
Copy link to clipboard 
Print this post

Put up a short video here Pic32 Space Invaders Probably my worst game play ever
Added a resistor DAC for the audio sounds much much better than the pwm audio
will post a Maximite version in the next few days
ken
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 05:21am 30 Sep 2011
Copy link to clipboard 
Print this post

Hi Ken

Well done it looks really cool
Cant wait to test it

John
 
Nick

Guru

Joined: 09/06/2011
Location: Australia
Posts: 512
Posted: 06:14am 30 Sep 2011
Copy link to clipboard 
Print this post

Yep! That's Space Invaders alright.

The only problem I see is...

How many people are going to blow their firmware each time just to play one game?

They'll do it once to see it initially but then it will be back to MMBASIC.

What's needed is a way to load and execute this emulator from MMBASIC.

Nick

 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 09:56am 23 Oct 2011
Copy link to clipboard 
Print this post

I would be quite happy to have a maximite setup permanently for a Space invaders game! But that's because I have 4 Maximites now! So I have one to spere!
Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 05:13pm 25 Oct 2011
Copy link to clipboard 
Print this post

Any new on the space invaders yet?
I'm keen as to try it out!

Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
ksdesigns

Senior Member

Joined: 25/06/2011
Location: United States
Posts: 143
Posted: 05:58pm 25 Oct 2011
Copy link to clipboard 
Print this post

Sure i will try and Build a Maximite version tonight for you ..
ken

 
elproducts

Senior Member

Joined: 19/06/2011
Location: United States
Posts: 282
Posted: 03:02pm 26 Oct 2011
Copy link to clipboard 
Print this post

  ksdesigns said   Sure i will try and Build a Maximite version tonight for you ..
ken



Ken,
Is that Space Invaders code posted anywhere we can download?
www.elproducts.com
 
robur25
Newbie

Joined: 23/12/2011
Location: United Kingdom
Posts: 1
Posted: 10:19am 23 Dec 2011
Copy link to clipboard 
Print this post

Howdy - looking for the DuinoMite download too..... something to inspire my son this holiday - fingers crossed.

Any news Ken?
 
snowwy
Newbie

Joined: 17/12/2011
Location: United Kingdom
Posts: 6
Posted: 12:18pm 23 Dec 2011
Copy link to clipboard 
Print this post

Fantastic! Would it be available on the Duinomite-mega? Also, is there anywhere I could download the trs-80 emulator? Would it work unmdified on the Mega?

Thanks :)
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024