Please point me in the right direction

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Billy10mm
 
Posts: 20
Joined: Mon Dec 10, 2012 11:40 pm

Please point me in the right direction

Post by Billy10mm »

Okay, so here goes.

I'm a total noob to electronics. I just completed my first project, a 9v battery powered phone charger in an Altoids tin. (Yes, I saw Minty Boost, but figured that was cheating instead of learning). Anyway, I have plans for version 2 of said charger and have been stuck on a single feature - low battery power-off.

Essentially, I want to be able to read the voltage in the circuit and when it drops below a certain threshold, open the circuit. As a software developer by profession, my first thoughts were to a microcontroller-based piece of hardware like an Arduino but then figured that maybe I don't need the entire Arduino, maybe I can get by with just a small 4-pin microcontroller? Someone else suggested to me a MOSFET, but I'm unclear exactly what their use is and how I find the exact one that fits my needs.

I don't know, I'm really new and really lost, and I hope someone can point me in the right direction. Thanks

--Billy

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Please point me in the right direction

Post by adafruit_support_bill »

There are a lot of ways to approach it. I'd recommend reading through the "Process" page in the MintyBoost tutorial first. Even if you don't plan to build the Minty yourself, there is a lot of great insight into Ladyada's engineering process, starting with her evaluation of alternative approaches to the problem.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Please point me in the right direction

Post by adafruit_support_mike »

What you want is a device called a 'voltage detector' or 'voltage monitor'. Here's a datasheet for an example:

http://www.onsemi.com/pub_link/Collateral/NCP300-D.PDF

You can build an equivalent circuit yourself if you want the challenge (Google "low battery circuit"), or use an IC if you want to save time and board space.

Looking through some example circuits will give you a general idea of how the thing works though.. the basic idea is to use a mosfet as a 'power switch' between the rest of your circuit and the battery, and then use the voltage detector to 'flip the switch', as it were.

Billy10mm
 
Posts: 20
Joined: Mon Dec 10, 2012 11:40 pm

Re: Please point me in the right direction

Post by Billy10mm »

adafruit_support wrote:There are a lot of ways to approach it. I'd recommend reading through the "Process" page in the MintyBoost tutorial first. Even if you don't plan to build the Minty yourself, there is a lot of great insight into Ladyada's engineering process, starting with her evaluation of alternative approaches to the problem.
Thank you. The Process page looks really interesting, though I must admit that much of it is over my head. I am however, googling each new part/phrase as I come across it. Unfortunately I've been very busy with work and haven't yet gotten a full understanding of the entire thing yet, but hope to by the end of next week if time permits.

Billy10mm
 
Posts: 20
Joined: Mon Dec 10, 2012 11:40 pm

Re: Please point me in the right direction

Post by Billy10mm »

[email protected] wrote:What you want is a device called a 'voltage detector' or 'voltage monitor'. Here's a datasheet for an example:

http://www.onsemi.com/pub_link/Collateral/NCP300-D.PDF

You can build an equivalent circuit yourself if you want the challenge (Google "low battery circuit"), or use an IC if you want to save time and board space.

Looking through some example circuits will give you a general idea of how the thing works though.. the basic idea is to use a mosfet as a 'power switch' between the rest of your circuit and the battery, and then use the voltage detector to 'flip the switch', as it were.
Thank you for your help though, as it is, I'm not really sure about anything you've just said. I don't know what an IC is, the datasheet for that voltage detector might as well be written in Klingon, and although I was pointed at mosfet's by another forum ... I still can't figure out exactly what they do or how they do it.

Let's try this a different way .... for someone who is truly a newborn to this hobby, what's a good book or magazine to get started with the learning process?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Please point me in the right direction

Post by adafruit_support_mike »

Fair enough.. sorry for hitting you with a pile of jargon.

A mosfet is a specific kind of transistor, and for the purposes of your project, a transistor is an electrically-controlled switch. One pin (called the 'gate' in a mosfet) controls the flow of electricity between the other two. An IC is an 'integrated circuit'.. they're basically the same as any other circuit, just really small and encased in plastic.

For the feature you described -- low voltage cutoff -- you could imagine putting a physical switch between the battery and the rest of your circuit then having someone monitor the battery with a voltmeter. If the battery voltage gets too low, that person flips the switch and disconnects the battery.

The parts I talked about do the same thing. The mosfet does the same thing as the switch, and the 'voltage detector' IC does the same thing as a person with a voltmeter.

As books go, "Getting Started in Electronics" by Forrest Mims is a good introduction. Everyone will tell you that "The Art of Electronics" by Horowitz and Hill is *the* reference book.. and they're right.. but it's a bit more advanced. Many people have good luck with "Practical Electronics for Inventors" by Paul Scherz, which sits about halfway between the other two.

No collection of books takes the place of actually building circuits though. Mims has a whole series of little books full of "here, build this" circuits that are wonderful building-and-learning fodder. Get a couple of those ("Engineer's Notebook" and "Electronic Formulas, Symbols, and Circuits" are classics) plus a breadboard and some parts, then spend a few weeks working cover-to-cover building everything as you go. As you do, you'll pick up a thousand little bits of ambient knowledge that are really hard to explain but really valuable.

Billy10mm
 
Posts: 20
Joined: Mon Dec 10, 2012 11:40 pm

Re: Please point me in the right direction

Post by Billy10mm »

Thank you very much!

User avatar
botcabin1
 
Posts: 48
Joined: Mon Mar 09, 2015 4:44 pm

Re: Please point me in the right direction

Post by botcabin1 »

Hi,

I looked at the Digikey and Mouser offerings for undervoltage detectors (PMIC-Power Management IC's) including the above suggested link at:
http://www.onsemi.com/pub_link/Collateral/NCP300-D.PDF

Unless I am reading their sites wrong, the only PMIC's that offer a wide range of voltages all seem to be SMD type devices. I have never worked with SMD before, but are any of your SMD breakout boards compatible with "TSOP-5/SOT23-5 Case 483" which is listed on the above link's datasheet. If so, can the chip easily be soldered to your board with a standard soldering iron? PREFERABLY, is there some type of socket that can be purchased that accepts the IC without the need to solder? In this case, if you don't carry such a socket I would appreciate if you could direct me to a Digikey link.

In advance, thank you.

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Please point me in the right direction

Post by adafruit_support_bill »

We have an assortment of SMT breakout boards and sockets.
https://www.adafruit.com/search?q=smt+breakout&b=1
This one will handle the SOT-23. It is possible to solder these with a standard iron, although you will want to select a fairly fine-tip.

User avatar
botcabin1
 
Posts: 48
Joined: Mon Mar 09, 2015 4:44 pm

Re: Please point me in the right direction

Post by botcabin1 »

Thank you for the suggested SMT breakout boards above.

I am an electronics rookie like original writer of this thread. I have purchased a few of the Adafruit FX Mini Sound Boards ( http://www.adafruit.com/products/2342 ) and use each of these with the Adafruit Mono 2.5W Class D Amplifiers ( http://www.adafruit.com/products/2130 ). Nice quality products! I am running each unit with a 3 rechargeable 1.2V NiMh battery pack (for a 3.6V power supply). I noticed that when the battery pack runs low that the FX board works erratically until I recharge the batteries. I would like to implement the low-voltage cutoff circuit described above.

I plan to determine the specific voltage that the FX board starts to fail by testing the board with varying zener diode shunt circuits such as 2.9V, 3.0v, 3.1V, 3.2V, etc. Then I would like to use the above suggested voltage monitor IC ( http://www.onsemi.com/pub_link/Collateral/NCP300-D.PDF ) with a MOSFET so that power is completely shut off to the FX-Amplifier circuit before the erratic voltage value occurs . I need a bit of assistance to determine the specific Mosfet to use in this application. I would like to use the voltage monitor circuit without the need to add a microcontroller to my setup, as the FX board does not need to be hooked up to a microcontroller.

Digikey basically has the one version ( http://www.digikey.com/product-detail/e ... ND/2121364 ) of the suggested voltage monitor that is available in quantity “1” for a voltage threshold of 3V (the lowest voltage acceptable in the FX spec sheet). These voltage monitor chips are listed as "Active Low" and "Push-Pull, Totem Pole" ( I am not certain what this means! ). The chip manufacturer has many other voltage choices which other distributors undoubtedly carry.

I assume (?) that since the above voltage monitor chip is Active-Low that I would want to use an "N" type of Mosfet, and saw that Adafruit sells the N-channel power MOSFET - 30V / 60A PRODUCT ID: 355 ( http://www.adafruit.com/product/355 ).

I am uncertain looking at the voltage monitor sheet and the Adafruit Mosfet specs if the voltage monitor chip outputs sufficient voltage to turn on the gate of the Adafruit Mosfet, or if perhaps a different Mosfet is more suitable for this application. It also seems that the power rating for the listed Mosfet is a lot higher than what is needed for this setup.

In advance thank you for your help

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”