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.
    antonio jerry
    53m

    Which medication can treat erectile dysfunction?

    0
    0
    Rafael Marín
    2d

    Error moving joints simultaneously in Mobile app

    5
    0
    Tomi Ade
    5d

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

    3
    0
    若要查看作用方式,請前往您的即時網站。
    • 類別
    • 所有文章
    • 我的文章
    D_C_E
    2021年2月11日

    Nybble and Raspberry Pi?

    在 General Discussions

    Hello all - I've recently assembled my second Nybble, this time with a Raspberry Pi. I'm hoping to experiment with new behaviors and abilities. For now, I simply want to remotely connect to the RasPi and control Nybble through its terminal. But I'm having some trouble with the serial connection (I think).


    I did my best to follow the guide here: https://www.petoi.com/forum/hardware/how-to-setup-raspberry-pi-for-programming-nybble-without-ftdi-module but I may have made a mistake or two along the way. Any other advice or resources on getting Nybble up and running with a RasPi?






    22 則留言
    0
    22 則留言
    R
    Rongzhong Li
    2021年5月04日

    I remember there was some permission to be assigned to the script if you are using Linux.

    按讚

    K
    keno-san
    2021年5月03日

    Thank you for your reply.

    I checked my correct Bluetooth name (it is BittleSPP-877324) and replaced my ardSerial.py line 9 as follow;


    port='/dev/cu.BittleSPP-877324-Port',#'/dev/ttyS0'

    However, the error was almost the same. "[Errno 2] could not open port /dev/cu.BittleSPP-877324-Port:"

    Just to be sure, I tried another pattern,


    port='/dev/cu.BittleSPP-877324',#'/dev/ttyS0'

    I found same error No.2..


    And I typed on the RasPI terminal "ls /dev | grep Bittle " before and after to execute ardSerial.py.








    按讚
    R
    Rongzhong Li
    2021年5月09日
    回覆

    @keno-san Do you mean it was fixed by not dialing the switch to Pi? Did you change the permission setting?

    And I miss understood your last message. You don't need to change ttyS0 on the Pi.

    按讚

    K
    keno-san
    2021年5月10日
    回覆

    @Rongzhong Li Yes. Only when I keep I2C switch on “Arduino” position, ardSerial.py works well. When switch to "PI" position, Bittle answers just a short beep sound and no move.

    And I can't find the fine named cu.BittleSPP~ in /dev directory on my Pi, so I can't fix the error massage [Errno 2] could not open port /dev/cu.BittleSPP~. On the other hand, there is the file "ttsS0", I tried to rewrite the port definition and Bittle can receive the command from Pi.

    The method I took may not be the proper way, but it is the only solution of my situation.

    按讚

    R
    Rongzhong Li
    2021年5月12日
    回覆

    @keno-san Oh, yes, you just need to use ttyS0. Sorry for the confusion.

    按讚