View previous topic :: View next topic |
Author |
Message |
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
Posted: Tue Feb 14, 2017 7:02 am Post subject: All-in-one game board "Gamebuino" |
|
|
I got an all-in-one game board "Gamebuino"!
It has seven push buttons, G-LCD display, speaker, photosensor, I2C interface, serial communication, SD card and battery on board.
AVR is ATmega328P-AU 16MHz.
Gamebuino :
Manufacturer site : http://gamebuino.com/
WIKI site : http://gamebuino.com/wiki/index.php?title=Getting_started
Circuit diagram : http://gamebuino.com/wiki/images/6/6f/Gamebuino_r2_schematics.pdf
However, the development environment is "Arduino". I like BASCOM!
So we prepared libraries, configuration programs, and a simple test program so that they can be run on BASCOM-AVR.
The G-LCD is Nokia 5110.
The library modified "NOKIA-3310/5110 B & W LCD library" of "Mrshilov" for "Gamebuino".
"Line" command can not be used for this G-LCD.
However, I wanted a row separating the lines, so I added an underline to the option of the "Lcdat" command.
Code: | Lcdat 1 , 1 , "Gamebuino Test" 'Normal.
Lcdat 1 , 1 , "Gamebuino Test" , 1 'Invert.
Lcdat 1 , 1 , "Gamebuino Test" , 2 'Solid Underline.
Lcdat 1 , 1 , "Gamebuino Test" , 3 'Dotted Underline. |
The attached 6x8 font does not use the underline area (lowest) dot.
Since micro SD card can be used, AVR-DOS can be include.
Code: | Const Sdcard_use = 0 'Usage status of SD-Card. (0:not used, 1:used) |
Program can be written in BASCOM's [ARDUINO] using USB cable.
Use BASCOM to expect for sensors, data loggers, and other applications! |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Feb 14, 2017 10:19 pm Post subject: |
|
|
Hi O-Family,
As always a great project to share
Thank you for sharing and the clear info. _________________ Mark |
|
Back to top |
|
|
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
Posted: Sat Feb 18, 2017 1:26 pm Post subject: |
|
|
Additional Information
You can start the user's program written to the micro SD card without using ISP programmer or USB cable.
Write the HEX file of the program to the micro SD card, the boot loader loads it and executes it.
Preparation
1. Prepare a micro SD card. Capacity is 2GB or less, formatted with FAT16 (aka FAT).
2. Copy the "LOADER.HEX" file (disk loader) to the SD card.
"LOADER.HEX" can be downloaded from the SD card containing the included game or from "Gamebuino-Games-Compilation".
https://github.com/Rodot/Gamebuino-Games-Compilation/archive/master.zip
The file name must be in all capital letters including the extension (.HEX).
3. Compile the program with BASCOM and create a HEX file.
4. Copy the program's HEX file to the SD card.
The file name must be within 8 letters (XXXXXXXX.HEX) and must be in all capital letters including the extension (.HEX).
Start-up
1. Insert the SD card into which the program was written into Gamebuino.
2. Hold down the [C] button and turn on the power, wait for at least 2 seconds, then release the [C] button.
3. Wait about 10 to 20 seconds, depending on the number of files in the SD card with the screen disappearing.
4. A program selection menu like the picture below is displayed.
File names with up to 8 characters are displayed.
You can also make icons yourself. (INF encoder)
5. Select the program with the [Up / Down / Left / Right] button and press the [A] button.
6. Since the confirmation screen for reading appears, press the [A] button again.
You can also display program operation instructions etc. on this screen. (INF encoder)
7. The HEX file is loaded to the AVR flash and the selected program is activated.
|
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Feb 20, 2017 4:23 pm Post subject: |
|
|
amazing. thanks for the detailed guide. _________________ Mark |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|