yes clear drawing and everything, you are much better in illustrator than me hahaha.
but i have a question, i see that you use a 5 volts 2 channel switch, does it switch with a remote on 433/868 Mhz or only trough GPIO output of raspi?
reason i ask i see only 1 channel connected on K1 (IN1) NC connected but K2 isn't used (IN2) on NC toggle commands?
i see that you connected 5 volts line to the ledstrip in parallel from the 2 channel swith and manual switch
and whats the reason for the U:classy:SB to rs232 enable_uart=1 in config.txt what can you do with this on your raspi exactly?
nice setup and good 4k-splitter
Alles anzeigen
Absolutely hopeless in Illustrator and that would involve a VM or worse - a reboot into windows :roflmao: plus Inkscape does everything
Yes its a bit of both mate, My current setup still uses the manual switch and K2 is unused but as an extra Relay would be super useful for killing the supply to the ledstrip with minimal effort so i included it and faded them out and added a note to show its possible to peeps, you'd need to run a wire to the GPIO to control the switch though. When im building my case I will move to that exact setup because if the Pi is not there I don't need power to the strip and its the cleanest way i can see.
Controlling the relay - a simple true or false, 1 or 0, high or low to that pin is all that's required so very flexible in how you use it, mine goes like this
Remote Press -> Ir Receiver (detects hex code) -> Ardruino Micro PRO (takes hex and converts it to keyboard keystroke) -> Pi via USB (Pi thinks someone just pressed a physical keyboard button) -> Libreelec (takes that keyboard press and remaps it via keyboard.xml to run a script) = Some script just ran to pull the GPIO to activate or deactivate relay
I explained the UART in a post above mate but ill give you a few real life examples of it in action, the config section is just to enable the interface - This would be the alternative method of connecting an Ardruino to a Pi without a USB cable, Instead of the Ardruino I am going straight into the TV's serial line as it allows full control of every single thing I can get to in my TV menu without having to go near a menu button, even picture modes and TV retune if required.
I only use 2 HDMI sources so i have 1 button on the remote that i want to press to change to the other Input, I don't want to use the specific TV remote as its got too many buttons i don't use, plus then its maybe 3-5 presses to get to the source i want to be on, time is too precious for all that jazz ;), instead i control it all with my media centre remote. 1 press of 1 button, the sequence above happens, then it runs a script cycle_source.py Then the following happens...
First it uses the serial line to find out exactly what source the TV is currently on,
If its on kodi it enables the K1 relay via GPIO, Changes the TV source via Serial Line, disables the GRABBER and enables the V4L via Hyperion JSON-RPC
If its on the other source it does the opposite - so each time button is pressed it cycles the source, capture devices and LEDS to suit.
Another script runs on another button to enable or disable the LEDDEVICE depending on current state via JSON-RPC
Another runs when TV power button is pressed and turned off we steal that code too and run another script to kill the relay and disable all the grabbers and LED's
thats the power and/or GPIO connected to the strip, every time the power comes on and feeds the strip thus Hyperion.NG boots up and steers the lights then its okay.
the moment the signal is off ( data flow from GPIO isnt flowing anymore) Hyperion is off/raspi is off but ledstrip is still connected to 5 volts line GPIO and ground then following happens.
with a little current you can test this with fingers, just touch the dataline :). So as long the ledstrip is connected to PSU ( 5 volts/GND ) and GPIO connected to data the minimal of current diffrence in line and/or GPIO will result in some/one/or string of leds wil light ( soft)
the only thing you can do to resolve completely is cut of 5 volt feed, which you did already :biggrin:
what you discribed is because the leds is really sensitive for sudden dataflow/current
Alles anzeigen
Yeah spot on mate, I solved that ages ago and forgot to remove it :LOL: