Which pin on Orange PI 4 LTS to control WS2815 led strip

  • Hi,


    I'm trying to build ambilight using WS2815 and Orange Pi 4 LTS running Armbian 22.11 Jammy XFCE . Unfortunately, all tutorials are related to Rasberry, and I'm having difficulty to identify which pin I need to use.

    Code
    +------+-----+----------+------+---+OrangePi 4+---+---+--+----------+-----+------+
    | GPIO | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | GPIO |
    +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
    |      |     |     3.3V |      |   |  1 || 2  |   |      | 5V       |     |      |
    |   64 |   0 | I2C2_SDA | ALT3 | 0 |  3 || 4  |   |      | 5V       |     |      |
    |   65 |   1 | I2C2_SCL | ALT3 | 0 |  5 || 6  |   |      | GND      |     |      |
    |  150 |   2 |     PWM1 |   IN | 0 |  7 || 8  | 1 | ALT2 | I2C3_SCL | 3   | 145  |
    |      |     |      GND |      |   |  9 || 10 | 1 | ALT2 | I2C3_SDA | 4   | 144  |


    I'm a beginner at this, but my understanding is it needs to be PWM GPIO, and from above it seems to be GPIO 150. Is this correct?

    Also, any help with enabling these setting would be much appriciated.


    Thanks,

    Frane

  • I've had no success for now with choosing ws281x driver and pin 7 on Orange PI (GPIO 150), or choosing SPI WS2812 (not sure if this is even possible to do, but there is no WS2815 selection for SPI) and using pin 19. For the latter I've struggled until I managed to enable spi device in the first place.

    Any help would be appriciated.

  • Can't believe it, got it working!! Using SPI..


    So the issue was in a bug described here:

    5.15.25 breaks SPI on NanoPi Neo and does not create /dev/spidev0.0
    Armbianmonitor: http://ix.io/3RW0 I'm using a NanoPi Neo as Homegear gateway. This requires the SPI interface (/dev/spidev0.0). Yesterday I ran apt-get…
    forum.armbian.com


    Pin 19 on Orange PI is Spi1, and this one could not be loaded because of the upper mentioned bug.

    I had to edit device tree (using armbian-config tool), find spi1 node, and do the mentioned changes:


    Code
    spi@1c68000 {
    	...
    	spidev@0x00 {
    		compatible = "rohm,dh2228fv";
    		spi-max-frequency = <100000000>;
    		reg = <0x00>;
    	};
    }


    Note that this node name is from the linked forum topic, mine is different. Will post exact changes later.

    Also, after this I needed to remove all overlays from /boot/armbianEnv.txt and parameters associated with it.


    Big relief since I've been struggling with this for almost a week now...

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!