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
    3d

    Error moving joints simultaneously in Mobile app

    5
    0
    Tomi Ade
    6d

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

    3
    0
    若要查看作用方式,請前往您的即時網站。
    • 類別
    • 所有文章
    • 我的文章
    Egor Kraev
    2020年5月30日
    已編輯: 2020年6月28日

    Calibration not working - solved by setting 'no line ending' in Serial Monitor

    在 Basic Assembly and Setup

    When I follow https://docs.petoi.com/chapter6 using WriteInstinct.ino, MPU calibration seems to work as described, but when afterwards I press 'c', nothing happens, servos don't move and the long calibration table (Index/Offset) doesn't print. By inserting a print statement, I verified that execution reaches line 259 of WriteInstinct.ino. I just pulled latest from git repo so it's the latest code.

    Tried testing the servos by running testServo.ino - if I just run it, servo on pin 1 goes back and forth; but if I enter 'a', all servos move once and then stop moving. The output on the serial monitor, if I do that, goes from reasonable numbers (less than 1000 in absolute value) to very large numbers (attached) - not sure if that is connected to the calibration issue.


    Any idea what could be going on there?


    Thanks a lot!

    testServo_output
    .txt
    Download TXT • 1KB


    4 則答覆0 則回覆
    0
    4 則留言
    E
    Egor Kraev
    2020年6月28日

    Sorry for taking so long to reply. When trying to reproduce, problem went away. :)


    I think it's got something to do with the 'no line ending' setting in the serial monitor, enabling that and trying again a couple of times made it work like it should have. Would be great if you could adjust the input parser to no longer require this setting, or at least prominently add it to the setup instructions - was very confusing for me, and I only found it after reading the forums, in a seemingly unrelated topic!


    All working now, thanks a lot!

    1
    R
    Rongzhong Li
    2020年6月30日
    回覆

    Hi, if you read the lastest docs.petoi.com, I have mentioned the line ending setting in Chapter 4. Anyway, congratulations!

    按讚

    E
    Egor Kraev
    2020年5月30日

    Setting serial monitor to 'no line ending' as suggested in another post fixed the testServos.ino issue but not the calibration issue - that behaves exactly as before.

    1
    R
    Rongzhong Li
    2020年5月30日
    回覆

    what’s your board version(V0_1/V0_2) and what are your batteries? Pictures and videos will be very helpful.

    按讚
    4 則留言
    相似文章
    • Serial Monitor only prints strange characters
    • Serial Monitor returning unreadable characters for me too
    • Problems with OpenCat.ino - doesn't respond to serial monitor

    Pittsburgh, PA, USA | info@petoi.com 

    © 2019 Petoi LLC

    © 2019 Petoi LLC