TSoC CY8C4146LQI-S433 4-Voice Orgel (四声のオルゴール)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

with_violin.jpg

TSoC に使用されている CY8C4146LQI-S433 では PWM が4つ使えるので、

4声のオルゴールに挑戦してみました。

As we can use 4 PWMs with the CY8C4146LQI-S433 used for TSoC,

I made a mistake to try an orgel of 4 voices.

schematic

002-schematic-psoc.JPG

External Connection(s)

000-schematic.JPG

Pin Assignments

001-Pin-List.JPG

プログラムを起動すると、シリアルターミナル上に現在登録されている曲が表示され,

プロンプトが表示されます。

help と入力すれば、簡単な命令一覧が表示されます。

list と入力すれば、登録されている曲の一覧が表示されます。

led on 又は led off と入力すると TSoC 基板上のユーザー LED がオン・オフします。

note [number] と入力すれば、その番号の音が一秒間だけ発音されます。

play [number] と入力すれば、その番号の曲が演奏されます。

現在は

1声のサンプル: ヴァイオリンパルティータ 2番のギーグ

2声のサンプル: グリーンスリーブス

4声のサンプル: 調和の霊感 8番より アレグロ

が登録されています。

When started, the program shows registered tunes and displays a prompt.

Avilable commands are

help: show a simple help message

list: show list of tunes registered

led [on/off]: to test the communication turn on/off the user LED on the TSoC Board.

note [number]: play specified note for 1 sec.

play [number]: play the tune registered at the number.

Currently

1 voice: Gigue from BWV 1004 (J.S.Bach)

2 voice: Green Sleeve (Anonymous)

4 voice: Allegro from No.8 in A minor from L'Estro Armonico op.3 (Antonio Vivaldi)

are included.

004-Play-1.JPG

プログラム自体は5月の頭には出来ていましたが、出来心でヴィヴァルディ入れたのが運の尽きで入力に今日まで掛かってしまいました。orz

音はざっとは確認しましたが、まだまだ怪しい音が随所に見受けられますが、サンプルということでご容赦ください。 m(_ _)m

Although the program was done around the beginning of May, entering the score, especially vivaldi took me this long orz.

I listened them once or twice, there may (must) be wrong notes here and there, but please ignore them as this is a "sample" 😜

moto

4 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Motoo,

Thank you for posting the project. Can you share some YouTube video of the TSoC playing this music?

/odissey1

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Odissey1-san,

That's a good idea, but I've never uploaded videos to YouTube, I'll ask my colleague next week 😉

Best Regards,

12-Jul-2019

Motoo Tanaka

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Odissey1-san,

I just tried to take a movie for the tunes.

I realized that a movie of an MCU playing a tune is not

something very interesting as it has no moving part 😜

オデッセイさん、とりあえずムービーを撮ってみました。

しかしマイコンが音楽を演奏しているところって

何も動かないのであまり面白いものではないですね。

Meantime, I encountered technical difficulty!

Within 10 seconds or so after the PSoC started playing,

my cat gets so excited and she can not help meowing

and scratching and/or biting me. (;_;) (<- Japanese Crying Face Mark)

しかし、予期していなかった困難が待ち受けていました!

PSoC が曲を演奏しはじめると、10秒くらいで

私の猫が興奮してきて、ミャ〜ミャ〜鳴くは、ひっかくは、噛付くは・・・ (;_;)

So around 10~20 sec for each was all I could take。

I was planning to take about that long, so may be ok.

Note the meowing sound around the end is not from PSoC.

という訳で、どの曲も最初の10~20 秒でカットとなっています。

動画だと大きくなりすぎますので、元々そのくらいの長さにしようとは

考えていたので、問題ないかも知れません。

※ 各動画の最後の方に入っている「ミャ〜」は PSoC が発しているものではありません。

Chorus: Rino / 合唱: 梨乃

rino_190716_2S.JPG

Best Regards,

12-Jul-2019

Motoo Tanaka

0 Likes

Motoo,

Thank you for videos. You may include cat to the chorus. YouTube videos with cats are very popular.

/odissey1

0 Likes