My own GBZ project

Show off your completed Game Boy Zero, or post your build logs here!
User avatar
correia5022
Posts: 201
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: My own GBZ project

Post by correia5022 » Tue Jan 22, 2019 9:11 am

Yes, i think the first build is always the worst.. if you're using simple parts (not those aio boards).
I've managed to find a working HUB, but now i'm stuck with tle leonardo pro micro.
I want to use its adc to battery monitor, but i cant seem to make it work..
I'm searching and trying to learn the programing language so i can debbug the code and understand this, as no one still replied to my help topic.
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website

User avatar
infinitLoop
Posts: 319
Joined: Mon Dec 24, 2018 11:46 am
Has thanked: 130 times
Been thanked: 93 times
Contact:

Re: My own GBZ project

Post by infinitLoop » Tue Jan 22, 2019 9:23 am

correia5022 wrote:
Tue Jan 22, 2019 9:11 am
I've managed to find a working HUB, but now i'm stuck with tle leonardo pro micro.

I want to use its adc to battery monitor, but i cant seem to make it work..
yeah, that's a problem i'm going to tackle in my next/current build, but i haven't gotten there yet. good luck!

User avatar
correia5022
Posts: 201
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: My own GBZ project

Post by correia5022 » Tue Jan 22, 2019 3:50 pm

FINALLY!! I have all things working now. Damn, it gave me a lot of headaches, i lost good night sleeps at this!

Usb hub ok
arduino leonardo ok
adc function ok
USB soundcard with splashscreen sounding ok Well, still not attached amp, but thats straight forward, no real difficulty (i've been assembling amps for some time in my boomboxes)

Time to get wiring stuff, finally....
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website

User avatar
correia5022
Posts: 201
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: My own GBZ project

Post by correia5022 » Tue Jan 22, 2019 4:41 pm

As i mentioned earlier, i wanted to use the arduino pro micro aka arduino leonardo, since it has an adc built in.
I followed lotusalex2000's code, but was not working properly.

Here's how i managed:

So, first off, you should note the exact voltage that really gets in your arduino, with all things wired up, since the voltage will get lower as things are turned or working, and you really want to be precise. I had a bunch of troubles using the breadboard and voltages were not changing the battery monitor state in the screen.. now i know why.. Next, you should tweak both arduino and HHBatteryMonitor.py codes with that voltage
in lotusalex2000's code, just change the 4.88 constant he used to determine the voltage
line 83Show
float voltage = sensorValue * (4.88 / 1023.00);
and change the 5.1 vcc constant value in HoolyHoo's HHBatteryMonitor.py
line 19Show
VCC = 5.1
If you want to keep the blink led on pin 16 of the arduino, change the voltage from 4.5 to 3.3, the HIGH for LOW in line 96
must be likeShow
if (voltage > 3.3)
{
digitalWrite(16, LOW);
}
else
Also, i have been analysing the typical voltage drops on a li-poly & li-ion batteries.
HoolyHoo did an excelent job, but i tweaked those voltage ranges.
Since i will be using a 3000mAh, and that total amps drawn with my setup is like 500~600mAh, which converting to a 3.7v rate gets like 800mAh wich is about 0.3C draw
check below
typical li-ion battery dischargeShow
Image
After trial and error i finnaly got it to work just fine.
I'll still keep the led indicator, it works flawlessly
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website

User avatar
tinkerBOY
Posts: 669
Joined: Tue May 30, 2017 4:00 am
Has thanked: 288 times
Been thanked: 187 times

Re: My own GBZ project

Post by tinkerBOY » Wed Jan 23, 2019 2:33 am

correia5022 wrote:
Tue Jan 22, 2019 3:50 pm
FINALLY!! I have all things working now. Damn, it gave me a lot of headaches, i lost good night sleeps at this!

Usb hub ok
arduino leonardo ok
adc function ok
USB soundcard with splashscreen sounding ok Well, still not attached amp, but thats straight forward, no real difficulty (i've been assembling amps for some time in my boomboxes)

Time to get wiring stuff, finally....
That's good to hear. Good luck!
Game Boy Zero Controllers available @ tinkerBOY.xyz
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
correia5022
Posts: 201
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: My own GBZ project

Post by correia5022 » Wed Feb 06, 2019 4:10 pm

Ok, so finaly i got.... something...
Not proud of how it turned out... because i am not getting leonardo pro micro and extra usb to work.
Also, when i was testing things, open and closing the case, i understood that maybe because i glued the amp near the usb soundcard i get a terrible interference signal in the speaker...
So since 2 things are not working i need to revise the location of parts.
Also, it was really tight, hard to close.. managed to close it, but not working properly,,, time to unglue everything... S*#*t

Power supply:
- I placed the powerboost in the cartridge. I thought the indicator LED was not bright and soldered some 3mm (or 2mm forgot) extra LEDs.. now i know it was bright enough without them. I made a hole in the cartridge (on top of the LEDs) and used hot glue to make a difusor opaque "window". Had to trim the led's because i couldnt close the cartridge XD
BG powerboostShow
Image
Leonardo vs all the rest:
- So, as i imagined, couldnt get everything nicely organized... i spent a lot of time trying diferent positions, then (since i wanted access to the microSD card) used hot glue and the screw posts to create a support for the pi. It turned out great, but had to move the creen pcb to the top.
Also since i positioned the leonardo pro micro near the volume pot, i had some trouble to put it there..
Added 2 power strip from perfboard, and tried to close it, unsuccefully...
positioning partsShow
Image
End result:
dissapointmentShow
Image
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website


User avatar
correia5022
Posts: 201
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: My own GBZ project

Post by correia5022 » Wed Feb 06, 2019 5:30 pm

Spent so much time watching other builds... feels like i got defeated... gonna try again when my good mood returns
damn...
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest