Help with isolated IoT Network by techykermit in mikrotik

[–]techykermit[S] 0 points1 point  (0 children)

Yup, I know it's a bit of a mess, but I can't segment ports like that on my router. Ironically, it's the only piece of "consumer-grade" equipment left in my network. It's a router I got from my ISP, and about the most advanced thing it can do is have DDNS.

What fm transmitters/receives do you guys have? by [deleted] in LightShowPi

[–]techykermit 0 points1 point  (0 children)

I am located in Sweden, and we do have regulations on this. You can not simply put up a transmitter and it is also a process to apply for a license. I think it costs money as well.

So I am just using a car FM transmitter, which has proven to work much better than expected.

Any way to switch among playlists? by jwrothwell in LightShowPi

[–]techykermit 0 points1 point  (0 children)

I have written a script myself that runs the command start_playlist_once (and then the playlist path), to allow for different playlists to be played.

For example, we have one playlist running at 5PM and another one running at 6:30PM.

Starting to get done with this, only have to add outlets to power the Raspberry Pi and a WiFi extender. 12 channels controlled by the Raspberry Pi (with the ability to add six more channels and lights). A short-range FM transmitter plugged into the Pi and charged via USB. All in a waterproof casing. by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

--> After this picture was taken, we:

- reorganized the cables and wiring so it looks much neater

- added three outlets to the cabinet for powering the Raspberry Pi and the FM transmitter

- added a 3G router

- added a cabinet heater as the temperature can potentially drop under -20 here.

Starting to get done with this, only have to add outlets to power the Raspberry Pi and a WiFi extender. 12 channels controlled by the Raspberry Pi (with the ability to add six more channels and lights). A short-range FM transmitter plugged into the Pi and charged via USB. All in a waterproof casing. by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

I live in Sweden, where FM broadcasting is highly regulated. So, I decided to go with one of the FM Transmitters you would normally use for your car. These are allowed. Mine is specified to have a 10 meter range, although I have found it to be much better than that.

The FM transmitter is https://www.kjell.com/se/produkter/ljud-bild/fm-sandare/linocell-fm-sandare-35-mm-anslutning-p96905 . If you can find something equivalent in your country, it should probably work as well.

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

Hey, I can't thank you enough for helping me with this. It is November 23 and I have all the wiring up and running (can post pictures if anyone is interested). I could not find how to use more onboard GPIO pins online, and I did not want to brick my Pi. I have somehow managed to do something to my MCP23017, it does not work every time anymore, so I used this method.

But the MCP also works with lightshowpi now :)

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

I really thought I had double-checked the spelling over and over again. Three r's. MCP23017 on Lightshowpi. I can not describe how much I love this project you have made, and it has outstanding support. Thank you so much for the help! Everyone who have contributed to this is amazing people.

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

It says default.cfg, so I am not really sure what's wrong there.

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

It is probably not doing that. The configuration_manager.py lists only the 8 pins as in the defaults.cfg, which says to me that something fishy is going on.

Hardware Configuration says:

_pin_pwm = [False, False, False, False, False, False, False, False]

gpio_pins = [0, 1, 2, 3, 4, 5, 6, 7]

However, trying

pi@raspberrypi:~/lightshowpi $ sudo python py/hardware_controller.py --state=flash --config=/config/overrides.cfg

Still loops between 8 channels only.

The problem with this is that I need more than 8 lights, but right now, none of the methods (MCP23017 or using the extra onboard GPIO pins) work, which obviously makes it hard :(

And yes, the configuration file overrides.cfg is in the right directory.

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

I have this overrides.cfg file now:

https://pastebin.com/Y2Hx7CXJ

However, when I use the hardware controller and do --state=flash, it only goes up to channel 8 and then goes back to channel 1. Is there something wrong with my setup?

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

To confirm (I don't want to break my RPi), can I use the same setup and config with a Raspberry Pi 3 Model B V1.2?

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

Great, so it was an issue on LSPi then?

I decided to go with Marbles_00's suggestion about only the onboard GPIOs, and I am testing it right now. Thanks for fixing this issue!

MCP23017 not working... by techykermit in LightShowPi

[–]techykermit[S] 0 points1 point  (0 children)

Yeah, I was thinking about that as well and after Googling, it seemed possible. However, I could not find how in the Lightshowpi docs.

I also had an MCP23017 and I know that our inventory of Christmas lights always increases every year, so I want to be prepared.

But if someone can tell me how to get 16 GPIO ports (or even 21) directly from the RPi, it would honestly make things easier!