Jump to content

spottyrover

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by spottyrover

  1. I am looking for some recommendations for using the Gpio on the opi PC ( with uname -r 5.7.15-sunxi )


    The project is to open and close a glass house door using a temperature probe ( ds18B20 ) and a relay control board ( opto coupled with active low input ).
    Later I will add automatic watering relay board.

     

    The pins I would like to use are

    Inputs

    PC0     used for ds18B20   (SPI0_MOSI)    because it is an Input

    PC4    Door closed switch         Internal pullup            
    PC7    Door is fully open switch     Internal pullup
    PC3     Input to be used later(SPI0_CS) Innternal pullup

     

    Outputs
    PD14            output  MC  motor close door
    PC1     (SPI0_MISO)    output  MC  motor close door    because it is an output


    Proposed outputs to be used later

    PA0    (UART2_TX/JTAG_MS/PA_EINT0)    
    PA11    (TWI0_SCK/DI_TX/PA_EINT11)
    PA13 (SPI1_CS/UART3_TX/PA_EINT13)
        
    PG6    (UART1_TX/PG_EINT6)

     

    Data  from Allwinner H3 Datasheet

     

    I am using these commands to set inputs
    echo 71 > /sys/class/gpio/export
    echo "in" > /sys/class/gpio/gpio71/direction

     

    My questions are:
    1) what do you think of the chosen pins?
    2) Do I need to do anything to configure inputs to use pullups?
    3) How can I set output pins to start out as high so as not to trigger the relay on startup?
        I am trying to use  for outup
                      echo 110 > /sys/class/gpio/export                #    pin12    PD14    MCD o/p relay    110
                      echo "out" > /sys/class/gpio/gpio110/direction
                      echo 1 > /sys/class/gpio/gpio110/value    
    which causes the relay to turn ON then OFF

     

    Thanks for all of your advice
    Dave
     

  2. opi+2e

    What is the best way to install a mainline kernel so that I can check out containers?

    I tried to install mainline kernel and ended up with a blank screen

    I then installed a nightly and it is just cli so I installed open box by

    ssh root@10.x.x.x9 apt-get install openbox obconf

    and now i get a blank screen also

    what is the best way to get a gui with mainline kernel?

     

    Thanks for your help

    Dave

     

  3. OrangePi plus2e

    how do I get hardware acceleration to work in smplayer?

    I am recording tv using tvheadend  and trying to play back using smplayer.

    I have tried the available options for video output driver and X11 (slow) is by far the best but is not useable as there is still alot of stuttering.

    top shows 138% mpv usage

    vdpau is colored almost horizontal lines

     

    All help is appreciated

     

    Dave

     

  4. Orange Pi Plus 2e How do I clone the SD card and both have boot capability?

     

    I am new to the concepts of Pi's so I am looking to slowly add abilities to the pi and have a working clone which I can use when I stuff it up.

     

    I have also seen no mention of grub being used anywhere.

    My main computer is a amd 64 with Debian running but I can use my laptop with win 8.1 on it but would prefer a solution which I can use on Debian

     

    Thanks for your help

    Dave

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines