Arduino Forum

Community => Exhibition / Gallery => Topic started by: Rodot on Aug 18, 2012, 01:28 pm

Title: Portable console
Post by: Rodot on Aug 18, 2012, 01:28 pm
Hello,
I made this little console in about one day and the game in two. This console has a lot of possibilities !
http://r0d0t.tumblr.com/post/29641975900
I'm thinking about making a cleaner one, not on prototyping board like this one. Something with lithium batteries, surface mount components, powered at 3.3V and using screen and accelerometer without the ready made module. Is someone interested in that project ? It could be awesome to create an easy to build and cheap portable game console with Arduino  :D

EDIT : NEW GAME !
http://r0d0t.tumblr.com/post/32510849587
Title: Re: Portable console
Post by: meanpc on Aug 18, 2012, 01:42 pm
You should be proud of your project - very impressive work!  You ought to make an instructable for it at instructables.com.  What is your source for the LCD screen and how much did it cost?
Title: Re: Portable console
Post by: Rodot on Aug 18, 2012, 08:36 pm
Thank you very much !
The screen module costs 13$ on eBay (search "1.8 LCD module"), and the screen alone costs 7$. The library is this one : http://www.bestelecs.com/download/lcd/1.8SPI.zip (http://www.bestelecs.com/download/lcd/1.8SPI.zip).
I don't know if I will do an instructable, there is a lot of information in the video, and doing instructable take a lot of time, and I'm not sure people are interested in that...
Here is another project I made with this screen module : http://r0d0t.tumblr.com/post/23671409352 (http://r0d0t.tumblr.com/post/23671409352)

Edit : I did some modifications to the library.
Title: Re: Portable console
Post by: cr0sh on Aug 19, 2012, 03:22 am
This is a great project - I love it! I also loved the background music to the video (any idea where it can be downloaded or who the artist is?)...
Title: Re: Portable console
Post by: Rodot on Aug 19, 2012, 11:50 am
Thank you ! The music is "Robots FTW" from the Portal 2 OST ;)
Title: Re: Portable console
Post by: DuaneB on Aug 19, 2012, 12:15 pm
Its brilliant, well done.

Really nice idea for the game as well

Duane B

