LoginSignup
0
0

More than 1 year has passed since last update.

【備忘】DuinoCoin(Host:RPi, Client:Arduino D1)のセットアップ

Last updated at Posted at 2022-04-24

目的

Arduinoなどのマイコンでも採掘が可能であるDuinoCoinをRPiをホストとしてArduinoで掘っていきたい。
(なお、使用するArduino D1 は ESP8266 を使用しているため単体でネットワークに接続できるが、回線の圧迫を避けたいという理由から試しにホストを用意する)

使用物品

セットアップ

プログラムの参照先: https://github.com/revoxhere/duino-coin

手順

  1. モノを買う
  2. 使用するArduinoにマイニングプログラムをインストールする
  3. Raspberry Pi OS をインストール
    1. インストールしたあと、boot以下にあるconfig.txtを編集してディスプレイの設定を合わせる
      hdmi_group=2
      hdmi_mode=1
    2. 起動してbluetooth接続してキーボードをUS配列に設定
      参考:https://www7390uo.sakura.ne.jp/wordpress/archives/180
    3. 運用時にディスプレイにいい感じに表示するために色々インストール
      sudo apt update -y && sudo apt upgrade -y
      sudo apt install git vim tmux python3 python3-pip
    4. .bashrcに設定を書き加える
      参考:https://qiita.com/kiwi-bird/items/7f1a77faf6b0ab0df571
         https://qiita.com/gotchane/items/77dc650084d0d4efa5be
  4. Raspberry Pi 上にプログラムをcloneする
  5. AVR_Miner.pyPC_Miner.pyをtmuxのいい感じのペインで実行する

その他情報

  • セルフパワーのUSBハブを使う
    • RPiの電力事情的にArduinoを4台以上バスパワーで動かすのは無理
  • ESP8266は処理能力がかなり高いので普通にgithubにある8266用のプログラムの方がいいかも
    • 回線圧迫はRPiを有線接続にしてcreate_apを使うとかでもありかも?
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0