Beiträge von Wim

    Hi,


    A lot of what you asked can be better explained by the tutorial here ( https://learn.adafruit.com/neopixels-on-raspberry-pi ).
    I not a coder, however I think Penfold42 spi code and the code mentioned in the tutorial are similar and use the same pins.


    There's a lot of information scattered over the forum and the internet, this is an interesting link too. As soon as I understand it, I will post about it for others to make it easier for them.


    Hi,
    I may be wrong (never used 2813's) I believe you leave the fall over wire unconnected.


    The 2813 has a data-line (DIN) and a backup data-line (BIN). Normally when a led is broken all of the leds stop working, but because of the backup line the next leds keep on working. Only when 2 leds in a row are broken, the others stop working too. So I have to wire these 2 data-lines together.


    Thanks for the help again.

    Thanks for the input Akriss,


    2 ways to connect whatever Pi: With ws281x or ws281x-spi driver.
    1. With ws281x-driver din on pin 6, gnd on pin 12.
    2. With ws281x-spi driver din on pin 19 and gnd on pin 21 for /dev/spidev0.0 (and to pins 24 and 26 for /dev/spidev0.1).


    First I'm trying to understand about the options:
    Is the above correct?
    Why no luck with option 1?
    Or is option 1 not the way to go? Only 2?
    Do I need the same (level shifter or whatever) for both options?
    Are there PROs and CONs for option 1 and 2?


    I read that there's no need for a resistor and capacitor for the 2813 leds.



    Then about option 2 and level-shifter.
    On the link, in your post


    Now a Level shifter (or Bus buffer as I see the data sheets call it) takes a diagrams in a previous post here ( https://hyperion-project.org/t…y-question.935/#post-6977 )


    First of all, in your diagram you use different pins than I do.
    My 2813 is like 2812b but with double data-lines, which I tie together, so 3-lines. Are the above pins correct in my case?


    I also read
    https://hyperion-project.org/t…ter-based-on-74hct08.512/
    There is mentioning of PWM and level-shifter and of spi-based drivers, which give me the impression there's no need for the level-shifter using spi instead of PWM. And got the impression that option 1 is PWM and option 2 is spi. But I might get that completely wrong.


    There's also mentioning about the number of 74HCT to use. So maybe I should use a simpler version than the SN74AHCT125N?
    Since I have a separate power supply for the pi, do I need to connect the din only? Which pins on the level shifter would that be?
    Or do I need to connect GND also? I guess not the 5V?


    I can go to a electronics shop in town here, but there seem to be different kinds. Some only for analog or digital, some not for I2C or 1-wire based machines (whatever it may be). How can I make the seller understand what I need?


    Thanks,


    Wim

    hi, any news? my case is similar to yours, i have a shield a rp2 a ws2812b strip leds but i have dont know how to connect the leds into rp2 (in what pins)? the red cable i connect to my 5v 8a adapter, but the green and white cables iam not sure?


    Regarding the pins and colors of the colours of the cable, see here:
    https://hyperion-project.org/t…help.917/page-3#post-6885
    The 2813 has 2 data cables, yellow and green (data-in=din, backup-in=bin), black is GND (ground), red = 5V. I tied the din and the bin together.
    I have a seperate power supply for the pi and for the leds.


    I have never used a ws2813 strip of led's. However from what I have read the ws2813's use exatly the same as ws2812's. So use adalight if connecting the leds to an Arduino. Or ws281x-SPI if connecting the led's to the gpio pins of the RPi directly with out an Arduino.


    Think the moral of this story is start with a directly connected to the strip pi zero w and forget the Arduino :)


    Guys, I could really use your help here to get this going.


    Do I need a capacitor and/or a resistor? What values? Or a level-shifter or whatever? What pins to use?
    As said, I'm now trying with the Pi2 instead of the zero wifi, just to be sure. I got it working before with the pi2 connected via usb to the arduino.


    Wim

    Here: https://hyperion-project.org/wiki/3-Wire-PWM I read:
    "If you want to use a ws2812 without tying up a USB port you may want to consider a SPI to ws2812 converter.bThere are a couple of these written by penfold42 published here:
    https://github.com/penfold42/stuff?files=1"


    But I don't know what to do with this.


    This seems to give some info, but I don't know what to do with it:
    https://github.com/hyperion-project/hyperion/issues/6


    I read this:
    https://github.com/626Pilot/RaspberryPi-NeoPixel-WS2812


    But no indication about what resistor, capacitor, pins etc.


    Read this:
    https://hyperion-project.org/t…onnection-device-type.82/


    This:
    https://devhub.io/repos/penfold42-stuff


    ???

    Okay,


    I'm back and trying to connect the zero wifi to the ws2813 without Arduino. Not much luck so far. So trying with my RPI2 now.
    There seem to be 3 ways to connect Pi1, 2 ways to connect whatever Pi: With ws281x or ws281x-spi driver.


    1. With ws281x-driver din on pin 6, gnd on pin 12.
    2. With ws281x-spi driver din on pin 19 and gnd on pin 21 for /dev/spidev0.0 (and to pins 24 and 26 for /dev/spidev0.1).


    1. Nothing.
    2. Something. That's about it.
    When I put the led off (via the android app), some lights go off (some stay on) and when I put the led on, some lights go on. So I got a response. Colours incorrect. Leds randomly flashing (the leds that are on always, stay exactly the same always).


    Can anyone help me further?

    Ik had hem nog geen 2 weken en dacht dat als ik hem niet nodig zou hebben, ik me dat geld kon besparen. Een extra pi zero kon ik goed gebruiken voor dat geld.


    Ik heb die arduino dus teruggestuurd, maar helaas is ie niet aangekomen en ik heb hem per brief verstuurd dus geen track en trace. Achteraf gezien dus flink spijt....
    Maar nu verder.


    Wat ik dus wil proberen en dat zou dus moeten kunnen begrijp ik, is de 2813 ook rechtstreeks op een pi aan te sluiten, dus zonder arduino. Dat ben ik nu aan het proberen. Er zijn 3 opties in hypercon, de laatste 2 zijn zonder arduino als ik het goed begrijp: 1. ws281x en 2s281x-spi.
    Bij de eerste komt de GND op poort 6 en DIN op poort 12. Ik krijg daarop geen goede led response.


    Zo meteen test ik de -spi en meld ik me straks weer.


    Voor de zekerheid ben ik aan het testen met de pi2, waarop het allemaal al werkte met een arduino.


    Wim

    Hi Pedro,


    I got this setup working:


    Kodi addon as grabber on nvidia shield tv->pi2 hyperion->arduino (usb)->2813.
    But I couldn't get the connection pi2->arduino to work over wifi instead of usb and someone told me I didn't need the arduino anymore, so I returned the arduino and bought a pi zero wifi instead (to use instead of pi2->arduino).


    Now I trying to get that working, but haven't had any success yet. There seem to be a couple of ways to do it and depending on the way you choose, you had to use certain pins. In this thread, you can follow my search, I will report my progress there:


    https://hyperion-project.org/t…help.917/page-4#post-6928


    Greetings,


    Wim

    Hi Wim,


    Ben je er al achter hoe het voor je gaat werken? Als ik het goed begrijp heb je geen nodeMCU in je setup verwerkt. Neem eens een kijkje in de showcase van Kollektiv02. Misschien dat dit wat opheldering voor je biedt.


    https://hyperion-project.org/t…th-nodemcu-extension.213/


    Hoi Thommy,


    Bedankt voor je reactie.


    Ik had niet goed gekeken naar waar je op reageerde. Ik had de arduino uno WIFI voor mijn vakantie al geretourneerd omdat ik begrepen had dat ik de 2813b (bijna net hetzelfde als 2812b) ook rechtstreeks aan een pi kon aansluiten, dus zonder arduino. Mijn vraag hierboven is dus achterhaald.


    Ik zit nu wel met een ander probleem, want ik krijg deze setup niet aan de gang.
    Overigens werkte pi2->arduino (usb)->ws2813 prima.


    Kunnen jullie me hiermee helpen? Ik ga zo ook posten op andere threads hierover.


    Groeten,


    Wim

    You don't need an Arduino between the pi and strip for 2812b and it's kin anymore. If you got a pi zero w you could connect it directly to the strip running Hyperion and then you'd have a wireless connection between Kodi on your PC and the pi. This is how mine is set up though I used an apa102 strip instead


    This is great! I didn't know that. I'm returning the arduino and buying the pi zero wifi instead. Can you give me a link or direct info on how to connect (physical) etc?


    Thanks again!!


    Wim

    Mediaportal 1 inderdaad want 2 is nog alpha wat betreft features.


    Opstelling zoals het dan werkt is:


    Mediaportal -> stuurt image/video stream naar AtmoLight addon (Lokaal) -> stuurt deze naar RPi waar Hyperion op draait voor verwerking (LAN) -> Hyperion stuurt de LED info naar Arduino voor weergave (USB)


    Hallo iedereen,


    Ik ben nieuw met Hyperion en heb een vraag. Ik werk met Kodi-addon als grabber->Pi->arduino (usb)->ws2813.
    Mijn vraag is of iemand van jullie me kan helpen om "usb" in voorgaande regel te vervangen door "wifi".


    De info op deze site is me niet helemaal duidelijk:
    https://hyperion-project.org/wiki/UDP-Device


    Ik neem aan dat ik de regels bovenin mijn hyperion.config.json als volt moet aanpassen:
    "device" :
    {
    "name" : "MyPi",
    "type" : "udp",
    // "output" : "esp201-0.home:2392", "protocol" : 2, "maxpacket" : 1450,
    "rate" : 1000000,
    "colorOrder" : "rgb"
    },


    Maar wat moet IK invullen in plaats van "esp201-0.home:2392"? Het interne ip-adres? En welke poort? 2392?
    Bij mij zou dat zijn: 192.168.2.19:2392
    Maar dan gebeurt er niets. Ik neem aan dat ik de sketch voor de arduino (1.8.3) dan ook nog moet aanpassen?
    Zo ja, kan iemand me vertellen hoe?


    Groeten,


    Wim

    Think the moral of this story is start with a directly connected to the strip pi zero w and forget the Arduino :)


    I'm sorry but I disagree here, that is if I understand it all correct.
    I didn't want a hardware grabber and I would like to connect wireless from the pi. Could have been another ESP8266 device but I didn't know at the time I bought the arduino. And with the arduino USB connected I knew the leds were working, so it had it's purpose also investigating what went wrong.


    Thanks for the reply though ;)

    I remember you said that you have omitted the resistor on the data line of the led strip. I recall reading that the resistor is there to help remedy flickering.


    You WERE wright Akriss. I put in a resistor and no flickering anymore. I setup the correct layout and it seems to work okay. Just playing around a bit now with black border detection, getting the correction aspect ratio from pc to tv and making a frame for the leds
    .
    Unfortunately no time to investigate the link you wrote about the wifi module the coming days before we're going on holiday with the kids this friday (which is obviously also great). Will do that when I come back. Maybe I'll write a little manual from the experiences I had to get this far.
    Thanks again Akriss for sticking with me and I'll be back here.


    Wim

    I remember you said that you have omitted the resistor on the data line of the led strip. I recall reading that the resistor is there to help remedy flickering.


    Well, lowering smoothing and framegrabber frequency didn't change it.
    I think you were wright Akriss. I remembered that when I started, I attached arduino to pc and there were also flashes. So I'm going to buy a resistor tomorrow.