zSxW8Zv5LE

Real Electronic Erhu

 
Overview

Introduction:

 

This project is an electronic erhu implemented using the ESP32 module, which can be connected to the mobile phone GarageBand to play music on the mobile phone.

 

Q8SB4UwdBmEoqevRAuERKN3NST7XFjCmuZ6HneZp.png

 

Software schematic diagram:

 

The core components are 16 mechanical keyboard keys and an EC11 encoder. This is the complete schematic diagram for everyone to take a look at. It is relatively simple.

 

5SEYic8CEmXe21AKE7ZOILUGMdv1izhVF2JUIjo3.png

 

PCB design

 

In order to allow free prototyping on the platform, the entire piano was split into upper and lower parts during PCB design, and the size of each part was controlled within the free prototyping range. There are 16 buttons on the top, and the main control unit and 4 LED lights are on the bottom . An encoder and pin header are used in the middle to connect the upper and lower parts.

 

IU9hTFani8oPUoFGnatVYvh52ghCVJpmkXtEr3Zo.png

 

CMzP9mhduNFe2LYE1bQWA9uBhnizkIld6bK3qxi6.png

 

Component selection

 

It should be noted that a normal encoder will make a clicking sound when rotating, and it will also be accompanied by vibration. To solve this problem, we need to use tools to disassemble the encoder and remove the parts inside one by one.

 

ySswwDEsjRirNRLiW09FGmKc7rMAlJ0Q9TDg86ML.png

 

Find the innermost spring piece, use tweezers to press down the two spring pieces, then put all the parts back in order, and finally seal the encoder.

 

RoKnAHJ9d1VpvCsmWw7e4Wn4xdSShqUGTzEMeETX.png

Without the function of this spring, the encoder will be smoother when rotating.

 

The keys use red-axis mechanical keyboard keys. This axis has no sense of segmentation and makes almost no noise when pressed. It is very suitable for use on musical instruments.

 QmayFTNenQsPLzk0nOfhRBndgsSnt5uWWCtAwvSj.png

 

 

software design

 

Software source code address: https:github.com/ospanic/eerhu

 

 

L4sAg7Upici3Qj64ul3bSJVWfSiF47MvMf3GKpp0.png

 

In order to achieve better performance, the software of this project is written in C language. First, the MIDI protocol is implemented through Bluetooth to communicate with the mobile APP .

The buttons are used to control the frequency of the sound. Pressing different buttons will control the mobile phone to play notes of different frequencies through the Bluetooth MIDI protocol.

What is more creative is that the speed of the encoder here is used to control the volume of the sound. When it is not turning, the volume is zero. The faster it turns, the louder the sound. At the same time, the brightness of the LED light also changes according to the change of the volume.

 

 

 

fP7KwF4KfZFDnZhQqmnEv4gfIWPV9njWNlISEG2a.png

 

bow rope

 

Next, we also need a stick to make the erhu's bow. I just found a random branch here, smoothed the surface of the branch, and carved two grooves on both ends of it.

EyOgCCG7wMOUldQds3lsoA8M0nIch1Nk2uJeef3l.png

After the groove is carved, find a rope of suitable thickness and tie it to both ends of the stick. Be careful not to tie the rope too tightly, because we will wrap the rope around the encoder later.

 

lKsjtJTTErKdKghamIjJvHPLh0sUZM9DttDsJpvT.png

 

After everything is ready, tie the bow rope to the encoder. You can see that when the rope is pulled, the brightness of the LED light changes with the change of our pulling speed.

 

9sp6UtZ4q8WGsdx8p5Oyl80MEFdJ1lIpDuE4e56j.png

 

Equipment demonstration

 

Open the GarageBand APP on your phone, click Settings -> Advanced -> Bluetooth MIDI device to connect with our electronic erhu

 

WXdnMBRz5FV5BmCHCzbDqxcdd7NMCPBqssHnS0Bk.png

 

Search station B for "I am Teacher Peng" to watch more interesting electronic production videos.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 20:00:01

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号