Beiträge von brunh

    You can not connect ethernet to the zero without an adapter. You can use NanoPi Duo. Firmware Doorpi with small edits suitable. I can share my firmware, just modified something, use an internal microphone input port and dynamic lighting for apa102 leds.
    Or look for an adapter whose matching transformer is not integrated in the rj45, but it costs separately. then it is possible to remove the plug and solder in its place the wires.

    This board does not connect directly, and it is not needed.
    You only have two buttons: the exit and the bell.
    Port for control door lock, write in doorpi.ini, for example PA13, and the buttons in the file read.py
    How it is specifically connected to the forum is detailed, the connection schemes to the relay, and to the buttons, they are exactly the same as the Raspberry.

    Sorry for the vague instructions.


    Pressing the buttons generates a record in the file to a virtual/input that is processed according to the rules of doorpi.ini


    Here is the error: [keyboards] io = gpio
    Inputs GPIO PC4 and PC7 are assigned to the file read.py can change on your own.
    1) armbian img
    2) install doorpillars.
    3) changing the file from_gpio.py here: /usr/local/lib/python2.7/dist-packages/doorpillars./keyboard
    4) install pyA20 pypi.python.org/pypi/pyA20
    5) redacted doorpi.ini different name because the gpio pins OrangePi
    Earn on output ports starting at PA, for example PA13
    =====
    [io_OutputPins]
    13 = Door


    [virtuell_keyboard]
    reset_input = true
    base_path_input = !BASEPATH!/virtual/inputs/
    base_path_output = !BASEPATH!/virtual/outputs/


    [virtuell_InputPins]
    5888 = out:Door,1,0,3
    56 = call:804
    =====


    The connected MFRC522 took away: http://orangepi.pp.ua/index.php/topic,415.0.html


    read.py change to attached, will be read with the reader and gpio inputs. Can cut reader and to make only the gpio.


    Sound 3.5 mm as output:
    ---------------------
    apt-get install sox


    cat << _EOF_ > /etc/asound.conf
    pcm.!default {
    type hw
    card 0
    }


    ctl.!default {
    type hw
    card 0
    }
    _EOF_


    amixer set-c 0 'Audio lineout' unmute
    -------------

    see this file, include rs522 and buttons.

    ~# cat /proc/asound/cards | grep ]: | sed 's/.* - //'
    audiocodec
    sndhdmi
    HP Webcam HD 2300


    changed attribute in doorpi.ini but the result of the microphone is not changed.
    capture_device = ALSA: audiocodec
    on:
    capture_device = ALSA: HP Webcam HD 2300


    happened: I edited req_sipphone.py

    Please indicate location of Linphone file, which has a main function with selection of a sound source, since it is required to set the usb microphone manually in the OrangePi
    Danke!
    ps doorpi/sipphone/from_linphone.py
    what to write, if interesant cart 2:
    # arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sndcodec-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: H2300 [HP Webcam HD 2300], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    Hi Emil,
    yes, i solved it.
    by adding an event in doorpi.ini, that has to play the sound.


    i was looking through your doorpi.ini as well. and didn't understand what means string:
    [onboardpins_InputPins]
    36 = 36


    how it should work? what is a logic of that?

    dear colleagues!
    unfortunately i couldn't find how i can add some sound that will accompany a opening of the door, could you please advise me how to do it? e.g. i open the door by using rfid card and i'd like to hear some special sound.
    Danke.