# sadwinner **Repository Path**: chenyananee/sadwinner ## Basic Information - **Project Name**: sadwinner - **Description**: 基于ESP32-WROVER的Iot项目。 主要功能参见README.md - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-11-02 - **Last Updated**: 2022-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: IOT, ESP32 ## README # Sadwinner ## Arch ``` ./ ├── LICENSE ├── README.md ├── app │ ├── Android │ ├── cloud │ ├── pc │ └── wechat ├── doc │ └── esp32 ├── fw │ └── esp32 └── hw └── PCB_Project_SadWinner ├── PCB_Project_SadWinner.PrjPcb ├── PCB_Project_SadWinner.PrjPcbStructure ├── esp32.SchDoc └── sadwinner.PcbDoc ``` ## Video Link [click me](this is link) ## Major resources 1. TOUCH Sensor (a touch pad button) 2. ADC (power of battery) 3. Led (a pwoer led and a programing led with ws2812) 4. Display with epaper and oled(spi) 5. Button (x2)(share pin(boot0,boot1) 6. WIFI 7. BLE 8. Terminal and flash with uart 9. Master or slaver device with uart 10. SD card 11. IMU (MPU-6050) 12. Temp & HUM ## Major functions 1. config the net information with ternminal (todo) 2. display the temp or hum information with oled and epaper (todo) 3. push the device information to cloud (todo) 4. config the net information with wechat (todo) 5. config the device information with cellphone(ble) (todo) 6. ebook like kindle (todo) 7. power minitor (todo) 8. auto display (todo) ## if you want to build the system and run, the below infomation maybe is useful. ### **all operation under the linux 1. wsl (recommend) 2. linux machine 3. virtual machine ### Clone the Repository (*just for linux) ~~~sh git clone https://gitee.com/chenyananee/sadwinner.git cd sadwinner/fw/esp32 /* you can build the fw! */ ~~~ ### Build ESP-FW and Run (*just for linux) You can build the system with shell script or makefile. (makefile is easy to use) port config: ``` opt.ini: [COM] FLASH_PORT = ttyS3 //port for your serial FLASH_BAUD = 921600 //baud for flash ``` ``` !!!!!!!!!!(irreversible) espefuse.py -p /dev/ttyS3 set_flash_voltage 3.3V use the gpio for sd card. ``` (1) shell 1. install the esp-idf(version 4.4) 2. ```sh cd sadwinner git submodule init git submodule update ``` 3. ```sh cd sadwinner/fw/esp32 ``` 4. ```sh ./build-esp32.sh ``` 5. ```sh ./run-esp32.sh ``` (2) makefile(call the script with makefile) ```sh make espbuild/* build project */ make esprebuild /* clean and rebuild the porject*/ make espclean /* clean the project(just remove build dir) */ make esprun /* download the fw to the hardware and monitor*/ make meunconfig /* menuconfig with esp-project.mk */ ```