Powerboost 1000c Reading Data From Lbo Pin

Some other newbie question.

I desire to ship a signal to a raspberry pi zero simply I don't accept plenty "signal-ability"

I have a Adafruit Powerbooster 1000c. It basically takes power from a micro USB, a cellphone charger and charges a LiPo battery. Together with charger and LiPo bombardment information technology puts out 5v regardless if the charger is plugged in or not. When the bombardment is low the 1000c has a pivot (LBO) that changes to 0v.

What I want is to send a indicate to a Raspberry Pi when there is no power from the charger and the LBO is 0v.

I have used both Fritzing, which I know you all love, and gschem. I used Fritzing considering it has symbols for both the Powerbooster 1000c and the Raspberry Pi Goose egg. This results that the schema from Fritzing has all the parts. I used gschem because it can generate a netlist for simulating with ngspice, which is not possible with Fritzing, as far as I know.

More on Adafruit Powerbooster 1000c, all this is re-create-paste from Adafruit website: https://world wide web.adafruit.com/product/2465

PowerBoost 1000C is the perfect power supply for your portable project! With a built-in load-sharing battery charger excursion, you'll exist able to keep your power-hungry project running fifty-fifty while recharging the bombardment! This little DC/DC boost converter module tin be powered past any 3.7V LiIon/LiPoly battery, and convert the bombardment output to 5.2V DC for running your 5V projects.

Schema for 1000c https://learn.adafruit.com/assets/24638

Control Pins In that location's two 'control' pins.

  • EN - this is the 'enable' pin. Past default it is pulled 'high' to VS. To turn off the booster, connect this pin to ground. The switch can exist as small-scale as you similar, it is simply a signal. Contrast this to an inline power switch which would take to be able to handle upward to 2A of current! When the chip is disabled the output is completely disconnected from the input.
  • LBO - not a leveraged purchase out! this is the Low Battery Output. Past default it is pulled loftier to BAT but when the charger detects a low voltage (under iii.2V) the pin will drop downwardly to 0V. You tin can apply this to betoken when its time to shut down or alert the user that the battery is low. There is also a red LED connected to this pivot.

Some of you volition question the option of resistors and transistors. The selection is simply based on what I have at home. It makes it and then much easier to try my contraption on the breadboard if I accept all the components at home. If you feel that some of the components are very wrong, delight allow me know.

Hither are the two schematics. I tried to brand them look the aforementioned with components and comments at the aforementioned place.

Fritzing version gschem version

Since gschem does not have symbols/componentc for Adafruits Powerboost 1000c and the USB, I drew a box around them and added comments.

  • V_CHARGER represents the power from the cellphone charger.
  • V_LBO represents the power provided from boosters pin LBO.
  • V_BOOST represents the power from the bosters pin v.0V

In that location is a box for an adhoc logical OR gate. Since I but want the signal sent to the raspberry pi when both charger and battery are "out of service" an OR statement seamed the way to go. Since I don't accept an OR gate in the course of an IC at habitation – I congenital it similar this. Found an explanation at this site: https://www.electronics-tutorials.ws/logic/logic_3.html. I might have misunderstood the whole affair. Maybe, but non likely, the information on the site is wrong. Hopefully the hole OR gate I put together is OK and works.

There is another one box for a voltage divider. I wanted to accept approximately the same voltage from the charger and the LBO going in to the logical OR gate described in a higher place.

The problem, every bit I see it, is that the ability afterward the OR gate is not enough for the raspberry pi to recognize it every bit a Loftier. My get-go attempt was to take a relay. I but have 5v and 3v so that wont work with only 2v from the OR gate. I heard,read online, something about a transistor being able to work as an amplifier. Did not get that to piece of work. Failed to use the transistor every bit a switch and as a relay. For a very curt moment I taught most a pull-up resistor. I started reading about OP-AMP.

In a different, much simpler, projection I have this python lawmaking. This reacts to buttons, ie it goes from Low to HIGH.

          GPIO.setup([redButton, blueButton], GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.add_event_detect(redButton, GPIO.FALLING, handle, bouncetime=1500) GPIO.add_event_detect(blueButton, GPIO.FALLING, handle, bouncetime=1500)                  

In this project the raspberry pi will receive a constant Loftier and when at that place is no more power it will change to LOW. The code above will obviously need to exist change to react from High to Depression instead of Low to High.

I have tried to simulate with ngspice and no matter what I do I only get 3.1v at the most and 2.6v in worst instance scenario.

Since I'm sure I have missed information that you need or fabricated mistakes in my "design" I look a lot of criticism, but delight tell me what is wrong, why and how I can better.

I was hoping to upload gschem file and simulation results merely can't observe whatever way to do so.

vincentfivent.blogspot.com

Source: https://electronics.stackexchange.com/questions/470702/increase-signal-voltage-before-raspberry-pi

0 Response to "Powerboost 1000c Reading Data From Lbo Pin"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel