Si usted controla Echolink utilizando el VOX de su equipo de radio lo publicado anteriormente esta bien y trabaja, ahora si usted no tiene VOX en su radio deber utilizar COS y esta es una de las maneras. Debido a que los equipos tiene un led para indicar recepcion (de color verde) aqui hice un circuito bien simple para tomar el color verde y asi generar COS sin tocar el equipo de radio.
![](https://static.wixstatic.com/media/97e94a_4b455f7973f442538246509f1d16ecfa~mv2.jpg/v1/fill/w_600,h_364,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/97e94a_4b455f7973f442538246509f1d16ecfa~mv2.jpg)
Y este el programa para Arduino:
#include <SparkFun_APDS9960.h>
// Watch video here: https://www.youtube.com/watch?v=BERHEVgaX40
/*
// TCS230 color recognition sensor
// Sensor connection pins to Arduino are shown in comments
Color Sensor Arduino
----------- --------
VCC 5V
GND GND
s0 8
s1 9
s2 12
s3 11
OUT 10
OE GND
*/
const int s0 = 8;
const int s1 = 9;
const int s2 = 12;
const int s3 = 11;
const int out = 10;
// LED pins connected to Arduino
int redLed = 2;
int greenLed = 3;
int blueLed = 4;
// Variables
int red = 0;
int green = 0;
int blue = 0;
void setup()
{
Serial.begin(9600);
pinMode(s0, OUTPUT);
pinMode(s1, OUTPUT);
pinMode(s2, OUTPUT);
pinMode(s3, OUTPUT);
pinMode(out, INPUT);
pinMode(redLed, OUTPUT);
pinMode(greenLed, OUTPUT);
pinMode(blueLed, OUTPUT);
digitalWrite(s0, HIGH);
digitalWrite(s1, HIGH);
}
void loop()
{
color();
Serial.print("R Intensity:");
Serial.print(red, DEC);
Serial.print(" G Intensity: ");
Serial.print(green, DEC);
Serial.print(" B Intensity : ");
Serial.print(blue, DEC);
//Serial.println();
if (red < blue && red < green && red < 20)
{
Serial.println(" - (Red Color)");
digitalWrite(redLed, HIGH); // Turn RED LED ON
digitalWrite(greenLed, LOW);
digitalWrite(blueLed, LOW);
}
else if (blue < red && blue < green)
{
Serial.println(" - (Blue Color)");
digitalWrite(redLed, LOW);
digitalWrite(greenLed, LOW);
digitalWrite(blueLed, HIGH); // Turn BLUE LED ON
}
else if (green < red && green < blue)
{
Serial.println(" - (Green Color)");
digitalWrite(redLed, LOW);
digitalWrite(greenLed, HIGH); // Turn GREEN LED ON
digitalWrite(blueLed, LOW);
}
else{
Serial.println();
}
delay(300);
digitalWrite(redLed, LOW);
digitalWrite(greenLed, LOW);
digitalWrite(blueLed, LOW);
}
void color()
{
digitalWrite(s2, LOW);
digitalWrite(s3, LOW);
//count OUT, pRed, RED
red = pulseIn(out, digitalRead(out) == HIGH ? LOW : HIGH);
digitalWrite(s3, HIGH);
//count OUT, pBLUE, BLUE
blue = pulseIn(out, digitalRead(out) == HIGH ? LOW : HIGH);
digitalWrite(s2, HIGH);
//count OUT, pGreen, GREEN
green = pulseIn(out, digitalRead(out) == HIGH ? LOW : HIGH);
}
Como detectar un COS en un equipo de radio desde afuera
Sistema Terminado
![](https://static.wixstatic.com/media/97e94a_ef9ad37efe4f4906814fa7f05e914b4e~mv2_d_1955_1465_s_2.jpg/v1/fill/w_100,h_75,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/97e94a_ef9ad37efe4f4906814fa7f05e914b4e~mv2_d_1955_1465_s_2.jpg)
![](https://static.wixstatic.com/media/97e94a_e61af76fc3da4139842aa2d3daf29597~mv2_d_2016_1512_s_2.jpg/v1/fill/w_100,h_75,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/97e94a_e61af76fc3da4139842aa2d3daf29597~mv2_d_2016_1512_s_2.jpg)
![](https://static.wixstatic.com/media/97e94a_9abb392c4ec94d27b0b5c61a6a5487d7~mv2_d_2016_1512_s_2.jpg/v1/fill/w_102,h_76,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/97e94a_9abb392c4ec94d27b0b5c61a6a5487d7~mv2_d_2016_1512_s_2.jpg)
![](https://static.wixstatic.com/media/97e94a_107a437275ac4a9ebf3997691251f4a3~mv2_d_2016_1512_s_2.jpg/v1/fill/w_101,h_76,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/97e94a_107a437275ac4a9ebf3997691251f4a3~mv2_d_2016_1512_s_2.jpg)
![Interface](https://static.wixstatic.com/media/97e94a_0335a478981d483e9c96255343c7b52af002.jpg/v1/fill/w_897,h_505,enc_auto/file.jpeg 1x, https://static.wixstatic.com/media/97e94a_0335a478981d483e9c96255343c7b52af002.jpg/v1/fill/w_1794,h_1009,enc_auto/file.jpeg 2x)