bipropellant / bipropellant-hoverboard-api Goto Github PK
View Code? Open in Web Editor NEWC++ Wrapper around the hoverboard UART protocol. Arduino compatible.
License: MIT License
C++ Wrapper around the hoverboard UART protocol. Arduino compatible.
License: MIT License
What is the maximum value I can give that hoverboard.sendPWM?
Hi,
Is there any easy process I can follow in order to adjust PID constants for speed and position control?? In my application PIDs make my vehicle really unstable and oscillating
Thank you!
I use SOFTWARE_SERIAL_A2_A3 control type configuration for my control board:
#define CONTROL_TYPE SOFTWARE_SERIAL_A2_A3
What values should I set for SENSOR_BAUD, SENSOR_WORDS and SOFTWARE_SERIAL_BAUD?
I can't find that, is it possible? Or is there a way to implement that? After a while my hoverboard starts beeping if no one is driving, so i want to turn it off.
Hi,
I'm trying to use an Arduino NANO (ATMEGA328P MCU at 16MHz) in order to write PWM, speed and position commands onto the board using machine protocol. The problem is that when I try to compile Arduino code, dynamic memory goes up to 321%, making it impossible to fit into the MCU. Is there any buffer or something on the library that I could remove in order to save enough memory??
Thank you!
i can figure out how Im suppose t use the arduino with , There is some Howto somewhere ?
After updating to the latest firmware (the one with 'Breaking change for serial protocol') the API (and therefore protocol) only works in the direction "TO hoverboard". The data is being read FROM the hoverboard, but callbacks are never triggered -- looks like something is wrong with the parser.
Please your help my Esp8266 board can't connect to HB (not spin wheels) and read sensor data use sample script bipropellant-hoverboard-api, Im using online firmware (https://pionierland.de/hoverhack/ : bipropellant/bipropellant-hoverboard-firmware) not setting using default configuration.
hi
how can i connect arduino and mainboard. which port should i use in the mainboard?
Hello everyone!
I am trying to communicate with the hoverboard for the first time. I added the library to the Arduino IDE and compiled the readSpeed.ino code on an Arduino mega 1280.
However, I have no return from the board. Would anyone have a "how to do?"
I am using the firmware "https://github.com/bipropellant/bipropellant-hoverboard-firmware" without any modifications; I just downloaded, compiled, and uploaded it to the board. The process went without errors.
I'm trying to connect the Arduino to the ports shown in the image below, I tried on both sides, and I didn't have any success.
Maybe I'm connecting the wrong Arduino? Maybe I have to modify something in firmware?
Thanks!
Not sure if I am doing something wrong. The example here did not work for me starting the wheels via pwm https://github.com/bipropellant/bipropellant-hoverboard-api/blob/master/examples/PWMsimple
using ST-Link debugger, and in protocol_byte function, I can see that the message coming from Arduino is aligned and the first byte is PROTOCOL_SOM_NOACK, but the CI or the current index is always 0x90 and does not increment? s->curr_msg.len always gives 0x0a which I am expecting according to the following snipped of code:
ups.msgToHover.SOM = 4 ; // PROTOCOL_SOM; //Start of Message;
ups.msgToHover.len = 7; // payload + SC only
ups.msgToHover.cmd = 'W'; // PROTOCOL_CMD_WRITEVAL; // Write value
ups.msgToHover.code = 0x07; // speed data from params array
ups.msgToHover.base_pwm = base_pwm;
ups.msgToHover.steer = steer;
ups.msgToHover.CS = 0;
Here is the code I did change in the firmware, only config.h file :
#define CONTROL_TYPE USART2_CONTROLLED //
#define USART2PROTOCOLBAUD 115200
#define USART2_BAUD 115200
I did test the ASCII protocol and did work like a charm! The checksum of the machine protocol doesn't sum to 0 at all in machine_protocol.c if (s->CS != 0){
I am using ESP32 Wroom32 board. Thank you for yoru help!
EDIT: here is a dump of serial data coming out of arduino board with only addition of hoverboard.protocolTick();
03 04 C7 0A 57 - 0E 82 00 00 00 ....W .....
46 00 00 00 02 - 04 C8 0A 57 0E F.... ...W.
82 00 00 00 46 - 00 00 00 01 04 ....F .....
C9 0A 57 0E 82 - 00 00 00 46 00 ..W.. ...F.
00 00 00 04 CA - 0A 57 0E 82 00 ..... .W...
Please help example code for using PID Controller??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.