Modules, cases, buttons...
by CHEEZE » Fri Nov 14, 2014 4:27 pm
First off, thank you all for your hard work especially rodot and anyone else who had anything to do with the hardware/software for this aweaome device. So i have all of the parts to build a gamebuino and have had success in burning the bootloader on an atmega328p and getting the display working (still fighting sd card). I have a problem where when i turn it on it shows the main screen then says something along the lines of battery critical power off. My question is, since i have a 328p i do not have ADC6 or ADC7, Can i use I2C DAT and I2C CLK instead which are mapped to A4 and A5 and change the pins in settings.c in the library? I do not have to have I2C at all, i would love to have battery monitoring and ambient backlight control. Thank you in advance.
-
CHEEZE
-
- Posts: 16
- Joined: Fri Nov 14, 2014 4:13 pm
by rodot » Fri Nov 14, 2014 6:18 pm
Sure you can, but you won't be able to add I2C modules. Good luck!
Edit: The only thing is that you'll have to re-compile games with your own settings or you'll get a "battery critical" all the time. In the next update I'm going to add a setting to disable this and save this setting.
-
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
by CHEEZE » Fri Nov 14, 2014 6:31 pm
So if i change this line in settings.c ,
# define BAT_PIN A6
To
# define BAT_PIN A4
And had it wired like the schematic except BAT MON would be on pin analog input 4 on the 328p i would be able to monitor the battery level? Why would i have to recompile the games exactly? Do the games defne the pin to use for battery monitoring or the library?
-
CHEEZE
-
- Posts: 16
- Joined: Fri Nov 14, 2014 4:13 pm
by rodot » Fri Nov 14, 2014 6:58 pm
Yes that would work.
Games are compiled with the default settings, so they monitor the battery on the pin 6. As you have a custom gamebuino, you have to compile the games with your own battery pin settings for it to be taken into account.
-
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
by CHEEZE » Fri Nov 14, 2014 7:33 pm
I see. Well thank you for the replies and your hard work on such an awesome device. I will be purchasing one in the near future.
-
CHEEZE
-
- Posts: 16
- Joined: Fri Nov 14, 2014 4:13 pm
by rodot » Fri Nov 14, 2014 10:22 pm
You're welcome, send us picures when your prototype is up and running
-
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
by CHEEZE » Sat Nov 15, 2014 6:44 am
This is what ive got so far. nothing special really just a breadboard with all of the components. Im still loving it though!
The only problem now is the sd card, i cant get it to work. i think it is because i only have an sdhc card? not sure if that is causing problems.
Now i just need to build a custom pcb and itll be 100% portable. Here are some links to videos i made of it in action.
Playing conways game of life -
http://youtu.be/6GKZ-r6QVBsShowing whole breadboard with mess of wires -
http://youtu.be/7NvMABGpIPs
- Attachments
-
- CAM00045.jpg (210.85 KiB) Viewed 7957 times
-
CHEEZE
-
- Posts: 16
- Joined: Fri Nov 14, 2014 4:13 pm
Return to Hardware Development
Who is online
Users browsing this forum: No registered users and 9 guests