改良版:ASCOM Canon Lens Controller Mark IIをワイヤレスで動かすスタンドアローンコントローラー

 


2022年に、M5Stackを用いた「ASCOM Canon Lens Controller Mark II」のスタンドアロンコントローラーを、ベルガモットさんに作成していただきました。さらに、ワイヤレス制御に対応したコントローラー(リモコン)も公開しました。

しかしながら、肝心のM5Stack Facesがディスコンとなってしまい、ワイヤレスコントローラーの新規作成が難しくなってしまいました。

そこで今回は、その改良版のご紹介に加え、これまで初心者にはやや難解だったソフトウェアのインストール方法についても解説します。

In 2022, Mt. Bergamot-san kindly developed a standalone controller for the “ASCOM Canon Lens Controller Mark II” using M5Stack. We also released a wireless version of the controller. However, the key component, M5Stack Faces, has since been discontinued, making it difficult to build new wireless controllers. In this article, we introduce an improved version of the system and provide a clear guide to the software installation process, which has previously been somewhat challenging for beginners.


送受信側のコントローラーとして使用するのは、M5Stack用のHMIモジュール(STM32F030)です。このモジュールには、本体左側に押し込みスイッチ付きのロータリーエンコーダと、2つの入力ボタンが搭載されており、M5Stack Facesのジョグダイヤルの代替として使用できます。また、リチウムイオンバッテリーも内蔵されています。

まず、M5Stack本体にHMIモジュールとボトムケースを取り付けます。その後、M3×20のスクリューでモジュールを固定します。

なお、ASCOM Canon Lens Controller Mark IIに接続するためのM5Stack(コントローラー側)も別途必要です。こちらについては、リンク先の記事をご参照ください。ソフトウェアのインストールは、本ページ下部に記載している簡易的な方法で行うことができます(コントローラーもリモコンも同じソフトウェアをインストールします)。

The controller used for both the transmitter and receiver is the HMI module (STM32F030) for M5Stack. This module features a rotary encoder with a push switch on the left side, along with two input buttons, allowing it to serve as a substitute for the jog dial of the M5Stack Faces. It also includes a built-in lithium-ion battery.

First, attach the HMI module and the bottom case to the M5Stack unit. Then secure the module using M3×20 screws.

Please note that a separate M5Stack unit is required to connect to the ASCOM Canon Lens Controller Mark II. For details, refer to the article here. The software can be installed using the simplified method described at the bottom of this page.



ここからはソフトウェアのインストールについて解説します。これまでは、初心者にはややハードルの高いフリーソフト「Arduino IDE」を使用し、ソースコードをコンパイルする必要がありました。

しかし今回は、「M5Burner」というソフトウェアを使用します。これを使えば、ソースコードからコンパイルすることなく、バイナリファイルをM5Stack本体へ直接書き込むことが可能です。

From here, we will walk through the software installation process. Previously, it was necessary to use a free application called the Arduino IDE, which can be somewhat challenging for beginners, to compile the source code.

This time, however, we will use software called M5Burner. With this tool, you can write binary files directly to the M5Stack device without compiling the source code yourself.


1)「M5Burner」をこちらからダウンロードし、インストールしてください。Windows / macOS / Linux 版が利用できます。


2)アプリケーションを起動したら、まずユーザー登録(無料)を行ってください。


3)ユーザー登録が完了したら、アプリに戻ってログインします。



<ここからは macOS 版をもとに解説します。Windows の場合は適宜読み替えてください>


4)M5Burnerアプリを起動します。


5)アプリ左側のメニューにある「USER CUSTOM」をクリックします。

6)「Share Burn」をクリックします。


7)組み立てた M5Stack+HMIモジュール一式を、USB Type-C ケーブルでPCに接続します(インターネット接続が必要です)。このとき、M5Stackは自動的に起動します。


8)COMポート一覧に、M5Stackが接続されているポートが表示されます。自動選択されない場合は、macOSでは「tty.usbserial-xxxxx」を選択してください。

9)「Share Code」に「CP379UIoH2R11D6v」と入力します(ver 2026/2)。

※バージョンアップした場合は、新しいコードで配布していただけるそうです!

10)右側の青いボタンをクリックし、数秒待てば書き込みは完了です。


1. Download and install “M5Burner” from the official website. Versions are available for Windows, macOS, and Linux.

2. Launch the application and complete the (free) user registration.

3. After registration, return to the app and log in.


<The following instructions are based on the macOS version. If you are using Windows, please adapt them accordingly.>

4. Launch the M5Burner application.

5. Click “USER CUSTOM” in the left-side menu.

6. Click “Share Burn.”

7. Connect the assembled M5Stack with the HMI module to your PC using a USB Type-C cable (an internet connection is required). The M5Stack will power on automatically.

8. The COM port connected to the M5Stack will appear in the list. If it is not selected automatically, choose “tty.usbserial-xxxxx” on macOS.

9. Enter “CP379UIoH2R11D6v” in the “Share Code” field. (ver. 2026/2).

Note: If the software is updated in the future, a new share code will be provided.

10. Click the blue button on the right and wait a few seconds—the writing process will complete.



使い方:



1)事前準備以前の記事を参考に、コントローラー側およびリモコン側それぞれのmicroSDカードを準備してください(lens.ini、canonlens.ini)。なお、リモコンのLEDカラー設定は不要です。

2)まず、ASCOM Canon Lens Controller Mark IIにコントローラー側のM5Stackを接続し、電源を入れます。

3)続いて、リモートコントロール用(HMIモジュール装着)のM5Stackの電源を入れます。

4)リモコン(またはコントローラー本体)のボタン操作で接続したレンズを選択し、SELキーを押して決定します。

5)リモコンのジョグダイヤルを回すことで、フォーカスを低速モード(1ステップ単位)で調整できます。

6)A・Bボタンで絞り値を変更できます。

7)リモコンに表示されるバッテリー残量は、コントローラー側のバッテリー状態を反映しています。

なお、従来どおり、リモコンがなくてもコントローラー単体で操作可能です。

How to Use:

  1. Preparation: Referring to the previous article, prepare microSD cards for both the controller and the remote unit (lens.ini and canonlens.ini). LED color settings on the remote are not required.

  2. First, connect the controller-side M5Stack to the ASCOM Canon Lens Controller Mark II and power it on.

  3. Next, turn on the M5Stack used as the remote control (with the HMI module attached).

  4. Using the buttons on the remote (or the controller), select the connected lens and press the SEL key to confirm.

  5. Rotate the jog dial on the remote to adjust the focus in low-speed mode (one step per increment).

  6. Use the A and B buttons to change the aperture value.

  7. The battery indicator shown on the remote reflects the battery status of the controller.

As before, the system can also be operated using only the controller without the remote.

コメント