Compare commits
5 Commits
a828f10d8b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bfe9076a3 | |||
| 7d8a9eafc8 | |||
| 55cb9177db | |||
| 128085056b | |||
| 9ea3f3c8f9 |
@@ -1,8 +1,10 @@
|
|||||||
# SmartCube
|
# SmartCube
|
||||||
|
|
||||||
**SmartCube** is a tiny and customizable desk toy using the ESP8266 D1 Mini.
|
is a compact, customizable desk companion powered by an ESP8266 microcontroller.
|
||||||
Built entirely from cheap, easy-to-find parts, it can connect to Wi-Fi and can be programmed to do just about anything:
|
Built entirely from cheap, easy-to-find parts, it can be programmed for a variety of tasks:
|
||||||
show notifications, display the weather, monitor stuff, show a clock, serve a web site, mine crypto, be a virtual pet or whatever else your caffeine-fueled brain can imagine.
|
show notifications, display the weather, monitor sensors, act as a clock, host a simple web page, serve as a WiFi extender, run small background tasks, or even be a virtual pet
|
||||||
|
|
||||||
|
Whatever you feel like experimenting with!
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
// Buttons and buzzer
|
// Buttons and buzzer
|
||||||
#define PIN_BTN_L 12 // D6
|
#define PIN_BTN_L 12 // D6
|
||||||
#define PIN_BTN_M 13 // D7
|
#define PIN_BTN_M 13 // D7
|
||||||
#define PIN_BTN_R 14 // D8
|
#define PIN_BTN_R 15 // D8
|
||||||
#define PIN_BUZZER 0 // D3
|
#define PIN_BUZZER 0 // D3
|
||||||
|
|
||||||
// Battery measurement
|
// Battery measurement
|
||||||
#define R1 220000.0 // 220k ohms
|
#define R1 220000.0 // 220k ohms
|
||||||
#define R2 56000.0 // 56k ohms
|
#define R2 56000.0 // 56k ohms
|
||||||
#define VOLTAGE_MAX 4.2 // Full battery voltage
|
#define VOLTAGE_MAX 4.1 // Full battery voltage
|
||||||
#define VOLTAGE_MIN 3.0 // Empty battery voltage
|
#define VOLTAGE_MIN 3.0 // Empty battery voltage
|
||||||
Reference in New Issue
Block a user