KiCad Design files for the Smart Sensor Battery Pack project
Loading README and project media…
This is the experimental battery charging PCB designed for my YouTube video. You can see the full build process, design theory, and assembly in the video below:
This board is currently missing a pull up resistor on the SCL/SDA lines - I will be adding this very soon. Software correction is possible using the XIAO pull-ups, and closing the FET early in the boot cycle. So using the board in its current form just makes the code a little more verbose.
# Force GPIO18 LOW (Turns P-Channel MOSFET on)
# Set priority such that this runs before i2c initialises
esphome:
on_boot:
- priority: 1200
then:
- lambda: |-
gpio_config_t io_conf = {};
io_conf.pin_bit_mask = (1ULL<<18);
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pull_up_en = GPIO_PULLUP_DISABLE;
io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_conf.intr_type = GPIO_INTR_DISABLE;
gpio_config(&io_conf);
gpio_set_level(GPIO_NUM_18, 0);
# Software accessible pullups
i2c:
sda_pullup_enabled: true
scl_pullup_enabled: true
This board involves Lithium-Ion battery charging.
This project is shared under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.
These files are provided "As Is" for educational purposes ONLY. I am sharing my personal project notes. I accept no liability for any damage, injury, or loss that occurs from the use or assembly of these files. Use them at your own risk.