[General] Model fs ct6b transceiver

Status
Not open for further replies.

K Srinivas Pavan Kumar

Member level 3
Joined
Jun 20, 2015
Messages
66
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
524
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);
}
}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…