nopnop2002

Members
  • Content Count

    65
  • Joined

  • Last visited

About nopnop2002

  • Rank
    Advanced Member

Recent Profile Visitors

773 profile views
  1. nopnop2002

    Which WiringPi for NanoPi NEO

    Without using WiringPi, address operation of gpio is being performed directly, so NeoUart doesn't work with Opi. I have not tried, but you can probably use this. https://github.com/vanvught/rpidmx512/tree/master/lib-ws28xx
  2. nopnop2002

    Which WiringPi for NanoPi NEO

    Try this https://github.com/wertyzp/WiringNP It's my environment $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" $ cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=nanopineo BOARD_NAME="NanoPi Neo" BOARDFAMILY=sun8i VERSION=5.60 LINUXFAMILY=sunxi BRANCH=next ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=zImage
  3. try sudo h3disp -m 5 -d and reboot If you get a clear display, you can set the display area to 800x480 later by modifying the script.bin file. [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 3 screen0_output_mode = 5 screen1_output_type = 3 screen1_output_mode = 5 fb0_format = 0 fb0_width = 800 fb0_height = 480 fb1_format = 0 fb1_width = 0 fb1_height = 0 hdcp_enable = 1
  4. nopnop2002

    Orange pi zero ir receiver and transmitter

    A method the infrared reception and the infrared transmission for which lirc isn't used by this page is introduced. http://feijoa.jp/laboratory/raspberrypi/infrared/ So I tried whether it work using OrangePi-PC. It work fine. $ cc scanir.c -o scanir -lwiringPi -lpthread $ sudo ./scanir tv_on.ir write file: tv_on.ir scaning pin: 7 (wiringpi) max keep time: 40(ms) Infrared LED scanning start. Pressed Ctrl+C, this program will exit. Scanning has been done. $ ls -l tv_on.ir -rw-r--r-- 1 root root 476 Jun 26 07:56 tv_on.ir $ cc sendir.c -lm -o sendir -lwiringPi -lpthread $ sudo ./sendir tv_on.ir 1 14 read file: tv_on.ir output pin: 14 (wiringpi) unit: 26ms duty:9-17 send infrared signal. send data. done scanir The first argument is file name of output. The second argument is The pin number of Infra red sensor.(The pin number of WiringPi, Default is 7.) The third argument are the biggest duration. When infrared rays didn't light up more than this time, the biggest duration considers a transmission from a remote control to end, ends the reading and extracts a file. sendir The first argument is file name of read. The second argument is repeat counter. The third argument are The pin number of Infra red transmitter.(The pin number of WiringPi) The fourth argument are Frequency of transmit signal. The fifth argument are Molecule compared with duty The sixth argument are denominator compared with duty.
  5. nopnop2002

    Orange pi zero ir receiver and transmitter

    I think: On board MCU(STC11F02E) launches a start bit unconditionally. Start Bit of this module is NEC format(13.5ms) fixing. It isn't possible to change Start Bit of SAMSUNG format(9ms) via UART. If you can change firmware of On board MCU(STC11F02E), It's possible to send SAMSUNG format.
  6. nopnop2002

    Orange pi zero ir receiver and transmitter

    There is Chinese Manual. http://www.uctronics.com/download/U3107_Infrared_decoding_module.zip#sthash.Br6igdz4.dpuf There is following explanation. Signal launch of 940nm38kNEC code.
  7. nopnop2002

    Orange Pi Zero Second SD Card using a GPIO for CS?

    I ported from here. http://blogsmayan.blogspot.jp/p/interfacing-sd-card.html https://github.com/nopnop2002/SD_CARD_via_GPIO orangepi@orangepipc:~/sdcard$ sudo ./RpiSDCard_gpio Open an existing file (HELLO.TXT). f_open rc=0 Type the file content. Hello world! Goodbye world. 121 253 199 Close the file. Create a new file (HELLO.TXT). Write a text data. (Hello world!) 14 bytes written. 16 bytes written. 1 bytes written. 1 bytes written. 1 bytes written. 2 bytes written. 1 bytes written. 1 bytes written. 1 bytes written. 2 bytes written. 1 bytes written. 1 bytes written. 1 bytes written. 2 bytes written. Close the file. Open root directory. Directory listing... <dir> SYSTEM~1 88 TEST.TXT 45 HELLO.TXT Test completed.
  8. nopnop2002

    IR Receiver for NanoPi Neo

    Pin assignment of this module is probably below. The left :Signal ->IR receiver pin.pin #6 on the 12 pin header Medium :Gnd The right :3.3v An IR receiver power supply has to be 3.3V. Don't use 5V. Check this. https://www.marinostore.com/sensores/87-receptor-infravermelho-tl1838-vs1838-vs1838b.html Installation is same as OPI-PC.
  9. nopnop2002

    Nanopi Neo Air and WiringNP

    There is 2 Repository. https://github.com/friendlyarm/WiringNP https://github.com/wertyzp/WiringNP friendlyarm's WiringNP have a mapping bug. gpio of pin#35 and #36 won't work. static int pinToGpio_m1 [64] ={ 0, 6, // 0, 1 2, 3, // 2, 3 200, 201, // 4 5 1, 203, // 6, 7 12, 11, // 8, 9 67, 17, //10,11 64, 65, //12,13 66, 198, //14,15 199, -1, //16,17 -1, -1, //18,19 -1, 20, //20,21 21, 8, //22,23 // 13, 9, //24,25 /nopnop2002 16, 9, //24,25 // 7, 16, //26,27 /nopnop2002 7, 13, //26,27 15, 14, //28,29 19, 18, //30,31
  10. nopnop2002

    OPI PC with lirc ( IR transmit )

    @yigido I'm sorry by the slow response.
  11. nopnop2002

    eMMC backup

    I fixed my post.
  12. nopnop2002

    I finally mapped the GPIO on the OPZ+2 (H3)

    @specialist383 For Python users,you can control all pin using python-periphery. https://github.com/vsergeev/python-periphery.git
  13. Try this https://github.com/nopnop2002/OrangePi-ZERO-FAN-HAT
  14. nopnop2002

    NanoPi Neo Air - Unable to load i2c-sunxi

    @moonki123 Try this 1.edit /etc/modprobe.d/fbdev-blacklist.conf and add 2 line. blacklist pcf8591 blacklist bmp086 2.reboot system
  15. 1.Update package $ sudo apt-get update $ sudo apt-get upgrade 2.Download flashrom-0.9.9.tar.bz2 from here. https://www.flashrom.org/Flashrom/0.9.9 3.Install flashrom-0.9.9 to Opi-ZERO $ sudo apt-get install pciutils $ sudo apt-get install libftdi-dev $ sudo apt-get install libusb-dev $ sudo apt-get install libpci-dev $ bzip2 -d flashrom-0.9.9.tar.bz2 $ tar xvf flashrom-0.9.9.tar $ cd flashrom-0.9.9/ $ make $ sudo make install 4.Write SPI Flash image $ cd $ dd if=/dev/zero count=2048 bs=1K | tr '\000' '\377' > spi.img $ dd if=/usr/lib/linux-u-boot-orangepizero_5.31_armhf/u-boot-sunxi-with-spl.bin of=spi.img bs=1k conv=notrunc $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c MX25L1605 -w spi.img Note: linux-u-boot-orangepizero_5.31 depends on the version of the kernel. 5.Writing an image to USB memory You will need to use an image writing tool (like Win32DiskImager.exe) to install the Armbian image on your USB memory. 6.Shutdown A SD card is removed from Opi-ZERO. A USB memory is stuck into Opi-ZERO. 7.Power On