rcarduino.blogspot.com (http://rcarduino.blogspot.com)
Title: Re: Portable console
Post by: DuaneB on Aug 19, 2012, 12:19 pm
Just looked at the second clip, its stunning, the enclosure, whatever it is, its genius !

The presentation with the 'spawning' intro, everything about this is design genius

Again, well done !

Duane B
Title: Re: Portable console
Post by: strykeroz on Aug 19, 2012, 12:39 pm
Thanks Rodot for sharing this.  I'd seen these display modules before on eBay, but never in action like this.  Have you ever utilised the SD card slot?  They also have pins for an I2C interface - have you tried this and is there any difference to the functionality?
Title: Re: Portable console
Post by: a.d on Aug 19, 2012, 12:44 pm
Both of those look really good. The Conway's GOL especially, the elements on the screen are complex and great to look at!
Title: Re: Portable console
Post by: DuaneB on Aug 20, 2012, 08:19 am
Hi R0d0t,

I was so impressed by your project - its probably the best presented Arduino project I have ever seen - I have added a new section to my blog so that the rest of us can learn some of the details that go to make an outstanding project.

I know that you would have spent considerable effort on your project and not everyone has the time or resources to do that so I have also included another very different project which is highly effective for the simplest of reasons -

http://rcarduino.blogspot.com/p/great-projects.html (http://rcarduino.blogspot.com/p/great-projects.html)

I hope this new section of my blog will be interesting to those like me that are not designers but who can benefit from applying some basic rules to increase our project impact.

I will of course remove any reference to you or your project if you wish - my blog gets around 10,000 hits a month and has been linked by Adafruit, Diydrones, Freetronics and DIY Engineering, so its not a bad place to be featured.

Duane B

rcarduino.blogspot.com (http://rcarduino.blogspot.com)
Title: Re: Portable console
Post by: fanjanc@gmail.com on Aug 20, 2012, 09:07 pm
Cool game and console. It is one of those simple games that just somehow get incredibly addictive.
Title: Re: Portable console
Post by: Rodot on Aug 21, 2012, 12:06 am
First of all, thank you very much everybody. I'm glad you like my project.


the enclosure, whatever it is

The enclusure is made with leather & brass. Steam punk FTW.


Have you ever utilised the SD card slot?  They also have pins for an I2C interface - have you tried this and is there any difference to the functionality?

I didn't used the SD card slot as there is no bitmaps in this project. I tried to use bitmaps for my game, but it uses far too much RAM. I didn't tried I2C because :

The problem with SPI screens is the time to send data to the screen. Don't even try to refresh the whole screen for each frame. You have to erase each element and then draw it again further to limit the amount of pixel to refresh. Look in the Conway's GOL, you can see the "wave" of refreshing when the screen is full of cells. I want to try a screen with a 8bit port to see how fast it is.


I have added a new section to my blog

Woaw, I'm impressed and flattered you use my project as an example. Thank you a lot. (Just something : you should use the link I gave in this topic, because your link point to the "Leather" tagged posts instead of the post itself)

Again, thank you everybody. I hope my english is not too bad (as I'm french) and you understand what I mean.

PS : Another game is coming soon, a game far better than the first one... stay tuned !
Title: Re: Portable console
Post by: DuaneB on Aug 21, 2012, 06:54 pm
Hi,
   I have updated the link, I had a look around your site also, you have some nice projects across a wide range of disciplines

Duane B

rcarduino.blogspot.com (http://rcarduino.blogspot.com)
Title: Re: Portable console
Post by: Rodot on Sep 21, 2012, 02:10 pm
Something big is coming your way...
Title: Re: Portable console
Post by: Ufoguy on Sep 22, 2012, 08:05 am
Reminds me of Doodle jump. I got it for free as a OVI store gift for my Nokia phone(5230)s60v5 .
Title: Re: Portable console
Post by: darksheep on Sep 24, 2012, 07:23 pm
Wow really really cool ,I will def look at building one :)
Title: Re: Portable console
Post by: Rodot on Sep 29, 2012, 10:34 am
Here is my new gaaaaaame !
http://r0d0t.tumblr.com/post/32510849587
This one use 100% of your arduino (CPU, flash & RAM).

PS : I still recruit people to make a handeld console v2.0
PPS the screen can be found here : http://stores.ebay.com/electronics-lee
Title: Re: Portable console
Post by: mdn15 on Oct 05, 2012, 03:19 am
Awesome Project!  I just placed an order to get the screen online.  What are you looking for in v2.0  I may be able to help (however my time is very limited)
Title: Re: Portable console
Post by: mdn15 on Oct 08, 2012, 10:04 pm
Quote
Thank you very much !
The screen module costs 13$ on eBay (search "1.8 LCD module"), and the screen alone costs 7$. The library is this one : http://www.bestelecs.com/download/lcd/1.8SPI.zip.
I don't know if I will do an instructable, there is a lot of information in the video, and doing instructable take a lot of time, and I'm not sure people are interested in that...
Here is another project I made with this screen module : http://r0d0t.tumblr.com/post/23671409352


I downloaded the 1.8SPI lib but for some reason I cannot get it to verify with the arduino code.  What IDE version did you use?

Error in IDE 1.0 & IDE 1.0.1
Quote
In file included from doudeul4.cpp:1:
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:6:22: error: WProgram.h: No such file or directory
In file included from doudeul4.cpp:1:
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:57: error: expected `)' before 'CS'
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:59: error: expected `)' before 'CS'
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:64: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:65: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:65: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:65: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:66: error: 'int16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:66: error: 'int16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:66: error: 'int16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:66: error: 'int16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:66: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:67: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:68: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:68: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:69: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:69: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:70: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:70: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:71: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:71: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:72: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:72: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:72: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:73: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:73: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:74: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:74: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:74: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:74: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:75: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:76: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:76: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:76: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:76: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:77: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:78: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:78: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:78: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:79: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:80: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:80: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:80: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:81: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:83: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:83: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:84: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:84: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:85: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:85: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:86: error: 'uint16_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:86: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:88: error: 'uint8_t' does not name a type
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:89: error: 'uint8_t' does not name a type
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:91: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:91: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:91: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:91: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:92: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:93: error: 'uint8_t' does not name a type
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:96: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:97: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:107: error: 'uint8_t' has not been declared
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:110: error: 'uint8_t' does not name a type
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:111: error: 'uint8_t' does not name a type
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:112: error: 'uint8_t' does not name a type
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:114: error: 'uint8_t' does not name a type
In file included from doudeul4.cpp:2:
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:55: error: redefinition of 'class ST7735'
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:55: error: previous definition of 'class ST7735'
doudeul4:16: error: no matching function for call to 'ST7735::ST7735(int, int, int)'
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:55: note: candidates are: ST7735::ST7735()
D:\Users\Mike\Dropbox\Arduino\arduino-1.0\libraries\ST7735/ST7735.h:55: note:                 ST7735::ST7735(const ST7735&)


Thanks
Title: Re: Portable console
Post by: AlxDroidDev on Oct 08, 2012, 10:15 pm
amazing work! Congrats and thanks for sharing.
Title: Re: Portable console
Post by: Rodot on Oct 14, 2012, 07:01 pm
We are now a team of 3 working on the v2.0, I think it's enought. But if you have any idea, don't hesitate to share them :)

Your problem is that WProgram.h has been renamed since Arduino 1.0
You can solve it by replacing
Code: [Select]
#include "WProgram.h"
by
Code: [Select]
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

in arduino-1.0\libraries\ST7735R\ST7735.h
Title: Re: Portable console
Post by: DuaneB on Oct 17, 2012, 08:29 am
R0D0T,
   You are getting a lot out of the Arduino UNO here, do you have anything planned for the upcoming Due ?

Duane B
Title: Re: Portable console
Post by: Rodot on Oct 27, 2012, 11:27 am
I can't wait to have a Due...
A version 2 of the console is under development, a well finished one, with smt lipo, vibrator, joystick and all that stuff in a very compact size. Il will come with a complete library that handle frame rate, playing music from sd card, diplaying images and sprites... A lot of work, I don't know when I'll finish it.
But when the Due will be released, I'll make a V3.0 with a 3.2" touch screen, an IMU, a 16bits port for an high refreshment rate, etc.... ok, I'm perhaps dreaming, but it would be marvelous.
Title: Re: Portable console
Post by: cr0sh on Oct 28, 2012, 02:25 am

I can't wait to have a Due...
A version 2 of the console is under development, a well finished one, with smt lipo, vibrator, joystick and all that stuff in a very compact size. Il will come with a complete library that handle frame rate, playing music from sd card, diplaying images and sprites... A lot of work, I don't know when I'll finish it.
But when the Due will be released, I'll make a V3.0 with a 3.2" touch screen, an IMU, a 16bits port for an high refreshment rate, etc.... ok, I'm perhaps dreaming, but it would be marvelous.


I take it you've seen the Uzebox, right?

http://belogic.com/uzebox/index.asp

That's all done with a 644 (ie, like a Sanguino) - I should think with a Due you could way more than that!
Title: Re: Portable console
Post by: MichaelMeissner on Oct 29, 2012, 06:51 pm

But when the Due will be released, I'll make a V3.0 with a 3.2" touch screen, an IMU, a 16bits port for an high refreshment rate, etc.... ok, I'm perhaps dreaming, but it would be marvelous.

Note, the Due has the same breakout board size at the Mega. and is 1.3" (3.3cm) longer than the Uno.  I don't know if the extra length would affect the playability of your console.
Title: Re: Portable console
Post by: DuaneB on Dec 08, 2012, 11:52 am
Hi R0d0t,

Are you still developing this console ?

I was planning to build an LED Game over the christmas holidays, something like the old grandstand games I used to play as a kid based on LED Matix, but for the cost of a few to colour matrix I can get 1.8 or 2.2 inch TFT Displays.

What was your experience with these, could you for example run something with a large number of separately animated sprites like a galaxians clone running with reasonable refresh ?

Thanks

Duane B

rcarduino.blogspot.com (http://rcarduino.blogspot.com)
Title: Re: Portable console
Post by: Rodot on Dec 08, 2012, 01:25 pm

I take it you've seen the Uzebox, right?


Nop, but I was aware of Gameduino : http://excamera.com/sphinx/gameduino/ (http://excamera.com/sphinx/gameduino/) (amost the same thing)


I should think with a Due you could way more than that!


I prefer to do something really small (40*75*15mm), cheap (<25$ batteries included), and Do It Yourselfable (Nothing below 0805 for the smd). The arduino due ALONE costs about 50$ and is huge (even without stacking a shield)... what do you thing about that ? If I want more power, I'll go develop games on android :P


Are you still developing this console ?


I've been working on other projects these times (3D printer, 64*64 led matrix...) but I'm back. I started drawing schematics this morning (and learn how to use the software yesterday night hehe). The inactivity is although because I trusted a guy who said he was interested in drawing electronics... two months later, he has done nothing, so I'm back as a lone wolf, as ever ;)


What was your experience with these, could you for example run something with a large number of separately animated sprites like a galaxians clone running with reasonable refresh ?


No, you can't. The screen's communication is based on SPI, so it's veeery slow (but convenient). On my snake game for exemple, I don't refresh the whole screen at each frame : I only rease few pixels of the tail and draw few new pixels on the head. Don't even think about scrolling, animated sprite (or just a few) or overlay text. Moreover sprites uses a lot of RAM. I think you should try a 3.2" screen (240*320px) on 8 or 16 bits parallel bus. But be carefull, they run @3.3V. You can although overclock you arduino to 20mhz instead of 16mhz ;) I hope this helps :)
Title: Re: Portable console
Post by: DuaneB on Dec 08, 2012, 02:28 pm
Hi R0d0t,

Thanks for the update - too bad I clicked buy already, will still find a use for the screen though.

I will take a look at the gameduino and also, if your back at this, do you have an alternative screen in mind ? can't guarantee that I will contribute anything, but happy to plod along in parallel, after all, the idea of these projects is that people will build them.

EDIT: Looked at the gameduino - too expensive.

Duane B
Title: Re: Portable console
Post by: TheKitty on Jan 13, 2013, 03:40 am
Rodot, I know from your blog that you believe the Esplora may have stole your thunder.  I'm not affiliated with them so I don't know their thoughts but I bought an Esplora to play with and hack.

I was looking at the pins used and documented the "display header".  I used it for an XBee then realized it was a near fit for the Adafruit 1.8" TFT display.

So today I put the display on then looked for cool games for such hardware.  I found your platform jumping game which I thought was way cool.

I ported the code to work on Esplora.  The pins must be mapped for the Esplora hardware and a couple of Esplora specific function calls but otherwise it was pretty compatible.

The code is at https://github.com/TheKitty/EsploraApps (https://github.com/TheKitty/EsploraApps)

I hope to post a blog post on this (fully crediting your work as I did in the code), is that ok??
Title: Re: Portable console
Post by: Rodot on Jan 13, 2013, 05:11 pm
I was designing the second version of my "gameboy", exactly like the esplora (but thinner, with screen and LiPo included). So I really feel they stole me the idea, and I canceled this project as explained here http://r0d0t.tumblr.com/post/38157892418 (http://r0d0t.tumblr.com/post/38157892418).

@TheKitty : I'm glad you used my code, you can put it on your blog if you put a link to the original project http://r0d0t.tumblr.com/post/29641975900 (http://r0d0t.tumblr.com/post/29641975900) thank you :)
But I don't think I'll post the code of the snake game, because it's very, very messy. What do you want to know about it ?

@DuaneB : 3.2" screens with 8 or 16 bit parallel communication should be fine for gaming. But check that there is an arduino lib before.
Title: Re: Portable console
Post by: TheKitty on Jan 13, 2013, 05:28 pm
@Rodot - Thank you!!  Of course I am going to gush over the fact that it is your project and code and I'll link to the Hackaday, your blog, and the Youtube (which shows the gameplay).  

My contribution was making the mapping of the hardware to the Esplora and a couple of library issues.  The code works well but might lack your polish (you can see on Github at the previous link).

If you don't want to publish the other game, that's fine as it is yours.  Maybe you'll want to publish the game in time.

I'd like to see your hardware creativity more, just as others here have encouraged you.  It's a shame the Arduino team came so close to your hardware set.  I actually think your idea with LiPo is better - my next task is "strapping on" a LiPo solution to the Esplora which will be ugly as it appears to really want USB power and many people want a wireless solution (standalone or radio).

My article is now up at http://21stdigitalhome.blogspot.com/2013/01/first-self-contained-arduino-esplora.html.   Thanks again, Mike
Title: Re: Portable console
Post by: DuaneB on Jan 13, 2013, 06:05 pm
Hi,
Esplora does make things a bit less interesting in the short term, I was planning something similar for this lot -

(http://3.bp.blogspot.com/-hUn-qXXfAzA/UN8TzoDHNcI/AAAAAAAAA5U/4T3UxG5wu8A/s1600/screenstickmic.png)

However in the medium term it might open up our projects to more people, I want people to build my projects and if Esplora helps then it must be a good thing.

Rodot, its your design talent that blows us away, your take on conways 'game of life' is exceptional, why mess around with screens and batteries when you can can be genuinely creative - I hope you stick around and do more on the Arduino platforms.

Duane B

rcarduino.blogspot.com (http://rcarduino.blogspot.com)
Title: Re: Portable console
Post by: fungus on Jan 13, 2013, 11:13 pm

Thank you very much !
The screen module costs 13$ on eBay (search "1.8 LCD module"), and the screen alone costs 7$. The library is this one : http://www.bestelecs.com/download/lcd/1.8SPI.zip (http://www.bestelecs.com/download/lcd/1.8SPI.zip).
I don't know if I will do an instructable, there is a lot of information in the video, and doing instructable take a lot of time, and I'm not sure people are interested in that...


I suspect the secret to its coolness is in the programming, not in connecting a screen to the SPI interface :)

Title: Re: Portable console
Post by: pYro_65 on Jan 14, 2013, 12:45 am
You project is a nice one, its a shame to see your ideas clobbered like that. Maybe there is still some room for you.
There is some differences that you can exploit. Especially if you are making a standalone, not a shield.

The 328 can do 20MIPS throughput. whereas the 32U4 is only 16MIPS, even have the crystal removable/switchable and then people can select an external clock.

Seems the 328 has 4 less instructions, whatever they are.
Plus many other differences...

If you are still / were considering a big screen project, I'm working on a library for a 3.2" on a mega 2560 that could help you achieve a nice result. My goal for the library is to actually make a game out of it.

Either way, I'm sure there is something your platform could incorporate that will elevate it well above the performance of the esplora. They may have gotten theirs out first, but this also means you can 'esplore' it and create a better system.
Title: Re: Portable console
Post by: TheKitty on Jan 14, 2013, 03:01 am
R0D0T, your game of life would make a good game for the Esplora too if it could be modified to use the 32U4's 2.5KB SRAM.  While I'm good at some translations, I've looked at the SRAM code a bit and I don't know exactly how much you might be using with the external chip.
Title: Re: Portable console
Post by: Rodot on Jan 18, 2013, 02:07 pm
Quote
I hope you stick around and do more on the Arduino platforms

@DuaneB : I'll maybe get back working on my Game Buino... but right now I've to make my 3D printer... print. I've been working for 2 months on it, because of the very poor quality of parts (nozzle leaking, smooth rods not smooth, broken bearings, burning MOFSETs...).

Quote
If you are still / were considering a big screen project, I'm working on a library for a 3.2" on a mega 2560

@pYro_65 : The mega 2560 has more flash, more ram (good for gaming), more pins (to connect a 16b parallel screen instead of SPI) and you can adress external ram (yeaaaaah). But it's very, very expensive compared to a atmega 328. That's why I chose to do a cheap gaming platform first (to practice PCB routing too), and maybe later, if I want  more power, I'll move on ARM 80Mhz 32bit stuff (but it's very difficult to hand solder).

Quote
your game of life would make a good game for the Esplora too if it could be modified to use the 32U4's 2.5KB SRAM

@TheKitty : your world is 128*128 wide = 16k cells. My algorithm uses 1 byte per cell (you can use 1 bit per cell but it's far, far slower). So you need 16kB of RAM, so I used an external SPI ram. You can use a smaller world (32*32 = 1k) and magnify it if you want to spare ram, but it will be far less cool.
Title: Re: Portable console
Post by: pYro_65 on Jan 18, 2013, 03:25 pm

Quote
If you are still / were considering a big screen project, I'm working on a library for a 3.2" on a mega 2560

@pYro_65 : The mega 2560 has more flash, more ram (good for gaming), more pins (to connect a 16b parallel screen instead of SPI) and you can adress external ram (yeaaaaah). But it's very, very expensive compared to a atmega 328. That's why I chose to do a cheap gaming platform first (to practice PCB routing too), and maybe later, if I want  more power, I'll move on ARM 80Mhz 32bit stuff (but it's very difficult to hand solder).


That's understandable, If you find an AVR you like my library is easily transposable to any 8 bit AVR with at least 2x 8-bit wide IO ports. With a little modification it can support non-parallel interfaces, a large amount of speed will be lost, but will still be optimal.
The 1284 for example, has 16k ram and is available in through hole. From maniacbugs (http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/) site it appears it has 2 free ports and is less than half the price of the 2560.

Anyway I shouldn't advertise my library until I release it, I'm just keen to do some collaborative work. A game is the fundamental reason behind my need for a new graphics driver. So keep that in mind if you ever re-ignite your project.
Title: Re: Portable console
Post by: TheKitty on Feb 23, 2013, 02:25 pm
The new Due is $20 less than the mega and is wicked fast. Perhaps you'd have a good system with it?
Title: Re: Portable console
Post by: Rodot on Feb 24, 2013, 11:19 am
Hello TheKitty,
My project is to design a handheld console you can build yourself on the cheap, and the Due's chip is too expansive and too tiny to be hand soldered. And I don't want to make a shield, because I want it to be 10 mm thick battery included. You don't need a lot of power to make cool games, look at my snake : it runs very smoothly at 50 FPS (and the more power consuming is the AI with a lot of trigonometry & floats). Everything is about optimization.

Edit : I will soon get back on PCB drawing to build a first prototype. But that's the first PCB I draw, so I'm not very fast ^_^