K Srinivas Pavan Kumar
Member level 3
Hi,
I am making use of the MODEL FS CT6B tansmitter and receiver, which is used to transmit the data wirelessly.
First of all I want to test that one
For that purpose I am making use of servo motor to switch between the channels
First of all I want to test by blinking LED by switching between the channels using arduino software . Can anybody guide me .
I have written the code as follows but it is not working
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(5, INPUT); //This is connected between receiver and arduino
pinMode(6, OUTPUT); //LED1
pinMode(9, OUTPUT); //led2
pinMode(10, OUTPUT); //led3
}
void loop() {
// put your main code here, to run repeatedly:
int a=pulseIn(5, HIGH);
Serial.println(a);
if(a>0)
{
digitalWrite(6, HIGH);
delay(1000);
digitalWrite(6, LOW);
delay(1000);
}
}
I am making use of the MODEL FS CT6B tansmitter and receiver, which is used to transmit the data wirelessly.
First of all I want to test that one
For that purpose I am making use of servo motor to switch between the channels
First of all I want to test by blinking LED by switching between the channels using arduino software . Can anybody guide me .
I have written the code as follows but it is not working
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(5, INPUT); //This is connected between receiver and arduino
pinMode(6, OUTPUT); //LED1
pinMode(9, OUTPUT); //led2
pinMode(10, OUTPUT); //led3
}
void loop() {
// put your main code here, to run repeatedly:
int a=pulseIn(5, HIGH);
Serial.println(a);
if(a>0)
{
digitalWrite(6, HIGH);
delay(1000);
digitalWrite(6, LOW);
delay(1000);
}
}