Coder Social home page Coder Social logo

bipropellant-hoverboard-api's People

Contributors

alex-makarov avatar p-h-a-i-l avatar xenotrax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bipropellant-hoverboard-api's Issues

Adjust PID of speed and position control

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!

Reading is broken with the latest firmware

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.

GPIO

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?

ABout arduino

i can figure out how Im suppose t use the arduino with , There is some Howto somewhere ?

connections

hi
how can i connect arduino and mainboard. which port should i use in the mainboard?

Too much memory drained by Arduino library

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!

Turning Hoverboard on or off

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.

How to do - Arduino

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.
Diagrama1

Maybe I'm connecting the wrong Arduino? Maybe I have to modify something in firmware?
Thanks!

Arduino PWM example doesn't work for me

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.