[arm-allstar] How To for using GPIO on the DMK URI?
Doug Crompton
doug at crompton.com
Fri Dec 18 15:25:33 EST 2015
John,
Well anything I can do to help let me know. A serious control project would certainly need more than that provided by the sound USB FOB. The wiringpi gpio command is really easy to use. Look at the 'gpio readall' output and you will see all the Pi bits and their current states. The howto shows simple examples of how to set bits to input or output and read the input or change the output state. There is also easy interrupt driven bit reading.
There are many companies that make I/O boards for the Pi. Here is one that I have bought from and they are very well made boards -
https://www.abelectronics.co.uk/products/17/raspberry-pi-plus/
Also if you look at the USB to GPIO howto you will see relay boards in the photos. These relay boards are very inexpensive and can be driven directly from the Pi GPIO - 3.3V lines. They have opto isolators on the input. With a GPIO expander and four 8 channel relay boards you could control up to 32 external lines.
73 Doug
WA3DSP
http://www.crompton.com/hamradio
From: wb5nfc at gmail.com
Date: Fri, 18 Dec 2015 13:59:44 -0500
To: arm-allstar at hamvoip.org
Subject: Re: [arm-allstar] How To for using GPIO on the DMK URI?
Hello Doug. Thanks for the additional information. I looked at the how-to information on the web page but frankly, it scared me off.... I don't understand enough about what I'm reading to even know where to begin. It's not a lack of information, but rather a lack of understanding on my part. I'll go back and re-read everything again and see if it sinks in a little better on the second or third read through.
There are two of us who are embarking on a control project - the other ham is just getting started. He's awaiting delivery of his first DMK URI. He has a far-better engineering background than I, but he's not at all familiar with Linux. Once we get his node on the air, then we will both be asking a lot of questions, I'm sure. Many thanks to you and everyone on the list for your patience and willingness to help others.
John
On Fri, Dec 18, 2015 at 12:34 PM, Doug Crompton <doug at crompton.com> wrote:
John,
While the sound USB FOB extra GPIO bits are there and can certainly be used don't be afraid of the Pi GPIO. The howto is on the web page as well as a project that uses USB to create GPIO. Both definitely work and if you need more bits that would be the way to go. The Pi I/O using WiringPi is built-in to the hamvoip.org Pi image. Any of these methods can be used via scripts and Allstar. I use the USB GPIO project shown in how-to's on the web page at my Allstar demos, setting and resetting bits controlling relays via DTMF.
Just remember that direct Pi GPIO is 3.3 volts!
73 Doug
WA3DSP
http://www.crompton.com/hamradio
From: wb5nfc at gmail.com
Date: Fri, 18 Dec 2015 10:26:14 -0500
To: arm-allstar at hamvoip.org
Subject: [arm-allstar] How To for using GPIO on the DMK URI?
I'm just beginning to look at using some of the GPIO functions available in the Rpi2 / DMK URI. Looks like there are LOTS of different ways to accomplish the same task. To get started, I'd like to keep things as simple as possible. Really don't want to use the Pi's GPIO pins or an outboard USB device. Can someone point me in the right direction for information on controlling the URI's GPIO pins 1, 2 & 4?
Thanks!
John
_______________________________________________
arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org
_______________________________________________
arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org
_______________________________________________
arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20151218/2c33dbc9/attachment.html>
More information about the arm-allstar
mailing list