Emulación de baterías en dispositivos con capacidad de carga

Me surgió la duda de como emular una bateria como por ejemplo en una tableta.
Lo mas lógico y simple de pensar es usar un a fuente de alimentación con un regulador con un lm317 seteado a 3v7. Y hasta ahí todo bien si yo conecto un amperímetro se el consumo de la tableta, pero mi duda es con respecto a la carga... Al conectar el cargador original de la tableta en su conector que generalmente es de 5v,entonces ¿se intentaria cargar en teoría la fuente con el lm317 y en teoría en el amperímetro se vería un "contra consumo" (o carga) ? O ¿como podria emular la carga de una bateria utilizando una fuente de alimentación ?
El propósito es testear el circuito de carga y descarga (administrador de energia) del dispositivo con una fuente de alimentación variable emulando una bateria.
 
Última edición:
Poner una fuente de alimentacion para simular la bateria asi, sin mas, de por si NO me parece una buena idea, muchas fuentes no tienen capacidad de "sink" y se generaria una pelea de gallos entre el cargador y la fuente "bateria" con el resultado probable que alguna de las dos se queme.

Una pregunta. Por que no "simular" la bateria... usando directamente una bateria?
 
Mmm... Supuse que no iba a ser tarea fácil XD
La idea es no esperar las tres o cuatro horas de carga y tres o cuatro horas de descarga, sino que con ayuda de un pote se emule el ciclo completo en unos cuantos segundos. Abarcando todo el rango del ciclo porque me he topado con dispositivos que aparente mente funcionan bien pero al descargarse la batería no vuelven a cargar por daño en el circuito por mencionar un caso.
Alguna propuesta aunque sea descabellada XD
 
Última edición:
Una idea... aunque no creo que sea muy descabellada.

Un capacitor de los mas grandes que encuentres, con una resistencia chica (chica en valor), de potencia, para fijar la corriente de carga.

Si tenes ganas de invertir mas, podes hacer que la corriente por el capacitor la regule un circuito de fuente de corriente, controlado por un pot comun, para no tener que andar buscando un reostato (si no tenes).

Si tenes reostato: reostato en serie con capacitores grandotes.
 
Hola!

Adjunto algo que podría ser como una batería falsa.

Los nodos "CARGA" y el Voltaje "CARGADOR" serían los elementos a probar.

El condensador C1 se descarga en el transistor, esto genera una corriente que se repite en R1, a medida que el condensador se descarga la corriente disminuye y el valor en el nodo "CARGA" también lo hace, si lo que se desea probar está en buenas condiciones en algún momento se debe activar lo que en el dibujo está como voltaje "CARGADOR", así el ciclo comienza otra vez.


Saludos.
 

Adjuntos

  • fde_batt_falsa.jpg
    fde_batt_falsa.jpg
    52.2 KB · Visitas: 27
OK, por esas ideas empiezo.
En cuestión de invertir no hay problema mientras no se trate de cantidades exageradas de tiempo o dinero empleado.
Con respecto a usar solo un pote no era literal si se necesitan mas componentes o incluso micro controladores no hay problema la idea es hacer algo tipo tester o multimetro. Digamos que un descarga/carga meter XD.(comento esto por lo del reostato)
Hago pruebas de las sugerencias y comento resultados...
 
Última edición:
Primer prueba emulando la bateria con una fuente de laboratorio, y la primera observacion es que los dispositvos no muestran en tiempo real la carga de la bateria, en el caso del dispositivo del video tarda como unos 2 minutos en hacer la actualizacion de la carga de la bateria.

 
En esta segunda prueba con una tablet, el comportamiento es similar al del telefono samsung, no es en tiempo real y tarda unos 5 minutos en actualizar...

estoy pensando en utilizar este circuito para emular la carga...
IMG_20160318_154904.jpg

¿No creen que se dañe la tablet?

aqui el video de la segunda prueba.
 
Bueno por cuestiones de tiempo me la jugue poniendo el cargador a la tableta y afortunadamente no se quemo.
Aquí la tercer y al parecer ultima prueba...
Concluyo que ese tipo de dispositivos solo sensan el voltaje al encenderse y después son puros cálculos por lo que creo que no es factible hacer lo que quiero, lo que me causa una profunda tristeza...:cry:
 
Última edición:
no creo

la manera mas facil seria medir el voltaje de la bateria y despues los calculos
por ejemplo en un cargador de coche de 12V


a medida que se carga la bateria su resistencia sube y el voltage sube y asi el cargador sabe cuando esta cargada

entonces solo es calcular un par de resistencias

una bateria baja y la otra bateria alta

espero que se entienda


resserie.gif
 
Yo no entendi muy bien y al parecer no me explique bien, lo que quiero decir es que al encender un dispositivo de esos, el administrador de energia sensa el voltaje actual de la bateria y jamas vuelve a sensar mientras esta encendido, la cantidad de carga de la bateria que nos muestra es solo un estimado calculado por algún micro controlador y solo se apaga por si mismo cuando el voltaje es menor al requerido por los circuitos o si por cálculos estima que ya esta agotada la bateria, en pocas palabras nos vuelven a ver la cara los chinitos XD.

Pienso que por eso si se apaga un celular al estimar que ya esta descargada la bateria y nosotros volvemos a encender todavía tenemos un tiempo "extra" para usarlo hasta que de plano esta agotada realmente.

Si hay alguna prueba que pueda realizar para desechar mi teoría con gusto la hago.
 
Última edición:
no entendi bien la pelicula ni si ya se te ocurrio esto
pero veo que tienes una fuente variable

entonces si conoces el volatage de la bateria descargada y el voltage de la bateria cargada
puedes emular la bateria con la fuente a ver si cambia el medidor

la bateria la puedes revisar con el cpuz que tiene el medidor de voltage
 
He visto los videos y creo que se cual podria ser el problema.

No creo que ninguno de esos cargadores se fije solamente en el voltaje, hoy hay muchos dispositivos que se llaman "gas gauge" que van integrando tanto la carga como la descarga de la bateria, midiendo tension y corriente sobre la misma, para calcular el nivel de carga.

Como pusiste el diodo a la salida de la fuente no deberia haber ningun problema de peleas entre fuente y cargador.

La pregunta es que pasa cuando encendes el equipo, y yo creo que vos mismo lo dijiste. Si encendes el equipo el telefono debe calcular la carga inicial segun el voltaje de la bateria, pero de ahi en mas podria ser que lo que influye es el "gas gauge" o un algoritmo en SW que hace algo similar, ir integrando la corriente de carga o descarga y la tension.

Voy a consultar a un amigo que sabe mucho sobre cargadores y si se me dice algo interesante te cuento.

Tambien se me ocurre que hoy por hoy las baterias son inteligentes y "hablan" por I2C o SMB o algo similar con el telefono, si le sacas la bateria no esta mas la interface inteligente y no se que pasara en ese caso desde el punto de vista del telefono, en el sentido de que quiza no se comporte como lo haria cuando la bateria "le habla".

Saludos.
 
Última edición:
Hola.
Creo que el dispositivo debe percibir el estado de la batería regularmente, pues una batería que ya no toma carga, aunque marque llena, el tiempo de utilización se reduce considerablemente y no creo que eso se pueda calcular (salvo que, como dice el chclau, haya algo programado en la propia batería - ¡puta obsolescencia! -) :unsure::cry:
 
Si hay baterías que tienen comunicación con en el dispositivo, en el caso de las que uso en los videos se supone que no, en el Samsung tiene un tercer pin que es el bsi (batery size indicador) que solo le indica por medio de un divisor resistivo los mAh de la bateria, en la tableta no tiene ese PIn pues se supone no es cambiable hasta la sustitución de la misma por una igual.
En ambas baterías tienen un circuito que consta principalmente de un sensor de corriente y temperatura que controlan un mosfet para cortar la corriente en caso de alguna anomalía. De eso estoy seguro pues encontré la ficha técnica del integrado. Hasta ahí llega la "inteligencia" de esas baterías que están en el video. Mi idea era hacer pruebas con ese tipo de baterías y si resultaba exitosa la idea del emulador después seguir con las que se comunican con algún protocolo serial.

Sigo dándole vueltas al asunto para a ver si es rescatable el proyecto. XD

Hasta donde puedo observar el estado de la bat se actualiza solo al encender el dispositivo, haré un video para mostrarlo.
Podria ser que el dispositivo mediante SW vaya registrando la capacidad de carga y así ir acortando la capacidad , en realidad no se.. Pero eso se me ocurre aunque puede ser tambien lo del gas gauge ...hummm.
 
Última edición:
Me intereso tu pregunta y busque un poco por la Internet para encontrar esto, fijate si te sirve.

http://forums.androidcentral.com/general-help-how/312596-samsung-galaxy-charging-issue.html

Perdon por ponerlo en ingles, en el idioma del foro de donde lo saque, la parte en cuestion.

Until and unless any phone actually "knows" what a 100% charge (for any given battery) actually "looks" like, it cannot be expected to report completely accurate battery levels either using its built-in battery percentage meter, or any afermarket one, up on the notication bar (or even via any on-the-homescreen widgets). The purpose of (re)calibrating any given battery to the phone into which it has been newly-placed is simply so that said phone's internal battery-monitoring/reporting circuitry will properly recognize when said battery is really and truly at 100% charge so that said battery-monitoring/reporting circuitry will accurately report battery percentage via whatever battery percentage indicator is up in the notification (aka "status") bar. Fortunately, it's a simple and relatively quick process which anyone may do; but it absolutely must be done for any given battery very soon after it has been newly-installed into the phone...

...including, again, even only if the battery has been briefly removed just to unfreeze (or battery-removal-reset) a phone! Anytime, again, that the electro-physical connection between the phone and any given battery has been broken, then said battery must be recalibrated to said phone after it has been reinserted into said phone. And, certainly, any battery swapped-into the phone as part of the earlier-herein-mentioned quarterly use-then-rest methodology needs to be recalibrated to the phone soon after said swap-in.

For that reason, swapping two or three batteries in and out of the phone all day long just doesn't work. Because none of them ever get recalibrated to the phone, none of them are having their true charge levels accurately reported by the phone; and so it becomes a self-defeating thing since the battery, eventually, gets reported as nearly dead (and so the user insensibly swaps it out) when, in fact, it still has a considerable amount of charge in it. If, again, the phone is so heavily used that its overnight charge won't make it 'til the end of the day, then the only two solutions are to either do interim "refresh" recharges all day long, or get a larger battery (with concomitant larger phone back).

The charger and cable that should be used for battery (re)calibration should be the ones that came with the phone, if possible. If not, then a charger and cable of the type and caliber (and brand) as I earlier herein mentioned should be used; and you must make sure that said charger is capable of delivering at least the amperage of the charger that came with the phone (or if it's a multi-port charger, that you use the port which delivers the higher amperage).

Here's how to (re)calibrate a battery to a phone...

FIRST, charge the phone, with the phone turned-on, all the way to 100%. You will obviously need a battery percentage indicator up on the notification bar, which I have herein already covered. Only a percentage indicator will work: do not try to determine if the phone is at 100% charge using the graphic of a battery which displays, for example, half-full of green color if at 50% charge. You need a truly digital percentage indicator... either the one built-into the phone, if there is one, or an aftermarket one such as I herein earlier describe. So, anyway, first charge the phone all the way up to 100% while the phone is turned on.

SECOND, once the battery percentage indicator shows that the phone has been charged to 100% with its power on, then unplug the phone from the charger and immediately power-off the phone... meaning actually turn it off... all the way off... not merely blank its screen. To turn the phone truly off, long-press the hardware POWER button until the "Device options" dialog (the one that offers the abiliy to power off, or reset, or go into "Airplane mode") appears. Then choose "power off," and verify with "OK" that's that's really what you want to do. Then keep holding the phone in your hand, feeling for the little vibration burst, just before the blue LED light goes out, to indicate that the phone's really all the way off. Wait another few seconds after you feel that vibration burst (and the blue light goes out) to really make sure that the phone's by-golly all the way off... fully off.

THIRD, plug the charger into the turned-off phone; a green image of a battery will light-up, and that charging-while-off battery graphic will obviously be showing that it's charging. It will blank-out after a few seconds; that's okay, just let it charge while off. When it finally hits a 100%-charge-while-off, the little charging-while-off battery graphic will light-up again for a few seconds, showing a 100% charge in white letters. If the battery is brand new, this could take actually several minutes, so just be patient. And if you think you may have missed the brief light-up of the screen to show 100% charge, no problem: Just short-press-and-quickly-release the phone's POWER button to briefly light-up the screen's little charging-while-off battery graphic; and if it doesn't yet say 100%, then just keep being patient while it blanks again and just keeps charging-while-off.

FOURTH, when the phone finally reaches a 100% charge while off, then unplug the charger from the phone; and then, with the phone unplugged from the charger, power it back up again (in other words, long-press and hold the hardware POWER button until the "Samsung Galaxy Note II" splash graphic lights-up, and then release the POWER button and just patiently wait while the phone fully boots up; be careful not to simultaneously press either of the volume rocker hardware buttons on the left side of the phone while you're pressing the POWER button on right side). DO NOT RUSH THINGS! Just like a Windows computer, a phone takes a while to fully -- and that's the operative word -- boot-up. On a Windows machine, one can tell that the machine's finally fully booted-up by looking at its hard drive light to see when it finally calms down and stops being either fully on or frequently flickering; but a phone has no such hardware light, so it's best to just be patient and give the phone plenty of time to fully boot-up... maybe even as long as five minutes.

FIFTH, once the phone's fully booted-up, turn right around power it all the way off, again (long-pressing the POWER button until the dialog pops-up which allows the "power off" choice; then verify with "OK"; then wait 'til you feel the power-off vibration burst and the blue light goes out; then wait a few seconds for the phone to really-and-truly be all the way off).

SIXTH, once the phone's fully off, plug-in the charger again, and, again, perform a charge-while-off to 100% again. Again, it will briefly show the charging-while-off battery graphic, then blank; then it will briefly light-up again when it finally hits a 100% charge while off, then blank again; so pay attention. And, again, if you happen to miss the 100% charge-while-off brief light-up, just press-and-immediately-release the POWER button to briefly light-up the charging-while-off battery graphic to see if it shows 100% yet; and if not, then just let it blank and keep charging until it does. It should happen much faster this time, though; so just pay attention.

SEVENTH, once the phone's fully 100% charged-while-off, unplug the charger for the final (for this procedure) time; and then go ahead and power-up the phone normally; and after it's fully booted-up, use it normally. The battery is now calibrated to the phone.

NOTE: If it's a brand new battery, then repeat the process, just for good measure, after around five days. A battery that's been used, even if it has sat "resting" on a shelf for three months, need only be recalibrated once after being inserted back into a phone; only brand new, first-time-ever-used batteries should be recalibrated about five days after initial calibration.

If you do everything as I've herein explained, and are mindful of all the conditions and situations herein explained, and your phone doesn't have a hardware problem with the earlier-mentioned little circuit board inside it which has the USB port and bottom-of-phone mic on it, then you should never have so much as a moment's problem with charging your Samsung Galaxy family phone... ever. Do not be misled by people who apparently believe in witchcraft and/or voodoo, like the OP, here.
 
:cry: por lo que entendi... no estaba tan perdido, lo que ellos llaman calibracion, yo lo llame estadistica... eso mato por completo mi proyecto, ni pex....:(
 
Atrás
Arriba