I saw a person making with UIFlow. Click here for the code.
https://github.com/jesuslg123/gopro-remote-stickC
- PhotoNo timer3 seconds timer10 seconds timer
- Video
- Timelapse
- Main buttonSingle press: Take picture or Start/End videoDouble press: Change submode
- Right buttonLong press: Connect to GoProSingle press: Next modeDouble press: Previous mode
M5StickC is based on EPS32, and can be used with Arduino, UIFlow, and so on.UIFlow is a type-oriented language in which functional blocks are arranged.I tried using it this time, so I introduced it, including the introduction method.
Although it is a remote control, if you decline it first, it is a troublesome thing that can not be compared with a genuine GoPro guy.
However, it is functionally sufficient, and it is likely to be remodeled, and it seems that future function additions are being considered, and in addition it is fun! So it is worth trying.
Why do you want a GoPro remote control?BetaFPV GoProLite BEC board issue.There is a design problem with that BEC board, and three surface-mounted connectors are connected in three dimensions with another board.
Since the precision of the board is different, it is easy to come off if there is distortion or impact.
Especially, the power button and the record button are on the BEC board, and it feels uncomfortable because the connector will be overloaded if you press it hard.
You have to understand it and click on it.
Well, it's smart and convenient, so it's convenient. I wondered if there could be any other countermeasure.
First of all, the standard JSH3 terminal of the power cable is too thin, and it seems that it can be pulled out easily, so I changed it to BT2.0 because it can be used in 2S.
The power supply was modified to auto start by shorting MODE and GND on the BEC board.
BetaFPV is recommended to take the REC button from the FC port, but it is inconvenient when using it for multiple aircraft. Then the operation started from the smartphone.But I can't do it if there isn't a person with a smartphone, so I wonder if there's any way.
By the way, I'm not recording, but I can't confirm.There is a GoPro genuine remote control, but only for that purpose.
So this is the solution here. Let's do it.
Here is a great explanation about the introduction of UIFlow
1. Burn UIFlow farm to M5StickC
https://m5stack.com/pages/download
It's called M5Burner, so bake. It is useless if there is no IDE and version to transfer the code later. Let's burn the latest 1.6.0 for now. Specify the COM port of the device when baking. You'll need a driver, but the CP2104 and VCP are familiar to drone guys, so they may be connected as they are. Also, don't forget your home WiFi SSID and password. It's a type that connects to the cloud like Obniz.
2. Burn the code from the browser version of UIFlow IDE
This time is 1.6.0, so I will use Beta.Connect using the API code displayed on the M5StickC screen.I'm loading "ESPRemote.m5f" downloaded from github, but it doesn't load properly because of some bug.I don't know, so I downloaded the desktop version.
https://m5stack.com/pages/download
I could read this. But the desktop version is 1.4.5. I don't agree with the version I baked earlier. It is possible to change the farm to 1.4.5.1, but this is likely to happen in the future, so a method to survive. Go to the desktop version of the python menu, copy the code and paste it into the browser version
It's a hassle, but now you can pour the code into the browser version.For python, I think there is a place to set the SSID and password near the end.
This is around functional blocks.
Enter the GoPro SSID and password you want to connect to. On the GoPro side, go to "Connect" -> "Connect New Device" -> "GoPro App". After that, if you press the play button in the upper right, the code is transferred to M5StickC and completed.
A brief explanation of the basic usage of M5StickC. There are three left side lower (A), upper M5 button (B), right side upper (C). Power on with A. Press and hold 6S to power off. Press briefly to reset. When you turn on the power while holding down the B button, the UIFlow menu will appear. Press the C button in this state to change the menu.
Let's specify this code in APPList. (temp.py)
This starts the remote control.
Next is how to use the app. Press and hold the C button to connect to GoPro WiFi. Please note that the current connection is not automatic. After connecting, click C button and long click to move. Press B to start/stop. Double-click the B button to change the mode. When the order passes, "200" will be returned.
Now let's check the moss. It seems that there is httpd in GoPro and it can be switched by sending a command there.
「http://10.5.5.9/gp/gpControl/command/mode?p=0」In video mode
「http://10.5.5.9/gp/gpControl/command/mode?p=1」In photo mode
「http://10.5.5.9/gp/gpControl/command/shutter?p=0」Stop
「http://10.5.5.9/gp/gpControl/command/shutter?p=1」Start
It is simpler than I thought, https://android.benigumo.com/20180116/gopro-hero6-wifi/
Something like this. Stream data seems to be pulled by ffmpeg. If you understand the contents, you can use it for other purposes. Like a browser. It will come out when you examine other commands.
@f__umi_
Comments