Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples version for non-arduino #5

Open
SalahuddinAsh opened this issue Apr 10, 2017 · 5 comments
Open

Examples version for non-arduino #5

SalahuddinAsh opened this issue Apr 10, 2017 · 5 comments

Comments

@SalahuddinAsh
Copy link

Hi,

could you please provide a version for the examples for non-arduino computers? I'm using ODroid-XU4 and I'd like to control the gimbal controller from there. Otherwise, could you please give hints how to do that myself?

Thanks in advance

@basecamelectronics
Copy link
Owner

Hi,
We do not have any other examples. You can start using our library in any device, all you need - to implement UART communication as it's done for Arduino. But the library gives only very basic definitions and commands, just to illustrate the principle. You still need to program most of the commands, listed in Serial API specification: https://www.basecamelectronics.com/serialapi/ by yourselves.

@Kumaron
Copy link

Kumaron commented Mar 28, 2019

Hi, SalahuddinAsh
Have you succeeded in implementing UART communicaiton in ODroid-XU4? Would you like to share the file about how to complement this? I tried to implement this in Ubuntu using ROS's serial package, but failed.
Thanks in advance.

@marklewis3000
Copy link

On Ubuntu/Linux, put the following into a file 'sbgcbeep.sh' and run it. It should make your controller beep a couple times. You will need a password to set permission on your serial port. Also you should check the dmesg command to determine which serial port the sbgc is attached to, and possibly modify it in this script. See the SBGC serial protocol document for further details.

#!/bin/bash

sbgcbeep.sh - send command to Simple Brushless Gimbal Controller (SBGC) to make it beep

author M.Lewis 2019-apr-8

SBGC_PORT=/dev/ttyUSB0
echo "Attempting to connect on port $SBGC_PORT"

sudo chmod 666 $SBGC_PORT
stty -F $SBGC_PORT 115200

START_BEEP="3e 59 0c 65 01 00 00 03 00 00 00 00 00 00 00 00 04"
STOP_BEEP="3e 59 0c 65 40 00 00 03 00 00 00 00 00 00 00 00 43"
echo $START_BEEP | xxd -r -p > $SBGC_PORT
sleep 1
echo $STOP_BEEP | xxd -r -p > $SBGC_PORT

@Kumaron
Copy link

Kumaron commented Apr 15, 2019

Hello, @marklewis3000.
Have you used the libraries to implement the control of SBGC in Ubuntu? Do you mind share it?

@marklewis3000
Copy link

@Kumaron sorry but I have not successfully been able to control the movement of an attached gimbal using the code in this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants