Jump to content

nopnop2002

Members
  • Posts

    76
  • Joined

  • Last visited

Reputation Activity

  1. Like
    nopnop2002 got a reaction from gounthar in Orange Pi-Lite - GPIO (power)   
    When using the switch circuit, it's possible.
    The switch circuit is possible by the photo switch or a transistor.
     
    When the switch does a blue line, a backlight of LCD turns on /OFF.


  2. Like
    nopnop2002 got a reaction from Mukhammad in orange pi pc plus waveshare 5 inch displays problem   
    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  
  3. Like
    nopnop2002 got a reaction from jscax in 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.
  4. Like
    nopnop2002 got a reaction from tkaiser in eMMC backup   
    I fixed my post.
  5. Like
    nopnop2002 got a reaction from Rammwurst in How to USB boot Orange Pi Zero with MX25L1606E NOR flash?   
    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
  6. Like
    nopnop2002 got a reaction from uriukti in Display ili9341 on orange pi zero armbian   
    please show us your config file.
     
    My wiring
     
    TFT     OPi(Pin#) -------------------- MISO    N/C LED    3.3V SCK    SCLK(23) MOSI    MOSI(19) D/C    GPIO12(03) RES    GPIO11(05) CS    CS0(24) GND    GND VCC    3.3V My config
    orangepi@orangepipc:~$ cat /etc/modules-load.d/fbtft.conf flexfb fbtft_device orangepi@orangepipc:~$ cat /etc/modprobe.d/fbtft.conf options flexfb width=320 height=240 buswidth=8 init=\ -1,0x28,-2,20,-1,0xCF,0x00,0x83,0x30,-1,0xED,0x64,0x03,0x12,0x81,-1,0xE8,0x85,0x01,0x79,\ -1,0xCB,0x39,0x2c,0x00,0x34,0x02,-1,0xF7,0x20,-1,0xEA,0x00,0x00,-1,0xC0,0x26,-1,0xC1,0x11,\ -1,0xC5,0x35,0x3E,-1,0xC7,0xBE,-1,0xB1,0x00,0x1B,-1,0xB6,0x0a,0x82,0x27,0x00,-1,0xB7,0x07,\ -1,0x3A,0x55,-1,0x36,0x38,-1,0x11,-2,120,-1,0x29,-2,20,-3 options fbtft_device name=flexfb gpios=dc:12,reset:11 speed=1600000  

  7. Like
    nopnop2002 got a reaction from tkaiser in Install to EMMC   
    dd is quiet.  
    No dd talks on the way. So I made a script for backup EMMC where progressive status was made.
    Please download it, add execute permission and execute it in root user.
     
    You can download from here.
    My English isn't probably right.
    Please correct it freely.  
    emmc-backup.sh
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines