Jump to content

iomari

Members
  • Posts

    26
  • Joined

  • Last visited

Recent Profile Visitors

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

  1. iomari

    ubuntu on ssd

    Greetings, Can I install and boot ubuntu from an ssd was the only storage device installed (no emmc, no microsd)> iomari
  2. Greetings, On the tinkerBoard, I'm using python. I having difficulty understanding why the functions don't return the values that is expected according tho the library help. I'm using python3 and the ASUS GPIO library. import ASUS.GPIO as GPIO GPIO.setmode(GPIO.BOARD) This is the output from ipython: In [18]: help(GPIO.gpio_function) Help on built-in function gpio_function in module ASUS.GPIO: gpio_function(...) Return the current GPIO function (IN, OUT, PWM, SERIAL, I2C, SPI) channel - either board pin number ,RK number or ASUS number depending on which mode is set. But when I try for instance: In [19]: GPIO.gpio_function(29) Out[19]: 1 AS you can see, the return value is '1' not (IN, OUT, PWM, SERIAL, I2C, SPI) Also if I run: In [20]: help(GPIO.getmode) Help on built-in function getmode in module ASUS.GPIO: getmode(...) Get numbering mode used for channel numbers. Returns BOARD, RK, ASUS or UNKNOWN Then I run: In [21]: GPIO.getmode() Out[21]: 10 As you can see, I'm not getting a return of 'BOARD, RK, ASUS or UNKNOWN' but instead I'm getting 10. IS it me or are the outputs to these functions wrong? iomari
  3. thanks. sco@TK-03:/$sudo su - -c "echo 24 > /sys/class/gpio/export" sco@TK-03:/$ sudo su - -c "echo in > /sys/class/gpio/gpio24/direction" -su: line 0: echo: write error: Invalid argument sco@TK-03:/$ sudo su - -c "echo 26 > /sys/class/gpio/export" sco@TK-03:/$ sudo su - -c "echo in > /sys/class/gpio/gpio26/direction" -su: line 0: echo: write error: Invalid argument sco@TK-03:/$ su -l Password: root@TK-03:~# echo 'in' > /sys/class/gpio/gpio26/direction -su: echo: write error: Invalid argument root@TK-03:~# ls -la /sys/class/gpio/gpio26/ total 0 drwxr-xr-x 3 root root 0 Sep 25 14:02 . drwxr-xr-x 38 root root 0 Sep 25 14:02 .. -rw-r--r-- 1 root root 4096 Sep 25 14:02 active_low lrwxrwxrwx 1 root root 0 Sep 25 14:02 device -> ../../../pinctrl -rw-r--r-- 1 root root 4096 Sep 25 14:16 direction -rw-r--r-- 1 root root 4096 Sep 25 14:02 edge drwxr-xr-x 2 root root 0 Sep 25 14:02 power lrwxrwxrwx 1 root root 0 Sep 25 14:02 subsystem -> ../../../../../class/gpio -rw-r--r-- 1 root root 4096 Sep 25 14:02 uevent -rw-r--r-- 1 root root 4096 Sep 25 14:02 value export works, 2nd line doesn't
  4. same problem: # sudo su -c echo in > /sys/class/gpio/gpio/export # -bash: /sys/class/gpio/gpio/export: No such file or directory # sudo su -c echo in > /sys/class/gpio/gpio/gpio22/direction -bash: /sys/class/gpio/gpio/gpio22/direction: No such file or directory as root: root@TK-03:~# echo in > /sys/class/gpio/gpio/export -su: /sys/class/gpio/gpio/export: No such file or directory root@TK-03:~# echo in > /sys/class/gpio/gpio22/direction -su: /sys/class/gpio/gpio22/direction: No such file or directory root@TK-03:~#
  5. Thanks for your reply. I work primarily from python. But I ran the commands you suggested: # sudo echo 22 > /sys/class/gpio/export # -bash: /sys/class/gpio/export: Permission denied # sudo echo in > /sys/class/gpio/gpio22/direction # -bash: /sys/class/gpio/gpio22/direction: No such file or directory
  6. Greetings, After setting my tinkerboard pins 22 and 24 as an Inputs, they reverts to being an output pin on HIgh after around 30 seconds. What is the cause of this? Is this some kind of feature. I don't have this happen on any other pin other than these 2. iomari
  7. Greetings, can the NAS HAT for the Zero work on the Zero Plus2 H5? I have the Zero HAT, which connects to the Plus2 board, but when I connect a usb keyboard, it does not power it. Although a usb mouse lights up. I can't test the mouse fully because I'm using ubuntu server on the Plus2 which has no GUI. So again, is the problem that the Plus NAS HAT does not work on the Plus2? I see that there is a NAS HAT for the Plus2 with the same connectors that the Plus HAT has but it's smaller. Thanks in advance iomari
  8. Greetings, I just purchased the sata hat for the M4. The site page for the HAT explain that the HAT uses GPIO2 pwm pin. So obviously, the engineers who designed the HAT know how to program the GPIO2 pwm pin. Would you guys be so kind as to share this knowledge? I'm starting to get discourage with Friendly's customer service. I've been asking for help on this matter for weeks now with no response. Getting Discouraged iomari
  9. Greetings, I can't seem to find any documentation on how to access the only PWM port on the Nano M4 which happens to reside on the 2nd set of pins. It's listed as GPIO2 and the PWM pin is pin 23 which they label as GPIO_C6/PWM1(3V). SInce any documentation I find on GPIO has to do with the 40 pin port, how can I program the PWM using wiringPI-Python? I wonder why Nano chose to disregard the other PWM pins that other Raspberry Pi type boards retained like the Asus Tinkerboard. Or am I missing something? If so, can someone enlighten me as to how to access PWM on the Nano M4. Preferably using Python 3.
  10. iomari

    Nano M4 GPIO2

    Greetings, I can't seem to find any documentation on how to access the only PWM port on the Nano M4 which happens to reside on the 2nd set of pins. It's listed as GPIO2 and the PWM pin is pin 23 which they label as GPIO_C6/PWM1(3V). SInce any documentation I find on GPIO has to do with the 40 pin port, how can I program the PWM using wiringPI-Python? I wonder why Nano chose to disregard the other PWM pins that other Raspberry Pi type boards retained like the Asus Tinkerboard. Or am I missing something? If so, can someone enlighten me as to how to access PWM on the Nano M4.
  11. Thanks alot. You've been most helpful.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines