Skip to content

Instantly share code, notes, and snippets.

View devsaurus's full-sized avatar

Arnim Läuger devsaurus

View GitHub Profile
@devsaurus
devsaurus / 00_ReadMe.md
Last active November 15, 2016 01:32
Li-Ion Supply

#Several Li-Ion Power Supply Options A collection of Li-Ion power supply designs for embedded use.

##Protected vs non-protected Cells Li-Ion cells come in protected and non-protected variants. In general, protection is achieved by an additional circuit that is integrated into the battery cell. Most 18650 cells come as "Protected" so the core cell will be disconnected when the cell voltage falls below a certain threshold level (typically 2V5 to 3V0).

##Non-protected Cell Circuit It's based on an extended TP4056 application (datasheet) that is sold at many places. In addition to the TP4056, it includes a DW01-G (datasheet) protection circuit and a 8205A MOSFET (datasheet). This article on Instructables discusses the board in very detail: [ESP8266 - Li-Ion Battery rechargeable battery power solution](http://www.instructables.c

@devsaurus
devsaurus / ds18b20-async.lua
Last active February 19, 2017 13:57
DS18B20 on NodeMCU Lua
--------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- by @voborsky
--------------------------------------------------------------------------------
return({
pin=3,
sens={},
temp={},
@devsaurus
devsaurus / .gitignore
Last active May 15, 2020 07:29
Lua u8g2 integration with ffi
*~
build/
u8g2lib/
c-periphery/
u8g2_header.lua