WeatherDuino Forum

Full Version: Automatic programming switch
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

for those who are using their WeatherDuino with a Raspberry Pi and maybe do not sit directly beneath it like me.
I'm running my system mostly from far away or at least there are some stairs between me and the WetherDuino.

So I looked for an idea how to get into programming mode from away and I found those relay modules with high level trigger.
They are available at ebay or aliexpress but be careful to get one which has an high level trigger (reacting from 3V) and is opto-isolated.
For example this one: https://www.aliexpress.com/item/33050592084.html

Then if you want to program you can set your connected Pin to high with a bash command.
https://raspberrypi-aa.github.io/session2/bash.html

At the moment I'm waiting for the module to arrive - I will keep you updated how things are going.

Regards,
engolling
(03-11-2019, 20:43)engolling Wrote: [ -> ]So I looked for an idea how to get into programming mode from away and I found those relay modules with high level trigger.
They are available at ebay or aliexpress but be careful to get one which has an high level trigger (reacting from 3V) and is opto-isolated.
For example this one: https://www.aliexpress.com/item/33050592084.html

Then if you want to program you can set your connected Pin to high with a bash command.
https://raspberrypi-aa.github.io/session2/bash.html

Like
(03-11-2019, 20:43)engolling Wrote: [ -> ]....
I'm running my system mostly from far away or at least there are some stairs between me and the WetherDuino.

Smile Smile Smile
The device arrived and I connected the programming switch to the normaly open output of the relay module.
The V+ of the module is connected to 5V of the Raspberry and the V- is connected to GND of the Raspberry and, last but not least the input is connected to GPIO23 of the Raspberry.

The WeatherDuino can be set to programming mode by executing the attached bash script.