Battery Indicator

Includes but not limited to: SNES, Genesis, Sega CD, PlayStation 1, Nintendo 64, Dreamcast, Game Gear and I guess the Virtual Boy.

Moderator: Moderators

Thegamer3000
Posts: 160
Joined: Sun Dec 10, 2006 12:00 pm

Battery Indicator

Post by Thegamer3000 »

I want to make a battery indicator for my N64p.

All I want is a green LED when all is well, and a red LED to replace the green LED when you are going to lose power soon.

Does anyone know how to do this?
Use your talents for God's Glory!
______________________________

Progress on Handheld Sega Genesis 90%

Progress on Handheld NES to sell 40%
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

Well, you could do what the original gameboy did and tap a LED directly to the batteries with the right value resistor so it'd fade out before the batteries were dead.
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Post by timmeh87 »

you can get leds with a green and a red built into one lens.

there was some chip that was brought up before that was an analog voltage level meter with 10 lights. you could hook the red and the green up in such a way that it goes green>yellow>red. dont remember the name of the chip though.
Image

"Linux is only free if your time is worthless"
Turbo Tax 1.0
Portablizer Extraordinaire
Posts: 4773
Joined: Wed Mar 30, 2005 6:19 pm
Location: Delaware, no sales tax
Contact:

Post by Turbo Tax 1.0 »

i think kurt had it, it was from battery space, but it only works with their stuff i think :?
when life gives you lemons make flux
Image
snesp mk4
blackbox_dev
Senior Member
Posts: 1906
Joined: Sun Jan 15, 2006 5:19 pm
Location: Formerly known as iam7805

Post by blackbox_dev »

Probably a little over kill, but you could use a PIC with internal ADCs...
I'd imagine right now you wish you were a cuttlefish...
Thegamer3000
Posts: 160
Joined: Sun Dec 10, 2006 12:00 pm

Post by Thegamer3000 »

That idea where the LED just fades out sounds fine to me.

I'm going to use this battery http://batteryspace.com/index.asp?PageA ... ProdID=385

Could you give me a Mouser part number for a LED to use and tell me what type of Resistor to get.

I assume I just hook it up to the battery.

Thanks
Use your talents for God's Glory!
______________________________

Progress on Handheld Sega Genesis 90%

Progress on Handheld NES to sell 40%
codeman
Posts: 314
Joined: Mon Aug 15, 2005 2:29 pm

Post by codeman »

well...can i make a suggestion? Why have a green LED to say "everything's fine"? Why not just have the red LED come on when the batteries are low. The green LED would just waste power, which is bad for a portable.

Also, probably the simplest way to do it with one or two LEDs is just to set up an op-amp as a comparator. You want to know when the batteries are low before the regulators stop working, so you know you'll always have a regulated 5v rail (or whatever voltage you're using). So you can just set up voltage dividers on the inputs to an op-amp. One input is the known constant voltage from the regulator, the other one is the changing battery voltage. When the battery voltage crosses the threshold you set up from the regulated voltage divider, the op-amp output will change state (from 0v to 5v for example), turning off the green LED and turning on the red one. Or just turning on the red one if you take my advice :wink:
What I have shown you is reality. What you remember, that is the illusion.

"Say, what does this button do?"

All the dishes rattle in the cupboards when the elephants arrive
Thegamer3000
Posts: 160
Joined: Sun Dec 10, 2006 12:00 pm

Post by Thegamer3000 »

One Red LED is fine, just give me a diagram and a part number for mouser. Please :lol:
Use your talents for God's Glory!
______________________________

Progress on Handheld Sega Genesis 90%

Progress on Handheld NES to sell 40%
Super Cameraman
Posts: 1123
Joined: Mon Feb 27, 2006 6:25 pm

Post by Super Cameraman »

codeman wrote:well...can i make a suggestion? Why have a green LED to say "everything's fine"? Why not just have the red LED come on when the batteries are low. The green LED would just waste power, which is bad for a portable.
The battery's dying, so let's turn on MORE LED's!!

Makes sense to me!

-Super
If you're looking at this post and it was made before 2008, just ignore it.
codeman
Posts: 314
Joined: Mon Aug 15, 2005 2:29 pm

Post by codeman »

well turning on a battery warning LED is better than "i wonder if my batteries are low...crap my game just died and i didnt save", or at least i think so
What I have shown you is reality. What you remember, that is the illusion.

"Say, what does this button do?"

All the dishes rattle in the cupboards when the elephants arrive
Thegamer3000
Posts: 160
Joined: Sun Dec 10, 2006 12:00 pm

Post by Thegamer3000 »

How do you do it? :x Please tell me :(
Use your talents for God's Glory!
______________________________

Progress on Handheld Sega Genesis 90%

Progress on Handheld NES to sell 40%
codeman
Posts: 314
Joined: Mon Aug 15, 2005 2:29 pm

Post by codeman »

sorry, i forgot. Here's a schematic you can use. The LED might flicker a bit if the voltage "bounces", if that happens and is really annoying let me know and i'll draw up a schematic with a schmitt trigger for debouncing. I didnt do that now because it would take some research on my part...i kind of forget how to do it.

Image

It's set up to turn on the LED when the battery voltage drops to about 6.25volts. If you need to change that value let me know. You'll need an op-amp that can handle the current of the LED, which is about 20mA or so. R1 is just a protection for the op-amp and LED, but it might not be needed if you get an op-amp that can handle a continuous short circuit and limits at about 20mA[/img]
What I have shown you is reality. What you remember, that is the illusion.

"Say, what does this button do?"

All the dishes rattle in the cupboards when the elephants arrive
Thegamer3000
Posts: 160
Joined: Sun Dec 10, 2006 12:00 pm

Post by Thegamer3000 »

Sorry if this sounds stupid but what Is that triangle thing in the middle is it a transistor? And also what is an op-amp or whatever? Can you give me a part number for that? Also I see these areas where 5V come off of this circuit. Where do I wire those on my portable?

Sorry if this sounds stupid, but could you explain this a little better? Also I don't think I care if it bounces. Another thing, I think the system will not work at 6.25V I'm powering a N64 and PSone Screen which I think will die at 7.2 V.

Thanks for your help.
Use your talents for God's Glory!
______________________________

Progress on Handheld Sega Genesis 90%

Progress on Handheld NES to sell 40%
codeman
Posts: 314
Joined: Mon Aug 15, 2005 2:29 pm

Post by codeman »

Ok, to get it to give you an indication at about 7.2v, you need to change R3 to 14k and R2 to 40k. That will give a trip point between 7.1 and 7.2v approximately.

The triangle thing in the middle is the op-amp (short for operational amplifier). To find one just do a search for "op-amp" on digikey or something and you'll get tons of options. As for the 5v, i was assuming you had a 5v regulator somewhere, do you not? Or are you using 3.3v?
What I have shown you is reality. What you remember, that is the illusion.

"Say, what does this button do?"

All the dishes rattle in the cupboards when the elephants arrive
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

The n64 has 1 7805 and the psone lcd has 2.
Post Reply