Skip to content

4 universe isolated output prototype #1700

Open

Description

@MagnusHerrlin

Hi all.

I just finished building a prototype pbc to get four isolated outputs from a RPI4.
After reading #1662 I decided to try out the extra native uarts on the RPI4.
#1662 is about getting inputs from the uarts which would be really nice, but this pcb only have outputs.
I omitted one uart so the SPI port can be used for other things.
And it seems to be working fine.

Here is a link: https://github.com/MagnusHerrlin/Rpi4-4DmxOut

Part of my configfile looks like this:

dtoverlay=disable-bt
init_uart_clock=16000000
enable_uart=1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart5

and my ola-uartdmx.conf look like this

device = /dev/ttyAMA0
/dev/ttyAMA0-break = 88
/dev/ttyAMA0-malf = 24000
device = /dev/ttyAMA1
/dev/ttyAMA1-break = 88
/dev/ttyAMA1-malf = 24000
device = /dev/ttyAMA2
/dev/ttyAMA2-break = 88
/dev/ttyAMA2-malf = 24000
device = /dev/ttyAMA3
/dev/ttyAMA3-break = 88
/dev/ttyAMA3-malf = 24000
enabled = true

Thanks
/Magnus

Activity

  1. peternewman commented on Dec 22, 2020

    @peternewman
    Member

    Does it work? 😆

    Joking aside, apart from adding a link in:
    https://github.com/OpenLightingProject/ola/blob/0.10/plugins/uartdmx/UartDmxPlugin.cpp#L117-L145

    I'm not sure there's much to do in OLA is there? It might be worth posting on the mailing list too, as I'd imagine more people see that than the issue tracker.

    You should probably either add this config to your readme (with a link to OLA) or link to this issue or something.

    I assume the extra UARTs are only available on the Pi 4?

    Nice work!

    Have you done some performance tests?

  2. MagnusHerrlin commented on Dec 22, 2020

    @MagnusHerrlin
    Author

    Yes @peternewman it seems to be working.
    I'm getting output from all four ports.

    As proof there is a short video showing my dmxtester monitoring channel 1 of universe one changing between 0 and 255.
    https://github.com/MagnusHerrlin/Rpi4-4DmxOut/blob/main/IMG_4787.MOV

    Yes the extra ports are Pi4 only.

    I did a fresh install of rpios lite and installed @shenghaoyang fix in #1680
    from https://github.com/magdesign/ola_with_fix/
    and got it working, I think, I have not had time yet to test the timing, but so far it's looking good.

    /Magnus

  3. peternewman commented on Dec 23, 2020

    @peternewman
    Member

    Excellent! Yeah I'd say mention the config.txt and ola-uartdmx.conf in the readme in your repo then open a PR against OLA to link to it from our plugin readme!

  4. 1ucay commented on Apr 4, 2021

    @1ucay

    Hi, have you done performance test? If I send all 512 channels to 4 output, it will be 40hz?
    Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions