[arm-allstar] RGB LED RPI

Doug Crompton wa3dsp at gmail.com
Sun Oct 8 17:59:35 EST 2017


Just want to make sure you were aware you do not have to use 'c' or compile
anything to use wiring pi. It has direct Linux commands....

https://www.hamvoip.org/GPIO_how-to.pdf

A note of caution when using Pi IO. While it is fun to play with GPIO be
careful about bringing wires in and out of a Pi. You can introduce EMI that
can both effect radios on the outside and also cause stability issues on
the Pi due to outside RF or EMI getting in. This is especially true in high
RF environments. Also the RPI GPIO pins can never have more than 3.3 volts
applied to them.

As i stated earlier both the RX and TX bits are available at the USB FOB if
configured. The USB FOB I/O is 5V TTL.


*73 Doug*

*WA3DSP*

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


On Sun, Oct 8, 2017 at 4:32 PM, "Peter via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Tom,
>
> I use the events subsystem and the wiring Pi library.
>
> The key thing here is a few entries in rpt.conf
>
> ;
> :
>
> [events]
> /usr/local/sbin/1low = s|t|RPT_TXKEYED
> /usr/local/sbin/1high = s|f|RPT_TXKEYED
> /usr/local/sbin/0low = s|t|RPT_RXKEYED
> /usr/local/sbin/0high = s|f|RPT_RXKEYED
>
> ;
> ;
>
> Going to and from an event like RX(COS) keyed or unkeyed will fire off a
> shell command, in my case a 4 applications to toggle to state of GPIO pins.
>
>
> Here is the source of the application to toggle GPIO 0 LOW, edit as needed
> for each pin/state.
>
> #include <wiringPi.h>
> #include <stdlib.h>
> int main (void)
> {
> wiringPiSetup () ;
> pinMode (0, OUTPUT) ;
>
> {
> digitalWrite (0, LOW) ;
> }
> exit (0) ;
> }
>
>
> To compile:
>
>
> gcc -Wall -o 0low 0low.c -lwiringPi
>
>
> Do the same for the other 3 stats/pins.
>
> The LED is an RGB 'common anode' supplied from the 3.3v rail via a 10k
> resistor. Here is a close up of the LED, just a bit of matrix board and
> some header pins. https://www.flickr.com/photos/127794264@N08/36908775383/
>
> Yes, there are other ways of doing it, either controlling the GPIO pins or
> driving the LED from hardware external to the Pi. This is how I do it which
> is simple and with reproducible results.
>
> HTH
>
> 73
> Peter
> G7RPG
>
>
>
> On 08/10/2017 20:24, "TomXtal via arm-allstar" wrote:
> Thanks for your input Doug. I have watch a youtube of Peter Kendall G7RPG
> of his micro node www.youtube.com/watch?v=CTIgOlsq9jI<http://www.
> youtube.com/watch?v=CTIgOlsq9jI> which uses a status LED, this is what
> I'm trying to do. I can see it is wire to the GPIO pins but I can not see
> which pins are being used.
>
> Tom
>
> "Doug Crompton via arm-allstar" <mailto:arm-allstar at hamvoip.org><mailto:
> arm-allstar at hamvoip.org>
> 08 October 2017 19:27
> Tom,
>
> You did not say what you want the LED to indicate but I suspect that the
> node is transmitting and receiving? There are no pins on the RPI that
> indicate TX/RX status. TXD and RXD are serial port pins that send digital
> data. All pins on the Pi are 3.3V max also.
>
> The PTT indication is available on the USB FOB. Most FOBS have an LED
> indicating this. If not the PTT line could be used as a pull down for an
> LED wired to +5V through an appropriate resistor.
>
> For RX the COS signal can be programmed to raise or lower an unused bit on
> the FOB - see the txctcss howto on the hamvoip web page. You also could do
> this with hardware and build a little circuitry to use the COS line to turn
> on the LED. This could need to be inverted depending on how your radio uses
> the COS line.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio><
> http://www.crompton.com/hamradio>*
>
>
>
>
> On Sun, Oct 8, 2017 at 2:15 PM, "TomXtal via arm-allstar" <
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
> "TomXtal via arm-allstar" <mailto:arm-allstar at hamvoip.org><mailto:
> arm-allstar at hamvoip.org>
> 08 October 2017 19:15
> I have build a Allstar node with RPI 3 which works just fine. What I would
> like to do is have a status LED using a RBG LED, I would like to know which
> GPIO pins to use. I know i can use pin 2 or 4 for power no but do not know
> which pins for TX and RX maybe pin 8 (TXD) and pin 10 (RXD). So I need some
> advice.
>
> Tom
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 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/3 web page - http://hamvoip.org
>


More information about the arm-allstar mailing list