A first step to Raspberry Pi project
Project, TechArduino, Embedded, English, Python, Raspberry Pi
This was a first step to Raspberry Pi project done in last year.
https://github.com/kishima/RaspiMusicServer
RaspiMusicServer
This an music server on Raspeberry pi with Grovepi and Arduino.
The server plays music by mpc and can be controlled by either a joystick, a button or gesture. Audio volume can be changed by a slide bar.
Power supply is managed by Arduino with a button safely. We don’t need to take care of timing of turning on/off Raspi.
- GrovePi
- https://www.dexterindustries.com/grovepi/
- Grove – LCD RGB Backlight
- http://wiki.seeed.cc/Grove-LCD_RGB_Backlight/
- Grove – Button
- http://wiki.seeed.cc/Grove-Button/
- Grove – Slide Potentiometer
- http://wiki.seeed.cc/Grove-Slide_Potentiometer/
- Grove – Thumb Joystick
- http://wiki.seeed.cc/Grove-Thumb_Joystick/
- Grove – Gesture V1.0
- http://wiki.seeed.cc/Grove-Gesture_v1.0/
- Motion detection sensor
- https://www.amazon.co.jp/dp/B00HG82S9U/ref=cm_sw_r_tw_dp_x_tRURzb390VVFQ
Software
Arduino
Arduino controls power supply of Raspberry pi.
arduino/control_power.ino shall be loaded into Arduino.
Raspberry pi
- Communication with Arduino
“shutdown_check/shutdown_check.py” shall be run from /etc/rc.local by super user. -
Install mpd/mpc
-
Set a playlist as you want
-
Music server application
“audioserver/run.sh” shall be from cron by pi user. -
Connect either a speaker or a DAC.
I connected a USB DAC.
http://akizukidenshi.com/catalog/g/gK-05369/
Notification
- Power of the system is supplied by 5V DC. Maximum current should not be less than 2.5A since it will be applied for RasPi3, Arduino and peripherals.
Schematic
Following is schematic of the server.
PS
Today power supply function doesn’t work properly. I’m making an alternative server.
関連記事
直近の活動予定
直近の対外的な活動予定を記載しています。 今後のイベント 特になし (技術書、も ...
技術書典5振り返り~技術同人誌の書き方覚書~
技術書典5ご報告 技術書典5、弊サークル(Kishima Craft Works ...
子供向けの簡単なおもちゃを作る(ATTiny85のPWMで音を出す)
姪と甥に会いに行くのだけど、姪へのお土産はあるが、甥へのお土産がないので、作って ...
ESP32-WROVER-B のSPI-SRAMを試してみる
ついに8MBのSPI-SRAMを搭載した技適マーク付きのESP32-WROVER ...
技術書典5でmruby/c本を頒布します
そういえば、ブログの記事には起こしてなかったので、一応書いておきます。 mrub ...
FabGLとmruby-ESP32ボードの構想
(最新状況はこちら) 何気なくTwitterを見ていたら、気になるツイートを発見 ...
ディスカッション
コメント一覧
まだ、コメントがありません