petoi-camp-logo.png
English
EN
English
EN
Chinese
ZH
  • Forum

  • Shop

  • More

    Use tab to navigate through the menu items.
    Phillip Brush
    2d

    On Definition Rule Issues

    3
    0
    Chris Jerome
    Feb 15, 2020

    Raspbery Pi DMP issue and general question

    5
    1
    Hanna Ovr
    Aug 02

    Pest Control Software

    1
    0
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    leukipp
    Jul 21, 2019
    Edited: Jul 30, 2019

    Web API to control Nybble - OpenCatWeb

    in Software

    Hi,


    I created a Web API to control your kitty from anywhere you want.


    You only need a working Nybble with NyBoard and a Raspberry Pi mounted on top.

    There is also a small sample web application included:


    virtual joystick and silder control

    Details can be found here: https://github.com/leukipp/OpenCatWeb

    If you have any questions about this, feel free to ask here.


    With the Web API you can add much more features with very little effort.

    There's more to come, stay tuned... ;)


    30 comments
    30 Comments
    John Doe
    Apr 04, 2020

    @leukipp how can I solve this? does this mean I need to change some settings or is there an automatic timeout after some time?

    Like
    D
    D_C_E
    Mar 13, 2021
    Replying to

    @John Doe Make sure the serial port and baud rate in ardSerial.py match those defined in the bus.py file.


    If you’re able to send commands to the Nybble with ardSerial, the web api should work too. I’m using dev/serial0 and a baud rate of 57600 as I’ve Nyboard 0_2.


    Also: I‘ve learned Pi’s have different serial settings — the 3A works out of the box with Nybble, but the 3B needs some configuration.

    Like

    leukipp
    Mar 15, 2020
    I can see the three icons in the upper left corner but just no reactions when I click on them unfortunately. Any ideas?

    This happens if there is no working serial communication between Raspberry Pi and NyBoard.

    Like

    John Doe
    Mar 02, 2020

    Hi! unfortunately the site does not respond on my browsers that I tried this. Disabled adblock, and anti-scripts as well, no results. I can see the three icons in the upper left corner but just no reactions when I click on them unfortunately. Any ideas?

    Like

    D L
    Aug 10, 2019

    Hi Rongzhong, Leukipp,


    I written some basic automation into the Raspberry Pi and find I've run into a really basic problem. There is no feed back/error codes as to if a command has completed successfully. I know that the Nybble.ino Arduino code does not support them, but they will more than likely be necessary for any serious attempt at autonomous operation.


    I was thinking for Postures, the final joint indices could be verified they match to the posture joint definition and for Gaits, there could be some bounds check for the ongoing joint indices with the Gait joint definition. It would be better to do this in the Arduino and use the command set to read a true/false condition if the command was in spec.


    What do you think from the separate Arduino and API perspectives?

    Best regards

    D L

    Like

    D L
    Aug 06, 2019

    Hi Leukipp,


    Great work on the API.


    I have extended the Flask code to include a route to read the battery voltage. It does need changes to Nybble.ino, app.py and bus.py, but neither are complex. Hopefully this will make it into the mainline code.


    The updates are at https://www.petoi.com/forum/hardware/reading-battery-and-rp-voltage-from-nybble-v0-2


    Best regards

    D L