I am trying to make a program that allows me to control the Arduino to send out a HIGH signal to turn my motor and there will be a feedback through serial that tells me that the motor has been moved.
My problem is that I am unable to get any feedback from the Arduino. These are my code snippets.
SerialPort serialComms;
Select_Arduino.IsEnabled = false;
serialComms = new SerialPort(Port_Name.SelectedItem.ToString(), Convert.ToInt32(Baud_Rate.SelectedItem.ToString()));
serialComms.DtrEnable = true;
serialComms.DataReceived += serialComms_DataReceived;
void serialComms_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
SamsungTV.Text = SamsungTV.Text + "\n" + e.ToString();
}
The program totally does not enter serialComms_DataReceived. Is there any way for me to receive the feedback?
The feedback is as so "The motor has been moved 15 degrees counter-clockwise."