My own GBZ project
- correia5022
- Posts: 202
- Joined: Mon Dec 05, 2016 12:32 am
- Location: Portugal
- Has thanked: 17 times
- Been thanked: 38 times
Re: My own GBZ project
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.
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
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
- infinitLoop
- Posts: 536
- Joined: Mon Dec 24, 2018 11:46 am
- Location: Portland, OR
- Has thanked: 222 times
- Been thanked: 199 times
- Contact:
Re: My own GBZ project
yeah, that's a problem i'm going to tackle in my next/current build, but i haven't gotten there yet. good luck!correia5022 wrote: ↑Tue Jan 22, 2019 9:11 amI'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..
Some of my builds...
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
- correia5022
- Posts: 202
- Joined: Mon Dec 05, 2016 12:32 am
- Location: Portugal
- Has thanked: 17 times
- Been thanked: 38 times
Re: My own GBZ project
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....
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
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
- correia5022
- Posts: 202
- Joined: Mon Dec 05, 2016 12:32 am
- Location: Portugal
- Has thanked: 17 times
- Been thanked: 38 times
Re: My own GBZ project
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
and change the 5.1 vcc constant value in HoolyHoo's HHBatteryMonitor.py
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
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
After trial and error i finnaly got it to work just fine.
I'll still keep the led indicator, it works flawlessly
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..
My setup using breadboardShow
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);
line 19Show
VCC = 5.1
must be likeShow
if (voltage > 3.3)
{
digitalWrite(16, LOW);
}
else
{
digitalWrite(16, LOW);
}
else
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
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
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
- tinkerBOY
- Posts: 710
- Joined: Tue May 30, 2017 4:00 am
- Has thanked: 294 times
- Been thanked: 206 times
Re: My own GBZ project
That's good to hear. Good luck!correia5022 wrote: ↑Tue Jan 22, 2019 3:50 pmFINALLY!! 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....
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
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
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
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
- correia5022
- Posts: 202
- Joined: Mon Dec 05, 2016 12:32 am
- Location: Portugal
- Has thanked: 17 times
- Been thanked: 38 times
Re: My own GBZ project
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
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...
End result:
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
- 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
dissapointmentShow
________________________________________
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
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
- infinitLoop
- Posts: 536
- Joined: Mon Dec 24, 2018 11:46 am
- Location: Portland, OR
- Has thanked: 222 times
- Been thanked: 199 times
- Contact:
Re: My own GBZ project
lol - "disappointment" - so familiar
Some of my builds...
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
- correia5022
- Posts: 202
- Joined: Mon Dec 05, 2016 12:32 am
- Location: Portugal
- Has thanked: 17 times
- Been thanked: 38 times
Re: My own GBZ project
Spent so much time watching other builds... feels like i got defeated... gonna try again when my good mood returns
damn...
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
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
Who is online
Users browsing this forum: No registered users and 1 guest