
Chinese: 
關注卡洛斯的都知道我製作不少真實樂器
那電子樂器又能不能做？
那自然有！很多廠商都有生產電子樂器
今天換個角度，看如何做電子樂器
我會嘗試用Arduino控制一些零件
製作電子樂器，希望大家喜歡
提醒一下，假如大家都喜歡風琴奇俠卡洛斯的頻道
請於右下角按訂閱
假如希望第一時間接到新影片的通知
請按叮噹

English: 
Those who follow Carlos know that I make a lot of real instruments
Can electronic musical instruments be made?
Naturally! Many manufacturers produce electronic musical instruments
Let’s look at how to make an electronic musical instrument from another angle today
I will try to control some parts with Arduino
Making electronic musical instruments, I hope you like it
Just a reminder, if everyone likes the channel of Carlos the OrganMan
Please click subscribe in the lower right corner
If you want to be notified of new videos as soon as possible
Please click the bell

English: 
Also welcome everyone to like and leave a message to ask questions
This is Hong Kong’s first pipe organ that can fold the foot keyboard
Has been tested
Talking about controlling electronic musical instruments with Arduino
Started to develop computer organs about ten years ago
At that time, it was necessary to make a pipe organ in school
The keyboard can be bought ready-made
But what about the keyboard?
So I bought Arduino and started to study programming
Later, I used woodworking to make a keyboard
Each foot key is equipped with a spring and a magnet
When the foot button is depressed, the magnet activates the reed tube
To trigger the Arduino program
Then program the Arduino to convert the messages into MIDI messages commonly used in electronic music

Chinese: 
亦歡迎大家按讚及留言發問
這是香港的第一部能摺疊腳鍵盤的管風琴
已經試驗完畢
談到用Arduino控電子樂器
始於約十年前開始研發電腦管風琴
當時的情況是需要在校內自製一部管風琴
鍵盤可以買現成的
但腳鍵盤怎辦？
於是購入Arduino開始研究編程
之後還用木工自製腳鍵盤
每一腳鍵都安裝了彈簧及磁鐵
當腳鍵被踩下，磁石啟動磁簧管
從而觸動Arduino程式
然後編程Arduino把訊息轉化為電子音樂常用的MIDI訊息

English: 
And then the organ software makes a sound
This move allowed me to successfully make many organs
Not only in churches in Hong Kong, Kowloon and the New Territories
Even Macau, and even the churches in the three places
I will also see Carlos’s pipe organ products
He became famous for a while and became "I am OrganMan"
Come back to discuss the technology of Arduino controlling MIDI
Basically through programming, Arduino can become an electronic musical instrument
Like here, buttons are added to the Arduino and connected to the virtual instrument of the computer
Became an electronic drum
Conversely use a computer programmer to output MIDI
Can also control Arduino to create new instruments

Chinese: 
再傳送而管風琴軟件發出聲音
這舉動讓我成功製作很多部管風琴
不單在港、九及新界的聖堂出現
甚至澳門，以至兩岸三地的聖堂
也會看到卡洛斯的管風琴產品
以至一時聲名大燥，成為了"I am OrganMan"
回來討論Arduino控制MIDI的技術
基本上通過編程，Arduino可以變成電子樂器
像這裡在Arduino加了按鈕，並連接電腦的虛擬樂器
便成了電子鼓
反過來用電腦程序器輸出MIDI
也可控制Arduino創造新樂器

English: 
Like this set of Arduino celestas designed and made by the students of Carlos
Exhibited at Maker Faire of Polytechnic University
Won praise from all walks of life
The teacher and classmates also played with the machine
Actually I really want to make electronic drums
What I call electronic drums is not this
This is just a set of electronic drum pads
Make a sound when you tap
I want to use a set of real drums with electromagnets to play
But in retrospect, a very large electromagnet is needed to play a real drum
Imagine that when you step on the bass drum, how hard will your thighs be?
I can't find such a big magnet

Chinese: 
像這套卡洛斯的學生一同設計製作的Arduino鋼片琴
曾經於理工大學Maker Faire展出
獲各界好評
老師和同學也和機器一起演奏起來
其實我很想做電子鼓
我所謂的電子鼓不是這種
這不過是一套電子鼓墊
敲擊便會發出聲音
我是想用一套真鼓，配合電磁鐵來敲響
但回想，要敲響真鼓便要用很大的電磁鐵
想像平常你踩低音鼓，大腿要多用力？
我找不到這樣大的磁鐵

Chinese: 
那我現在只想用這磁鐵打敲電子鼓墊
無論DIY什麼，支架不能少
你也不會想成品很容易毁壞
於是我準備了木皮，把淘回來的電子鼓墊放在上面
之後鑽四孔安裝鋁型材成為支架承托電磁鐵
木板底部插入M4螺絲，上面擰入鋁型材專用的T型絲母
這T型絲母可算偉大發明
擰入少許，先卡進鋁型材中間的坑
之後旋轉螺絲，T型絲母便會旋轉90度，咬緊鋁型材

