Jump to content

Yuvaram Singh

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. i found a work around for it . my issue was ros cmds (roscd , rosrun ..) are unrecognized by sudo . so i login as root and edited .bashrc file to include the executable files for those cmds and then ran ros cmds . this time both ros ans the gpio worked perfectly . http://ros-users.122217.n3.nabble.com/Running-commands-as-SuperUser-td865871.html
  2. hi , i am working with ROS which used python 2.7 . will the above library work with py 2.7 .
  3. hi , i am using the gpio library provided by asus tinker board to work with gpio on armbian os . i am having issue with running the python script without giving sudo cmd. is there any alternative to overcome giving sudo all the time while running gpio python script or any other alternate library to use with armbian python add_event_callback.py can't open /dev/mem and /dev/gpiomem wiringPiSetup: Unable to open /dev/mem and /dev/gpiomem: No such file or directory Segmentation fault
  4. i got a basic solution to connect UART of arduino to tinker UART1 (8,10) on armbian os through python . this might not be a correct one .but,simple .we can use '/dev/ttyS1' to access the UART1 tx and rx pin python import serial ser = serial.Serial('/dev/ttyS1',9600) ser.write('hello'.encoder()) # to write data ser.readline() # to read data
  5. hi , how to access the uart pin on the tinker board through python code . i am not sure on how to find the uart port name (something like USBtty ....) for the tx rx pins on the board . how to find the name and how to access it . should we do some other steps before using it . something like import serial ser = serial.Serial('USBtty0',9600)
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines