Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Show off your completed Game Boy Zero, or post your build logs here!
Post Reply
User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by erik_gee » Tue Jan 09, 2018 11:16 pm

joeygbsn wrote:
Tue Jan 09, 2018 8:06 pm
Hey one thing i realized is that on the ads1115 boards they have pull-up resistors on the sda and scl lines so if you power the module from 5v these lines will have the pi's pull-ups to 3v3 and also the modules to 5v. Not sure how this might affect things but might be a good idea to cut those traces on the module or desolder the resistors. What complicates this a bit more is that a logic high for the ads1115 is stated as .7*Vdd in the datasheet which would be 3.5v at Vdd=5v which is higher than the 3.3v logic on the pi. I have gotten away with it so far on my setup but it is out of spec so there's no guarantees.
Are you saying that powering the ads1115 at 5v vdd will cause the output voltage on the sda and scl to be above 3.3v and damage the pi ?
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by erik_gee » Wed Jan 10, 2018 12:05 am

If that is the case, then I would recommend to those reading to creat a voltage divider with a 10k and 5k resistor pair. Use the 5v source and the output will be a rough 3.3v , falling within spec ;) hopefully this can help someone out
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
BadBert
Posts: 377
Joined: Wed Jun 29, 2016 4:14 am
Location: Hoogerheide, Netherlands
Has thanked: 100 times
Been thanked: 61 times
Contact:

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by BadBert » Wed Jan 10, 2018 1:10 am

this build is awsome.
very clean!!!!

nice one!
My first GBZ build -=HERE=- -> Became a gift to my little brother!
My 2nd GBZ build -=WIP HERE=- -> going with HDMI!

joeygbsn
Posts: 50
Joined: Sun Nov 06, 2016 11:07 pm
Has thanked: 6 times
Been thanked: 15 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by joeygbsn » Wed Jan 10, 2018 6:56 am

erik_gee wrote:
Wed Jan 10, 2018 12:05 am
If that is the case, then I would recommend to those reading to creat a voltage divider with a 10k and 5k resistor pair. Use the 5v source and the output will be a rough 3.3v , falling within spec ;) hopefully this can help someone out
I'm not sure if it will cause damage to the pi but you are only supposed to have one set of pull-ups on the i2c bus. Using a voltage divider doesn't really work for powering devices. When you use a voltage divider you assume the output is high impedance and won't draw any current. When you use the output to power a device you essentially have a lower impedance in parallel with the bottom 10k which changes the overall resistance and therefore changes the output voltage. Probably easier to just use the regulated 3v3 from the pi. If you use 3v3 as your Vdd you would then need a divider from the battery to the A0 input to keep the measured voltage below 3v3 as you can't measure higher than Vdd. I think just taking the pull-ups off and using 5v is easiest.

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by VeteranGamer » Wed Jan 10, 2018 9:34 am

joeygbsn wrote:
Wed Jan 10, 2018 6:56 am
erik_gee wrote:
Wed Jan 10, 2018 12:05 am
If that is the case, then I would recommend to those reading to creat a voltage divider with a 10k and 5k resistor pair. Use the 5v source and the output will be a rough 3.3v , falling within spec ;) hopefully this can help someone out
I'm not sure if it will cause damage to the pi but you are only supposed to have one set of pull-ups on the i2c bus. Using a voltage divider doesn't really work for powering devices. When you use a voltage divider you assume the output is high impedance and won't draw any current. When you use the output to power a device you essentially have a lower impedance in parallel with the bottom 10k which changes the overall resistance and therefore changes the output voltage. Probably easier to just use the regulated 3v3 from the pi. If you use 3v3 as your Vdd you would then need a divider from the battery to the A0 input to keep the measured voltage below 3v3 as you can't measure higher than Vdd. I think just taking the pull-ups off and using 5v is easiest.

this is great info....

i think its best discussed in this post....

https://sudomod.com/forum/viewtopic.php?f=42&t=4585

and i'll update any finding here as well....

thanks

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by erik_gee » Wed Jan 10, 2018 2:35 pm

