Doesn’t really matter if it is efficient or not, I’m trying to identify what will increase the efficiency, in any case it’s not really going to be used to get good power output. The project is more of a scientific nature.
The machine in question is a Kollmorgen synchronous motor ss242.
What I am trying to control is to ensure that two transistors are on at a time during operation, while ensuring that the system is able to self-start or stop given certain wind speeds. I also want a sinusoidal or triangular output.
This is the code I have managed to write currently, any advice on how to approach it further would be greatly appreciated. Setting the system to give me PWM seems iffy and I know I do lack something, but I am unsure on what.
int set1L =38;
int set1H =39;
int set2L =37;
int set2H =36;
int wind_sensor = ;
if (wind_sensor > 2 or wind sensor < 10;)
digitalWrite(set1L, LOW); // Forward motion
else if (wind_sensor < 2 or wind sensor > 10;)
digitalWrite(set1L, HIGH); //Reverse motion