Arduino Forum

Development => Other Hardware Development => Topic started by: geogray on Jul 14, 2014, 06:40 pm

Title: Half-Byte Computer 'console'-ATMega 328 based 'computer' and gaming console
Post by: geogray on Jul 14, 2014, 06:40 pm
Hello!
Ever since I discovered that the UNO could support both video out and a PS/2 style keyboard, I was enthralled by the notion of a retro computer/console. So, I set out to roll my own. I found a Tiny Basic-one I am sure you are familiar-written by Mike Field. I took his code, rewrote a big chunk of it and got it to work with the TVOut and PS/2 libraries. Next, I designed my own board, using the 328p, with audio, video and PS/2 support. In addition, I have also included Wii Nunchuck support.  It does not support shields, but all of the I/O pins are broken out. It is a minimal design, so it is easy to put together. I achieved my goal of a 'retro' style computer/game console. It isn't perfect, but it works well and, I think, it is a good, fun little project for a parent to do with a kid who is interested in both electronics and learning to program.
(https://halfbyteblog.files.wordpress.com/2014/07/wp_20140701_018-2.jpg)
Since the 328 only has 2k of SRAM, and I am using the TVOut for video, there is only one thousand bytes of SRAM available to the Half-Byte Tiny Basic interpreter. That may not sound like a lot, but you'd be amazed at what you can do with that.  Half-Byte Tiny Basic has a full set of graphics statements and functions, sound via the TONE statement, hardware access, Serial I/O support and more. You can read more here-->http://halfbyteblog.wordpress.com/half-byte-console-page/half-byte-tiny-basic-commands-statements-and-functions/ (http://halfbyteblog.wordpress.com/half-byte-console-page/half-byte-tiny-basic-commands-statements-and-functions/)
I have made the Tiny Basic available on my blog for anyone to download. It is tailored for my board, but it also works just fine on a UNO, provided you use the standard TVOut pin connections. Go here -->http://halfbyteblog.wordpress.com/2014/07/05/half-byte-tiny-basic-is-now-available/ (http://halfbyteblog.wordpress.com/2014/07/05/half-byte-tiny-basic-is-now-available/) to grab your copy.
(https://halfbyteblog.files.wordpress.com/2014/06/img_4376.jpg)
I currently have several kits available as well as a complete, assembled unit, with a brand new keyboard.  Go here -->http://halfbyteblog.wordpress.com/2014/07/10/half-byte-console-now-available/ (http://halfbyteblog.wordpress.com/2014/07/10/half-byte-console-now-available/) for more.

Finally, I am need of a storage solution for Tiny Basic. Since only a thousand bytes are left for TB program space, I cannot use the SD card library, which requires 512 bytes for a buffer. I don't want this board to have to be tethered to a computer, so I need something simple and very cheap.  Anyone who can offer up a solution will get a free kit and full credit. I cannot currently pay you, in monetary means, anyway, but you will get a kit and full credit at the very least.

Title: Re: Half-Byte Computer 'console'-ATMega 328 based 'computer' and gaming console
Post by: pito on Jul 15, 2014, 07:04 am

Finally, I am need of a storage solution for Tiny Basic. Since only a thousand bytes are left for TB program space, I cannot use the SD card library, which requires 512 bytes for a buffer. I don't want this board to have to be tethered to a computer, so I need something simple and very cheap. 

The simplest and cheapest solution is to redesign the stuff with atmega1284p (or better) and a microsd socket..

Title: Re: Half-Byte Computer 'console'-ATMega 328 based 'computer' and gaming console
Post by: geogray on Jul 15, 2014, 07:16 am


Finally, I am need of a storage solution for Tiny Basic. Since only a thousand bytes are left for TB program space, I cannot use the SD card library, which requires 512 bytes for a buffer. I don't want this board to have to be tethered to a computer, so I need something simple and very cheap. 

The simplest and cheapest solution is to redesign the stuff with atmega1284p (or better) and a microsd socket..



Well, not for me. I have a bunch of these boards made.  Though, my next board may be something like that.
Thanks.
Title: Re: Half-Byte Computer 'console'-ATMega 328 based 'computer' and gaming console
Post by: geogray on Jul 15, 2014, 07:20 am
Here's a short video clip of the board and Half-Byte Tiny Basic in action.
https://www.youtube.com/watch?feature=player_detailpage&v=0joenLpU-Js (https://www.youtube.com/watch?feature=player_detailpage&v=0joenLpU-Js)
Title: Re: Half-Byte Computer 'console'-ATMega 328 based 'computer' and gaming console
Post by: 1967stroker on Aug 12, 2015, 06:18 am
could you build a daughter board with the sd card and the 1284p chip on it? make it plug onto the place the 328p is.
Title: Re: Half-Byte Computer 'console'-ATMega 328 based 'computer' and gaming console
Post by: Isaac96 on Aug 16, 2015, 11:09 pm
Use a EEPROM chip. 
http://www.digikey.com/product-detail/en/24LC128-I%2FP/24LC128-I%2FP-ND/273429 (http://www.digikey.com/product-detail/en/24LC128-I%2FP/24LC128-I%2FP-ND/273429)
Arduino library:
https://github.com/johnyHV/24LCxxx (https://github.com/johnyHV/24LCxxx)