petoi-camp-logo.png
Chinese
ZH
Chinese
ZH
English
EN
  • 主页

  • 论坛

  • Shop

  • 简介

  • 图鉴

  • 资源

    • Documentation Center
    • GitHub 源代码
    • 教程视频
    • NyBoard V0_1 手册
    • NyBoard V0_2 手册
    • Smartphone App
    • GitHub/CatMini
  • 社区

    • 成员
  • More

    Use tab to navigate through the menu items.
    Hanna Ovr
    8月02日

    Pest Control Software

    2
    0
    Rafael Marín
    -3 j

    Error moving joints simultaneously in Mobile app

    5
    0
    Tomi Ade
    -6 j

    Trouble Uploading to Nyboard - stk500_recv(): programmer is not responding

    3
    0
    若要查看作用方式,請前往您的即時網站。
    • 類別
    • 所有文章
    • 我的文章
    Stig Engström
    7月05日

    Sending too many serial commands to Arduino ?

    在 Software

    Hello,


    We are doing a project with the bittle dog, we are running a little script on a Raspberry Pi sending commands through the serial interface and receiving ultrasonic distance with the code on the Github.


    We are trying to send serial commands from a Raspberry Pi to Arduino through UART but after a certain number of commands the robots stops moving. We saw that in io.h on line 34 there was a comment about overflow after too many iterations, maybe this is what is causing our issue?



    Is there anyway to fix this? 😄

    1 則留言
    0
    1 則留言
    R
    Rongzhong Li
    7月05日

    What's the frequency you send the serial command? And how many times before it stops?


    The code takes a lot of memory. You may disable unnecessary codes to save space and increase the stability. For example, uncommenting line 4 #define IR_PIN 4 in OpenCat.h will disable the infrared receiver code since you will make it automatic by the Pi.

    按讚
    1 則留言
    相似文章
    • Sending serial or i2c commands from python
    • Serial Monitor returning unreadable characters for me too
    • How can I send short serial commands?

    Pittsburgh, PA, USA | info@petoi.com 

    © 2019 Petoi LLC

    © 2019 Petoi LLC