Serial values not changing (Arduino UNO and FSi6)

I am using a FSi6 transmitter and receiver and an arduino uno for my project.


My objective is simple, I have to monitor the values from Channel 2 and Channel 4 of the transmitter through the serial monitor in order to proceed with my project.


For this purpose, I am using the following code:

void setup() {
  // Initialize serial communication
  Serial.begin(9600);
}

void loop() {
  // Read the values of Channel 1 and Channel 2
  int ch2 = pulseIn(2, HIGH, 25000); // Read the pulse width of channel 2
  int ch4 = pulseIn(3, HIGH, 25000); // Read the pulse width of channel 4

  // Print the values to the serial monitor
  Serial.print("Channel 2: ");
  Serial.print(ch2);
  Serial.print("\tChannel 4: ");
  Serial.println(ch4); 

  delay(1000); // Delay for stability
}

After connecting my arduino UNO to my computer, opening the serial mointor (ensuring 9600 baud is selected) the values are changing in the beginning. However, after a certain time varying the position of my joystick which controls Channel 2 and Channel 4, doesn't change the values. The serial monitor gives a constant reading of '0' for both channels:

Channel 1: 0 Channel 2: 0
Channel 1: 0 Channel 2: 0

Channel 1: 0 Channel 2: 0
Channel 1: 0 Channel 2: 0

Channel 1: 0 Channel 2: 0
Channel 1: 0 Channel 2: 0

Channel 1: 0 Channel 2: 0

Can you post a schematic and pictures please.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.