Code Examples

From STorM32-BGC Wiki
Jump to navigation Jump to search

This pages provides links to some codes written by users or the firmware author, which may serve as examples.

Serial Communication

C

A relatively general C library for handling Serial RC commands is available here:

https://github.com/olliw42/storm32bgc/tree/master/c-library

Arduino Sketches

User Sitas has posted an example sketch for Arduino using Serial RC command messages here:

https://www.rcgroups.com/forums/showpost.php?p=45870749&postcount=1902

User digaus has posted an example sketch for Arduino using MAVLink messages here:

https://www.rcgroups.com/forums/showpost.php?p=39747588&postcount=11025
(old version: http://www.rcgroups.com/forums/showpost.php?p=34912538&postcount=8213)

Python

A basic Python library for handling Serial RC commands is available here:

https://github.com/olliw42/storm32bgc/tree/master/py-library

User Brandon12 has posted a quite extensive Python script using Serial RC commands here:

(07/19/2018)
Version 1.0: https://www.rcgroups.com/forums/showpost.php?p=39960758&postcount=11106

NT Camera

Arduino Sketches

User maciek252 has posted a working sketch for Arduino for controlling a Sony Nex with an IR Led. The Arduino is connected to a serial interface and can be used with the “CAMRemote UART” (recommended) or “Serial Api” camera models:

https://www.rcgroups.com/forums/showthread.php?2838548-T-STorM32-The-best-STorM32-ever-%21/page42&perpage=50#post47033629

User maciek252 has also posted a working sketch for Arduino to control a GoPro Hero camera via BLE (i.e, not wifi!):

https://www.rcgroups.com/forums/showpost.php?p=47216869&postcount=13385

ESP32 for GoPro Hero

Arduino sketches and C files (and other relevant material) for operating a GoPro Hero camera via wifi using an ESP32 are vailable here:

https://github.com/olliw42/goprohero