User avatar
Thursten
Posts: 50
Joined: Thu Jul 20, 2017 3:19 pm
Location: Eindhoven, The Netherlands

GPIO LEDs remotely controlled.

Mon Mar 26, 2018 9:26 am

Hello all,
I'm sorry if this is the wrong section, I didn't really know which one to choose from..

What I want to do is the following:

I have a google assistant running on a Pi 2B with Domoticz. I want to connect a few LEDs to my Pi 1B (I believe it was) and control them through my Assistant.

I have basic understanding of electronics and Python. But I'm kinda stuck on how to get the two to communicate..
Let's say I want to tell my assistant something like: "Hey Google the kitchen counter is way to dark!"
*It sends the command or something and the LEDs on my Pi 1 turn on*
When I say: "Hey Google I don't need to see the kitchen counter anymore"
*It sends the "turn off LEDs" command*

Any tips or pointers? Maybe some tutorials (also on GPIO in general I've been reading about it and it's very interesting!)?

Thanks in advance!
Greetz,
Thursten

Edit:
Would it be as simple as calling for example: "Kitchen_Leds_on.py" and "Kitchen_Leds_off.py" through SSH?

User avatar
B.Goode
Posts: 8987
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: GPIO LEDs remotely controlled.

Mon Mar 26, 2018 9:37 am

You could implement this using the Remote GPIO facilities provided by the gpiozero Python library module.

https://gpiozero.readthedocs.io/en/stab ... _gpio.html

User avatar
Thursten
Posts: 50
Joined: Thu Jul 20, 2017 3:19 pm
Location: Eindhoven, The Netherlands

Re: GPIO LEDs remotely controlled.

Mon Mar 26, 2018 9:55 am

Wow thanks, that looks promising! =D

Return to “Automation, sensing and robotics”