Jump to content

Andy

Members
  • Posts

    48
  • Joined

  • Last visited

  1. I like to connect an Atmega328 micro to the UART of the Neo Core. The micro runs on 5v. Are the neo core pins 5v tolerant? I can't find any information on the Website only this one: "All pins are 3.3V, output current is 5mA"
  2. thx a lot for the help hope to try this soon
  3. hmm thx I use a NanoPi NEO Core I now decopiled sun50i-h5-nanopi-neo-core2.dtb and have does entries: leds { compatible = "gpio-leds"; pwr { label = "nanopi:red:pwr"; gpios = <0x38 0x00 0x0a 0x00>; linux,default-trigger = "default-on"; }; status { label = "nanopi:green:status"; gpios = <0x0c 0x00 0x0a 0x00>; linux,default-trigger = "heartbeat"; }; }; So i don't won't to brick my core so can I just add this: ledBoot { label = "ctf-red"; linux,default-trigger = "default-on"; default-state = "on"; gpios = ????; }; but how do I define the GPIOS?
  4. I like to attach an additional LED to my Core on any GPIO that is also going to switch on as soon as the Core boots (similar to the red one). This way I can give the user a feedback that the core is now booting. Is there a way to achieve this?
  5. ok thx a lot by the way where I can report a bug? Armbianmonitor for displaying the network on a SINGLE line (-N) does not work. It does not stay on a single line it does scroll like the -n option EDIT: ok submitted the issue on GitHub Andy
  6. Yes I already did realize that since my CPU usage is now down to 1-2% before it was more like 5 to 8% in "idle" mode So can I now stay on this Image will I be able to update to further updates etc.? Andy
  7. ok I did install the image and it works with the usb devices I currently need (USB FTDI Serial, USB 4G Modem) Andy
  8. but for my device there is nothing else then nightly build versions... (Nanopi Neo Core 2 LTS) And before (3 months ago) I used the Armbian Stretch which worked but was not based on Ubuntu... Or which one should I use for my Core 2 with EMMC support...
  9. hmm I think that the DTO are not loaded. So I downloaded some DTS from https://github.com/armbian/sunxi-DT-overlays/tree/master/sun50i-h5 and added the sun50i-h5-usbhost0.dts with sudo armbian-add-overlay But after the boot I get this error: I tried several things but I think I don't get it... Andy
  10. Hy Just installed the Armbian Bionic image. Tried to attach different usb devices but they did not got registered. So I tried to look at the settings under Hardware in den armbian-config but it's gone.... I remember in the Armbian Stretch build it was Variable... Can someone help me Andy
  11. Andy

    GPIO access

    thx for the link but still I get the same error.... Andy
  12. After reading several threads without success I need to ask again how I can get permission as a "normal" user to use the GPIO pins via my python script: #!/usr/bin/python import time PIN_NUM = 200 print "GPIO %s" % PIN_NUM try: # check to see if the pin is already exported open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/direction'])).read() except: # it isn't, so export it open('/sys/class/gpio/export', 'w').write(str(PIN_NUM)) # set gpiochip198 to output open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/direction']), 'w').write('out') for i in range(1000): open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/value']), 'w').write("1") time.sleep(0.5) open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/value']), 'w').write("0") time.sleep(0.5) # remove GPIO87 folder from file system open('/sys/class/gpio/unexport', 'w').write(str(PIN_NUM)) I get this error: Traceback (most recent call last): File "testGPIO.py", line 17, in <module> open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/direction']), 'w').write('out') IOError: [Errno 13] Permission denied: '/sys/class/gpio/gpio200/direction' So I tried to add: SUBSYSTEM=="gpio", ACTION=="add", RUN="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\ chown -R root:gpio /sys$DEVPATH && chmod -R 770 /sys$DEVPATH\ '" into /etc/udev/rules.d/90-gpiomem.rules and yes my username is the GPIO group.... Can someone help me further...thx Andy
  13. hmm ok Currently I use the "Nanopi Neo 2" image. So is the nano pi neo plus2 closer to the "NanoPi NEO Core2"? I just thought the Neo Core 2 is the bare bone cpu board compared the the Neo 2 where USB and Ethernet Jack is present...
  14. hmm I would love to do that. but as I'm using a NanoPi NEO Core2 I don't wan't to code on the wrong image. For me it's currently a too hard start to first figure out how to develop the write image first for the Core 2 and then search start searching for the right LED pins etc to get it working. If someone could build a NanoPi NEO Core2 image I could definitely start helping in improving the side of the Core 2... Andy
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines