# sakana rocking music voice base
![46a732d9a2c8dd91c9214a7d636a026.jpg]

This is a voice base designed for Takina and Chizuki rocking music. It plays the corresponding sound source after detecting vibration, and also supports connecting to Bluetooth to play music.
The right switch controls the power supply, and the left switch switches the sound source.
**Open source materials include:**
* Jiali Chuang EDA Professional Edition PCB file
* Jiali Chuang panel printing file
* Firmware source code
* Base structure 3D printing file
**Introduction video:**
[The most soulful Sakana shaker_哔哩哔哩_bilibili]( https://www.bilibili.com/video/BV1mG411g73e/?vd_source=60dad284889a1370fee3e178b4ee8f91)
## 1. Basic structure
![SW 泷奈.png]

**Because ESP32 generates serious heat when connected to Bluetooth to play music, the PCB is externally placed and connected to the printed part with four copper pillars, of which the two copper pillars close to Type C are connected to the battery, and the other two are connected to the speaker. In
addition to the battery, speaker, main control board, spring, and character stand, the other four are 3D printed parts, all of which are interference fit. **
![SW explosion view.png]

![88c0888f9b2bd0e38aee6afb1143de6.png]

## 2. Device selection
### General components
* **The main control is `ESP32-PICO-D4`, which is compact, powerful, and can work without peripheral components. The most important thing is that Bluetooth supports audio transmission. **
* **The charging is `TP4065`, a single-cell lithium battery charging chip with positive and reverse protection. **
* **The power amplifier is `MAX98357A`, which supports I2S and only needs to provide power, LRCLK, BCLK and digital audio signals to generate audio, which is suitable for single-cell lithium battery power supply scenarios. **
### Special devices
* **The vibration sensor selected is the ` BL2030` ball-type omnidirectional signal trigger switch from [Bai Ling Electronics](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dooROR1&id=546239839707&_u=l1r0amg7e40b). Because it has not been used before, the `MPU6050` is added as a backup. It is not actually used, so this part can be deleted. **
![BL2030.png]

* **The lithium battery I chose is `R40350V` [435mah 3.7 lithium battery](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dooROR1&id=605514079071&_u=l1r0amg718a5). The round size is just right. **
![Lithium battery.png]

* **The speaker I chose is [Huawei/Xiaomi mobile phone speaker](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dooROR1&id=37336311157&_u=l1r0amg7944f). This kind of speaker is small in size and has relatively better sound quality, provided that it has a good sound cavity. **
![speaker.png]

* **The copper column selected is [M2 double-pass copper column](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dooROR1&id=555117890802&_u=l1r0amg7df9a) length: 4mm, [M2 external copper column](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dooROR1&id=555079621364&_u=l1r0amg787ca) length: 3mm. It is recommended that you choose several lengths. [Screws](https://detail.tmall.com/item.htm?id=35486513697&spm=a1z09.2.0.0.1b942e8d1nCJeQ&_u=l1r0amg760aa&skuId=4876325601570)Choose brass material and buy several types with a length of 4-8mm. **
![Copper column.png]

* **For the character stand, you can choose [Jialichuang panel printing](https://dos.szlcsc.com/dos/panel/print.html?f=top), the print file is in the project, remember to note double-sided printing, [spring](https://item.taobao.com/item.htm?spm=a230r.1.14.6.52f166b3NA51fL&id=37480683627&ns=1&abbucket=8#detail) `Wire diameter: 1mm, diameter: 15mm, height: 40mm`. Of course, you can also buy a ready-made [shake](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dooROR1&id=681650903864&_u=l1r0amg7dbf4). **
![Panel print.png]

## 3. Project code
** Open source link: [sakana_base_firmware_github](https://github.com/HareGun/sakana_base_firmware)**