VeteranGamer wrote:
Wed Jan 10, 2018 9:34 am
joeygbsn wrote:
Wed Jan 10, 2018 6:56 am
erik_gee wrote:
Wed Jan 10, 2018 12:05 am
If that is the case, then I would recommend to those reading to creat a voltage divider with a 10k and 5k resistor pair. Use the 5v source and the output will be a rough 3.3v , falling within spec ;) hopefully this can help someone out
I'm not sure if it will cause damage to the pi but you are only supposed to have one set of pull-ups on the i2c bus. Using a voltage divider doesn't really work for powering devices. When you use a voltage divider you assume the output is high impedance and won't draw any current. When you use the output to power a device you essentially have a lower impedance in parallel with the bottom 10k which changes the overall resistance and therefore changes the output voltage. Probably easier to just use the regulated 3v3 from the pi. If you use 3v3 as your Vdd you would then need a divider from the battery to the A0 input to keep the measured voltage below 3v3 as you can't measure higher than Vdd. I think just taking the pull-ups off and using 5v is easiest.

this is great info....

i think its best discussed in this post....

https://sudomod.com/forum/viewtopic.php?f=42&t=4585

and i'll update any finding here as well....

thanks
A lot of information there but doesn't seem to cover this topic unfortunately. But since the person on that thread got it working, perhaps the pull resistors aren't as big of a deal as we are making it?
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by erik_gee » Wed Jan 10, 2018 3:24 pm

joeygbsn wrote:
Wed Jan 10, 2018 6:56 am
erik_gee wrote:
Wed Jan 10, 2018 12:05 am
If that is the case, then I would recommend to those reading to creat a voltage divider with a 10k and 5k resistor pair. Use the 5v source and the output will be a rough 3.3v , falling within spec ;) hopefully this can help someone out
I'm not sure if it will cause damage to the pi but you are only supposed to have one set of pull-ups on the i2c bus. Using a voltage divider doesn't really work for powering devices. When you use a voltage divider you assume the output is high impedance and won't draw any current. When you use the output to power a device you essentially have a lower impedance in parallel with the bottom 10k which changes the overall resistance and therefore changes the output voltage. Probably easier to just use the regulated 3v3 from the pi. If you use 3v3 as your Vdd you would then need a divider from the battery to the A0 input to keep the measured voltage below 3v3 as you can't measure higher than Vdd. I think just taking the pull-ups off and using 5v is easiest.
Ah I see what you are saying now. My mistake.
I believe someone else on the thread veteran posted used an ADC module without touching the pull ups on sda and scl lines, and worked for him. He didn't state what vdd he was using, whether it was 3.3 or 5 though.

The pi's pins can't accept a voltage higher than 3.3 or they will fry, so I thought that's what you were getting at. But now that I think about it, since you said the voltage is at .7vdd, then maybe we can still use the 5v power source, and then use a diode to drop it .5v? Then you would have roughly 3.1v for the output, but since the Vdd is 4.5v, you'll still have the range for a0 input. Sorry my knowledge is lacking a bit in this area, hopefully I don't sound stupid haha
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by erik_gee » Wed Jan 10, 2018 4:17 pm

Woops I mean .7v. not .5 but still same concept. Should allow the range of the battery voltage for a0 without the need of a voltage divider and still provide enough power for the module
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

joeygbsn
Posts: 50
Joined: Sun Nov 06, 2016 11:07 pm
Has thanked: 6 times
Been thanked: 15 times

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by joeygbsn » Thu Jan 11, 2018 11:59 am

erik_gee wrote:
Wed Jan 10, 2018 4:17 pm
Woops I mean .7v. not .5 but still same concept. Should allow the range of the battery voltage for a0 without the need of a voltage divider and still provide enough power for the module
Continuing this conversation on the other thread.

https://sudomod.com/forum/viewtopic.php?f=42&t=4585

Dr0Heaven
Posts: 1
Joined: Sun Feb 05, 2017 7:02 am

Re: Veteran's 3rd "THE ULTIMATE CUSTOM BUILD"

Post by Dr0Heaven » Fri Jan 12, 2018 12:05 am

Hy what Typ of LEDs are you useing?
Do i Need to add something on the Skript ?
Best regards

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest