Hi. I have a project that I am working on and I looked up all the information I could find regarding how to run a Teensy on a battery but also having it run on USB power when available. I will be committing the design to having a PCB made so I would appreciate some feedback to be sure I have this right.
Here is my plan...
Since I will be using a battery, I will be cutting the USB-to-VIN jumper. The battery (3.7v lipo) will be coming coming into a switch, the output of which is "+3v3B" and will be used to power everything, including the Teensy buy connecting +3v3B to VBAT. The battery will also connect directly into the battery charger circuit (MCP73831). The Vdd input to the charger chip will be from the VUSB pin on the Teensy. There will be no connection to VIN.
So I think that's it. Your comments are appreciated.
FYI, about the project. It is a nifty little pocket pressure monitor. My company and a few of our collaborating companies regularly need to precisely measure pressures and vacuums, from fractions of a PSI up to about 5 PSI. The circuit connects three Honeywell differential pressure transducers to the Teensy 3.2 and uses the appropriate one depending on the pressure/vacuum level being read. When connected via USB, there is a companion program that takes the data stream and plots and logs the data. The module also has a battery and a 16x2 LCD display so it can read pressure and vacuum without the computer if necessary. I'm happy to share the design when I know it works.
Bob
Here is my plan...
Since I will be using a battery, I will be cutting the USB-to-VIN jumper. The battery (3.7v lipo) will be coming coming into a switch, the output of which is "+3v3B" and will be used to power everything, including the Teensy buy connecting +3v3B to VBAT. The battery will also connect directly into the battery charger circuit (MCP73831). The Vdd input to the charger chip will be from the VUSB pin on the Teensy. There will be no connection to VIN.
So I think that's it. Your comments are appreciated.
FYI, about the project. It is a nifty little pocket pressure monitor. My company and a few of our collaborating companies regularly need to precisely measure pressures and vacuums, from fractions of a PSI up to about 5 PSI. The circuit connects three Honeywell differential pressure transducers to the Teensy 3.2 and uses the appropriate one depending on the pressure/vacuum level being read. When connected via USB, there is a companion program that takes the data stream and plots and logs the data. The module also has a battery and a 16x2 LCD display so it can read pressure and vacuum without the computer if necessary. I'm happy to share the design when I know it works.
Bob