English: 
Then I just want to use this magnet to hit the electronic drum pad
No matter what you DIY, there must be no less brackets
You don’t think the finished product is easily destroyed
So I prepared the veneer and put the electronic drum pads on it
Then drill four holes to install the aluminum profile to become the support electromagnet
Insert M4 screws at the bottom of the board, and screw the T-type nut for aluminum profiles on it
This T-shaped nut is a great invention
Screw in a little bit, and get into the hole in the middle of the aluminum profile first
After rotating the screw, the T-type nut will rotate 90 degrees to bite the aluminum profile

English: 
Above the aluminum profile, use the same method to install 6mm acrylic film
The bracket design is roughly like this
Tighten all screws afterwards
As mentioned before, the T nut will be driven to rotate 90 degrees when the screw is screwed in
It will bite the aluminum profile
If you use ordinary silk mother, you have to enter from the head or tail
Too much trouble
Then I mark each drum pad on the film
Then drill holes in the mark
In order to avoid drilling the drum pad, I used a piece of waste material to pad it
This electronic drum has nine pads

Chinese: 
鋁型材的上方，用同法安裝6mm亞加力膠片
支架設計大致如此
之後收緊所有螺絲
如前所述，擰入螺絲時T型絲母便會被帶動旋轉90度
它便會咬緊鋁型材
若採用普通絲母，便要由頭或尾進入
實在太麻煩
之後我在膠片上，對著每個鼓墊做記號
然後在記號鑽孔
為免鑽破鼓墊，用了一塊廢料墊一下
這電子鼓有九塊鼓墊

English: 
I quickly drilled nine holes
Put in the 12V electromagnet that was scoured before to align
The most important thing is to test whether the electromagnet can hit the drum pad
It can be pressed, bounced back, and sounded, indicating no problem
Later, how to install the electromagnet
It’s 3D printing again, so I design accessories
There are screw holes for installing iron and fixing to the film
After printing, the electromagnet is smoothly inserted, and the screw holes are also very accurate
Like metal parts such as stepping motors, machine screws are required

Chinese: 
很快的我鑽了九個孔
之前放入淘回來的12V電磁鐵來對位
最重要是試電磁鐵能否敲擊鼓墊
能按下，又能彈回，又能敲響，表示沒問題
之後要想如何安裝電磁鐵
又是3D打印時候，於是設計配件
上面留了安裝鐵鐵及安裝至膠片的螺絲孔位
打印後，順利套入電磁鐵，螺絲孔也十分準確
和步進馬達等金屬件一樣，要用機牙螺絲

Chinese: 
安裝至膠片要先打記號，鑽孔
鑽孔後兩個方法
其一是用機牙螺絲配絲母
其二是鑽小一點的孔，用鋼牙螺絲
鋼牙螺絲在擰進時，會在膠片內側攻牙
由於膠片已安裝好，在下面加絲母比較難
因此我用第二方法
其他的電磁鐵也用同法固定
最麻煩是接線
因為這些線不像PCB整齊
根據以往經驗，將就用著接線夾
但接線夾其實不穩固
萬一鬆了，除錯過程很麻煩

English: 
Mark and drill holes for installation to the film
Two methods after drilling
One is to match the nut with machine screw
The second is to drill a smaller hole and use a steel screw
When the steel screw is screwed in, it will tap the inside of the film
Since the film has been installed, it is more difficult to add silk mother underneath
So I use the second method
Other electromagnets are also fixed in the same way
The most troublesome is wiring
Because these lines are not neat like PCB
Based on past experience, the terminal clamp will be used
But the terminal clamp is actually not stable
In case it gets loose, the debugging process is very troublesome

English: 
Since I have experience in making Arduino celesta
Use the same expansion board, plug in Arduino Mega2560
The output of Mega2560 is connected to the 5V-12V driver board
With a little program modification, it has been able to drive
How to convert computer Midi output to Arduiun USB input?
Then I will have time, and then film the film to discuss
As for the notes, it’s never processed by Arduino
Some friends use computer language and write notes one by one to make computer music
Really waste time
For musicians, the easiest way is to use the programmer to input notes
As for the Midi message output by the programmer, how to turn it into electromagnet action
It’s handed over to Arduino for processing, this is the real way to play electronic music
When the snare drum works, it’s close to success

Chinese: 
由於我有做Arduino鋼片琴經驗
用了相同擴展板，插上Arduino Mega2560
而Mega2560的輸出，則接至5V-12V的驅動板
配合少許程式修改，已能驅動
那電腦Midi輸出，如何轉變成Arduiun USB輸入呢？
那要將來有時間，再拍片詳談
至於音符方面，從來不是用Arduino處理
有些朋友用電腦語言，逐個音符編寫來做電腦樂
實在浪廢時間
對於音樂人來說，最簡單是用程序器來輸入音符
至於程序器輸出的Midi訊息，如何變成電磁鐵動作
才交給Arduino處理，這才是電子音樂的真正玩法
當小鼓能運作，已經接近成功

Chinese: 
剩下的是剛才談及的接線工序
上次的鋼片琴接了32組線
今次九個鼓墊，只需接九組
剛才提及接線夾不可靠
要接得好通常要焊錫
再套上熱縮管
最近卻讓我找到一舉兩得的方案
就是這種新的熱縮管
它中間已有一點錫
只要有一把強力熱風槍
便可把焊錫及熱縮一次處理
熱風槍跟風筒不同，有很多配件
今次用了一個窄的出風口
把溫度調到350度左右
便可熔錫及熱縮

English: 
The rest is the wiring process just mentioned
Last time the celesta was connected to 32 sets of lines
This time there are nine pads, only nine sets
Just mentioned that the wiring clamp is not reliable
To be well connected, usually solder
Put on the heat shrink tube
Recently, I found a solution to kill two birds with one stone
Is this new heat shrinkable tube
There is a little tin in it
As long as there is a powerful heat gun
You can process solder and heat shrink at once
The heat gun is different from the hair dryer and has many accessories
I used a narrow air outlet this time
Adjust the temperature to about 350 degrees
Can melt tin and heat shrink

Chinese: 
熱風槍還有其他用途
例如加熱除去殘餘的熱熔膠
所以家裡應有一把
正常的剪線及開線
先把熱縮管套進其中一線
把兩線的鋼線互相纒起
之後把熱縮管的接點部份移到銅線位置
使用熱風槍吹風
一邊吹熱風，會看到焊點熔化及滲入接點
兩邊的膠管亦收縮抓緊電線外皮
這過程做得好，強度很高，更可防水
電線延長了，便可收緊至驅動板

English: 
There are other uses for the heat gun
Such as heating to remove residual hot melt adhesive
So there should be one at home
Normal trimming and opening
First put the heat shrinkable tube into one of the lines
Twist the two steel wires together
Then move the contact part of the heat shrinkable tube to the copper wire position
Use a heat gun to blow
While blowing hot air, you will see the solder joints melt and penetrate into the joints
The hoses on both sides also shrink and grasp the wire sheath
The process is well done, the strength is high, and it is waterproof
When the wire is extended, it can be tightened to the drive board

English: 
The driver board is controlled by Arduino
So after all
5V appears on the Arduino pin
It is converted to 12V through the driver board
There is enough voltage to drive the electromagnet
Prepare computer, connect USB to Arduino
Open a programmer
Friends who know Midi know that percussion should be channel 10
The Midi output port is of course the Arduino being used
It's the same as normal writing Midi music, use Step Write to input
Test the performance after programming

Chinese: 
而驅動板則受Arduino控制
因此接及所有之後
Arduino腳位出現5V
經過驅動板便轉換成12V
有足夠電壓推動電磁鐵
準備電腦，USB連至Arduino
隨便開一個程序器
認識Midi的朋友，便知道敲擊樂應選channel 10
Midi output port當然是選正在用的Arduino
和正常寫Midi音樂一般，用Step Write輸入
編程好便可測試演奏

Chinese: 
真的不錯，很好玩
但現在的Pattern只用了Hihat, 小鼓及低音鼓
其他中鼓及鈸都沒用，讓我編一個drum fill
我全用了三個中鼓及鈸
自己那輸入得這許多
嘗試下載一些節奏
下載了一個8 beat drum pattern，演奏吧！
16 beat drum pattern

English: 
Really good and fun
But now Pattern only uses Hihat, snare drum and bass drum
Other middle drums and cymbals are useless, let me make a drum fill
I used all three middle drums and cymbals
I have so much input
Try to download some rhythm
I downloaded an 8 beat drum pattern, play it!
16 beat drum pattern

Chinese: 
利害！
這用電腦控Midi習作做了差不多一年
好眼光的看到節目開始穿長裡，現在穿短袖
即由2019做到2020，橫跨疫情
卡洛斯從未試過這麼久才完成project
這個相對以前的project一點不複雜
但在疫情期間，買不到電磁情
鼓墊曾壞，驅動板最初不夠電流，曾經換過
到了接線又找不到合適的接線柱
最後才找到好用的熱縮管

English: 
At stake!
This has been done with computer-controlled Midi exercises for almost a year
With a good eye, I saw the show began to wear long sleeves, now I wear short sleeve
That is, from 2019 to 2020, across the epidemic
Carlos has never tried so long to complete the project
Compared with the previous project, this is not complicated at all
But during the epidemic, electromagnetic information cannot be bought
The drum pad was broken, the drive board was not current enough at first, and it was changed
When it comes to wiring, I can’t find a suitable terminal
Finally found a useful heat shrinkable tube

English: 
Finally, the project can be completed
It doesn’t matter, the most important thing is that everyone likes it
Carlos hopes that computers can be used to control multiple instruments in the future
My dream is to form the Midi big band
Hope everyone likes today’s video, don’t forget to like and comment

Chinese: 
最後才能完滿結朿project
也不要緊，最重要大家喜歡
卡洛斯希望將來可用電腦控制多種樂器
我的理想是組成Midi大樂隊
希望大家喜歡今天影片，千萬別忘了加讚及評語
