How to control servo on Udoo x86 in python

Discussion in 'UDOO X86' started by pierro, Apr 12, 2019.

  1. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    Regarding the led, I think generate an executable with the IDE and then use it with python. But I still do not know how to do it.
     
  2. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    I think I understood, I have to do a program in C that will receive commands from my python script.
     
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  4. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    I am French and I understand English very badly, especially English speaking a technical language.
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I suppose there are also French forums about programming a linux based PC's (Raspberry Pi) and Arduino.
     
  6. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    I also go to these forums. But concerning the UDOO, there are only english-speaking forums
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Yes, but the questions you have are not UDOO specific.....
    There is lots of general information about PC <--> Arduino communication and this is also usable for the Udoo X86
     
  8. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    Thank you but I am trying to turn on an LED by installing various versions of Arduinos / Genuino 101. It's not easy.
     
  9. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    Now :

    Arduino : 1.8.5 (Linux), Carte : "Arduino/Genuino 101"

    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    Les options de compilation ont été modifiées, tout sera recompilé
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    Le croquis utilise 17284 octets (11%) de l'espace de stockage de programmes. Le maximum est de 155648 octets.
    Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.
    Starting download script...
    dfu-util: Cannot open DFU device 8087:0aba
    dfu-util: Cannot open DFU device 8087:0aba
    dfu-util: Cannot open DFU device 8087:0aba
    dfu-util: Cannot open DFU device 8087:0aba
    Flashing is taking longer than expected
    Try pressing MASTER_RESET button
    ERROR: Device is not responding.
    ERROR: Device is not responding.
     
  10. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    With version 2.0.4 of 101 :

    Arduino : 1.8.5 (Linux), Carte : "Arduino/Genuino 101"

    Les options de compilation ont été modifiées, tout sera recompilé
    Le croquis utilise 12548 octets (8%) de l'espace de stockage de programmes. Le maximum est de 155648 octets.
    Starting download script...
    Flashing is taking longer than expected
    Try pressing MASTER_RESET button
    ERROR: Timed out waiting for Arduino 101 on /dev/ttyACM1
    ERROR: Timed out waiting for Arduino 101 on /dev/ttyACM1

    Ce rapport pourrait être plus détaillé avec
    l'option "Afficher les résultats détaillés de la compilation"
    activée dans Fichier -> Préférences.
     
  11. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Are you sure the Arduino is connected to /dev/ttyACM1 ? Normally it is /dev/ttyACM0
     
  12. pierro

    pierro New Member

    Joined:
    Apr 12, 2019
    Messages:
    25
    Likes Received:
    4
    I succeeded, I miss more than coding with the library serial in C and python to communicate the python program on Udoo to the program compiled in C on Arduino 101 :

    chmod +x ~/.arduino15/packages/Intel/hardware/arc32/2.0.2/scripts/create_dfu_udev_rule
    sudo ~/.arduino15/packages/Intel/hardware/arc32/2.0.2/scripts/create_dfu_udev_rule
     
    evaloverde and waltervl like this.

Share This Page