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

  • Shop

  • More

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

    On Definition Rule Issues

    2
    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
    Stig Engström
    Jul 05

    Sending too many serial commands to Arduino ?

    in 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 comment
    0
    1 Comment
    R
    Rongzhong Li
    Jul 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.

    Like
    1 comments
    Similar Posts
    • 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 

    Privacy Policy

    © 2018 - 2021 Petoi LLC