• Content Count

  • Joined

  • Last visited

Everything posted by AndreWicked

  1. It turned out to be added to the autorun, thanks, but the problem now is different, if you run the script from the root's folder, Autorun does not work, and if from the user's folder, the information from the reader is not written to the file. How I may to fix this?
  2. Explain it on your fingers, or I do not understand. How can I make my python script run when I turn on my NanoPI, without logging in, without entering a login, password?
  3. Pay attention to the theme I created, I got it and there I brought libraries that used.
  4. Everything turned out with RPi.GPIO_NP library SPI-Py Library And On NanoPi Neo, the libraries from OrangePi Zero are completely suitable, even the pinouts are the same. root@NanoPi-NEO:~/OrangePiZeroMFRC522/MFRC522-python# sudo python Welcome to the MFRC522 data read example Press Ctrl-C to stop. Card detected Card read UID: 194,86,17,48 Size: 8 Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] You can fix it somewhe
  5. You had an error in this line. from pyA20 import spi I changed to from pyA20.spi import spi And got this error root@NanoPi-NEO:/# sudo python ['__doc__', '__file__', '__name__', '__package__', 'close', 'open', 'read', 'write', 'xfer'] Segmentation fault
  6. I copied your code: #!/usr/bin/python from pyA20 import spi data = [0x00,0x01,0x02,0x03,0x04,0x05] print dir(spi)"/dev/spidev0.0") spi.write(data) data = spi.xfer(data, len(data)) spi.close() print data and run it root@NanoPi-NEO:/# sudo python ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__'] Traceback (most recent call last): File "", line 8, in <module>"/dev/spidev0.0") AttributeError: 'module' object has no attribute 'open'
  7. Traceback (most recent call last): File "", line 5, in <module>"/dev/spidev0.0") AttributeError: 'module' object has no attribute 'open'
  8. Thank you, it worked. Last question, you write that RFID Reader needs to be connected by I2C, and on many forums write about SPI, I'm a little confused. Will you prompt?
  9. Sorry, apt-get install python-dev solved the problem.
  10. root@nanopineo:/# sudo git clone Cloning into 'orangepi_PC_gpio_pyH3'... remote: Counting objects: 61, done. remote: Total 61 (delta 0), reused 0 (delta 0), pack-reused 61 Unpacking objects: 100% (61/61), done. Checking connectivity... done. root@nanopineo:/# cd orangepi_PC_gpio_pyH3/ root@nanopineo:/orangepi_PC_gpio_pyH3# python install running install running build running build_py creating build creating build/lib.linux-armv7l-2.7 creating build/lib.linux-armv7l-2.7/pyA20 copying pyA20/ -> build/lib.linux-armv7l-2.7
  11. Now I understand. Thank you very much, I will understand further.
  12. Thanks for the quick response. But can you explain it to me then? As I understand in the official ROMs there is support RPi.GPIO.
  13. Hello everybody! Can I read data from the RFID-MFRC522 module with my NanoPi, if so, tell me what python libraries are in Armbian or will it be necessary to install an official ROM and work through RPi.GPIO?