[arm-allstar] How to use Raspberry Pi GPIO pins to connect and disconnect a node

Doug Crompton wa3dsp at gmail.com
Wed Jan 29 14:48:44 EST 2020


Steve,

  I see other ways were suggested that may work for you but if you want to
do this with GPIO you can but it would involve writing a script to do it.
Rather than my writing a script example see
/usr/local/sbin/example_scripts/intruder_check.sh or power_fail_check.sh

Those scripts will give you examples of how to use the gpio command to
interrogate pins on the Pi. You would need to monitor two pins and execute
direct asterisk commands to connect and disconnect based on the status of
the pins. I am not sure this is a great way to do it but it could be made
to work if that is what you want to do. Be aware that while in your case
you would only be applying a ground to each pin to make it low you cannot
apply voltage to Pi GPIO pins of greater than 3 volts or you will damage
the Pi.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Wed, Jan 29, 2020 at 1:46 PM "Steve Sedgwick via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> Hi,
>
> Has anyone created a way to use two GPIO pins on a Raspberry pi node to
> connect and disconnect that node to another node or hub? What I want to
> be able to do is on my node I want to be able to press a pushbutton that
> is connected to a GPIO pin on my node and that press causes my node to
> connect to a predetermined node, for example connecting node 12345 to
> node 54321.  I would also like to be able to press a second pushbutton
> and disconnect my node from a predetermined node, for example disconnect
> node 54321 from node 12345.  I want this for my mobile node so I don't
> have to dial the normal node connection/disconnection sequences.  It's a
> lot easier for me to press one button on my node than it is to press 7
> or eight touch tone keys on a microphone or HT while drive down the road
> a 70 mph.
>
> Thanks, 73
>
> Steve_WB8GRS
>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org


More information about the ARM-allstar mailing list