2022年5月2日月曜日

#5 YMF825 Boardで遊ぶw この先にある山積みの問題点しかないw 本当にしんどいけど、こんなんみんなよーやるわw 天才だらけやなw

本当にみんな天才ばっかりなんで、もっと世の中なんとかなるのではないの?

しょぼい仕様の製品ばかっりなのは多分、ワザとやっているから、かなりのどSでしょw

絶対、ワザとショボ仕様にしてるよねw

本当はもっと凄いことできるけど能力一桁しか使っていないとか余裕でありそうw

ゲーム作るよりこっちの方がずっと楽だと思う。

ゲーム作れるなら相当凄い能力のハードも楽々だと思うわwゲームプログラマーとかトランスフォーマーみたいなものも作れそうw

 

 

・YMF825ボード物理ピン配線

https://www.denshi.club/parts/2021/04/raspberry-pi-pico-6.html

 
※TX=トランスファー(Out)、RX=レシーブ(In)
ピン構成は4〜7で1set^4 
 
  RST_N- Pin??(reset)
   SS   - Pin7=GP5 CS (chip select)
   MOSI - Pin5 =GP3、10、15 (serial data output)
   MISO - Pin6 =GP4、11、16 (serial data input)
   SCK  - Pin4 =GP2、9、14 (serial clock)
 

SS(chip select)とRST_N(reset)は?何ピン?

SS (chip select)=22Pin=GPIO25・・・・CSなら7ピンでいいか。

RST_N(reset)=36Pin=GPIO16・・・・???


http://7th-chord.jp/sara_tsukiyono/index.php?cl=rp&rp=200124

 

これがいいかもwいいの見つけたw

 

https://www.switch-science.com/catalog/7218/

 

  RST_N- Pin16=GP12(reset)
   SS   - Pin12=GP9 CS (chip select)
   MOSI - Pin5 =GP3、10、15 (serial data output)
   MISO - Pin6 =GP4、11、16 (serial data input)
   SCK  - Pin4 =GP2、9、14 (serial clock)

 

接続ピンはなんとかなりそうですかね。

 

 ・MIDI Breakout Board 物理ピン配線

説明書みたいなもの一切なしw

データーシートなし、配線もさっぱりわからないw

一応似ているが・・・

https://github.com/sparkfun/MIDI_Breakout

https://github.com/search?q=MIDI+Breakout


 これだけw

 何もないよりましなものを見つけた。

https://de.aliexpress.com/item/1005003953829918.html?spm=a2g0o.productlist.0.0.7b349278rVHmQM&algo_pvid=588a288a-6f61-4d58-8adb-0e39a36d3bb1&algo_exp_id=588a288a-6f61-4d58-8adb-0e39a36d3bb1-3&pdp_ext_f=%7B%22sku_id%22%3A%2212000027556081506%22%7D&pdp_npi=1%40dis%7CJPY%7C%7C574.0%7C%7C%7C%7C%7C%40210318c216514882367738572e43f6%7C12000027556081506%7Csea

 

1Pcs MIDI Shield Musical Breakout Board Instrument Digital Interface Adapter Plate For Compatible Arduino Adapter Board Module

Description: Through the MIDI adapter plate, your Arduino board or other microcontrollers can be accessed to powerful MIDI communication protocol. MIDI protocol and asynchronous serial interface has many similarities, so users can use the micro-controller UART pin to send MIDI event information. MIDI adapter plate provides MIDI - IN and MIDI - OUT connection, and MIDI THRU port. MIDI - port is light IN isolation, to prevent the ground loop. MIDI adapter plate can be installed directly like a shield at the top of the Arduino board: connect MIDI - IN/THRU to for Arduino hardware RX pin, connect MIDI - OUT to TX. It Arduino data and analog pin, power bus and the bus can transfer out. The RUN/PGM switch can let users on the forArduino board serial port programming, without having to remove the board. Note: the three hole MIDI connector no welding on the MIDI adapter plate, but these connectors included in this product. Size: 57.4 x 53.1mm

/* MIDI note player This sketch shows how to use the serial transmit pin (pin 1) to send MIDI note data. If this circuit is connected to a MIDI synth, it will play the notes F#-0 (0x1E) to F#-5 (0x5A) in sequence. The circuit: * digital in 1 connected to MIDI jack pin 5 * MIDI jack pin 2 connected to ground * MIDI jack pin 4 connected to +5V through 220-ohm resistor Attach a MIDI cable to the jack, then to a MIDI synth, and play music. */ void setup() { // Set MIDI baud rate: Serial.begin(31250); } void loop() { // play notes from F#-0 (0x1E) to F#-5 (0x5A): for (int note = 0x1E; note < 0x5A; note ++) { //Note on channel 1 (0x90), some note value (note), middle velocity (0x45): noteOn(0x90, note, 0x45); delay(100); //Note on channel 1 (0x90), some note value (note), silent velocity (0x00): noteOn(0x90, note, 0x00); delay(100); } } // plays a MIDI note. Doesn't check to see that // cmd is greater than 127, or that data values are less than 127: void noteOn(int cmd, int pitch, int velocity) { Serial.write(cmd); Serial.write(pitch); Serial.write(velocity); }

 

MIDI Breakout Board接続もまあ似たような感じかな? 

4セットあるからYMFとは別口で

  RST_N- Pin(reset)
   SS   - Pin(chip select) 
  MOSI - Pin =GP3、10、15
(serial data output) MISO - Pin =GP4、11、16 (serial data input) SCK - Pin =GP2、9、14 (serial clock)

 

橋渡しはプログラミングかな?そこも問題が多い・・・頭が痛いw

 

SparkFun MIDI Breakout のスルー付きのパクリっぽいのでそのまま全部使えると嬉しいw

ダメなら買い直しw

1880円損したw

まあ勉強代ですねw

 

 

・Cプログラミング

これはなんともならんw

最初はコピペに徹するw

徐々にゆっくり覚えていくしかないわw


ハードウェアは簡単に組めるが・・・プログラミングが頭が痛い問題w

 

できるのかな???

年間単位でボチボチ一つ一つ問題解決で頑張っていくかw

 

FMチップ+MidiのCコンロール制御系・・・

あと別にPicoでなくてもいいかもw

Arduino Uno Rev3 ATmega328 マイコンボードの方がいいのか?

なんでもいいけどピコの方が安かったのでw

 

 

ふー頭痛いわw継続して頑張れますよーに


0 件のコメント:

コメントを投稿

#201 絶対弾け〜る👍作曲でき〜るwシリーズ 気軽に学んで弾いて作ってみるw だらだらマラソン🏃シリーズ routine Practice 分析1曲目 Autumn Livers、Minor Blues(Impression、Mr.P.C、so what)💪リズムは筋トレ💪

ペンタに暗記は必要ありませんw PentaTonic With PentaTonic ペンタトニック上のペンタトニックが使えますw FペンタトニックならFペンタトーンへのシフトで使えばかっこよく聴こえます。 そうやって数珠繋ぎのようなペンタのペンタもまたOKで、一向にアウトして構...