3228

Multi-voice rocking stand

 
Overview

# Multi-voice shaker
**This is the first time to release an open source project. If there are any deficiencies, please point them out**

## Zero, I said in the front
***Accelerometer welding is difficult, please try this project with caution**

I thought I was the first to think of it, but when I was looking for information, I found that someone had done something similar in October 22.
However, the way to trigger the voice is different. The other party uses vibration trigger, so only one voice can be used. I use a three-axis accelerometer. In theory, multiple postures can be designed to trigger multiple voices. Here, only the simplest three situations are designed and used (such as the demonstration video).

## 1. Main hardware
> The hardware design refers to some of @licorice acid is not acid's design

### 1. The main control chip
uses an STC8G1K08 (A) as the main control chip (about 1 yuan), and select 22.1184MHz when downloading the program.

### 2. The voice chip
uses a CH8001 to store and play audio (about 3.5 yuan). After connecting the TYPE-C interface to the computer, the computer audio can be played.

### 3. The accelerometer
can use MPU6050 (about 4-8 yuan) or QMA6100P (about 2 yuan) as the acceleration IC, and the schematics, PCB and code have been prepared.
The MPU6050 was selected at the beginning of this project, but one starts at four yuan, and I don’t know if it was soldered badly or the cheap chips are not good. After soldering a few, there was either no data or abnormal data. Later, it was replaced with the cheaper QMA6100P.

## 2. Purchase of special materials
Main control chip: STC8G1K08
Voice chip: CH8001
Accelerometer: QMA6100P
Battery: 702025/300mA
Charging chip: LTC4054
Speaker: Φ20mm
Magnet: 15 * 1mm
6P Female header: 2 * 3P
Screw: M3 * 12
Nut: M3

> MPU6050 Since the test was not successful, no purchase link is provided

## 3. Program/voice download
**1. Program download **
> The default burning file provided is QMA6100P,
> If you want to use MPU6050, please modify the program by yourself. The relevant code of MPU6050 has been provided in the program.

Connect the computer to use STC-ISP to download:
+ Turn off the power switch
+ Turn the C port control switch to 340 gear
+ Select the MCU model in the software
+ Open project.hex in the Objects folder
+ Select the frequency as 22.1184 MHz
+ Click download and then turn on the power switch
![Snipaste_2023-03-31_23-55-55.png]
**2. Voice download**
+ Turn off the power switch
+ Turn the C port control switch to the 340 position
+ Turn on the power switch
+ Import the updated voice software provided in the attachment and click download directly
![Snipaste_2023-03-31_23-53-36.png] > You can import other voices you like, and try to add a serial number before the voice file name

**3. C port control switch description**
Turn the C port control switch to the 340 position:
TYPE-C will be connected to CH340N (USB to serial port), and
program download and voice download can be performed.

Turn the C port control switch to the 8001 position:
TYPE-C will be connected to CH8001 (voice IC), and
it can be used as a computer speaker when connected to the computer via TYPE-C, and can play computer audio

## IV. Installation Instructions
**0. About 3D Printed Model**
Due to the lack of experience in model design, the model is relatively simple and not perfectInstallation

process:
**1. Installation of the rocking machine**
①Use wires to lead out the four pads reserved on the bottom of the accelerometer PCB②Unscrew

the spring chassis③Glue

the accelerometer and push it in④Pass the wire

through the existing hole in the spring chassis and then through the 3D printed base, and then weld it with the 6P double-row female
> Short-circuit the two extra legs of the 6P double-row female, and connect the two legs of the corresponding male pins on the base in series or in parallel with the switch
> You can unplug the rocking machine to turn off the power, plug in the rocking machine to turn it on, which is power-saving and convenient⑤


A groove is reserved in the 3D printed base for sticking magnets

***

**2. Installation of the base**
> The base is divided into three parts, introduced from bottom to top①Put

the speaker in the white area at the

bottom②Put the motherboard in, and some wires can pass through the notch at the arrow③Put

the battery on top of the motherboard④Install

the pin header as shown⑤Put

the nut here
![Snipaste_2023-03-24_22-16-55.png]
⑥Put the screw here
![Snipaste_2023-03-24_22-17-18.png]
> If you don't want to buy screws, you can use hot melt glue

**3. Special instructions for welding**
![Snipaste_2023-04-04_14-01-50.png]
***
**Update record:**
March 30, 2023:
Problem: There may be problems with voice downloading and connecting to a computer for playback. A
bug-fixed version has been added, and the download switch function has been changed to C port control switch

March 31, 2023:
Problem: Conflict between voice downloading and program downloading.
A double switch has been added to switch between program and voice downloading

April 4, 2023:
Change the double switch switching download scheme to use solder pad tinning switching

***
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-18 19:36:36

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号