Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fan does not turn on (Board Version 1.1) #21

Open
CatInTheRain opened this issue Feb 5, 2024 · 0 comments
Open

Fan does not turn on (Board Version 1.1) #21

CatInTheRain opened this issue Feb 5, 2024 · 0 comments

Comments

@CatInTheRain
Copy link

CatInTheRain commented Feb 5, 2024

Hi, thanks for continue to update the firmware of Rosbot XL! I updated our machine (Board Version 1.1) to the last release (V1.4.0) of your firmware, but the fan are always turned off. I think the problem is in HardwareLoopTask() because after some attempts I realized that code never goes inside the function FanHardwareInit(). In fact I edit the code in these way:

void FanHardwareInit(void)
{
  if (GetBoardVersion() == (String) "v1.1") {
    digitalWrite(FAN_PP_PIN, HIGH);
    pinMode(FAN_PP_PIN, OUTPUT);
  }
  if (GetBoardVersion() == (String) "v1.2") {
    analogReadResolution(ADC_RESOLUTION);
    digitalWrite(FAN_PWM_PIN, HIGH);
    pinMode(FAN_PWM_PIN, OUTPUT);
  }
  digitalWrite(FAN_PP_PIN, HIGH);
  pinMode(FAN_PP_PIN, OUTPUT);
}

and fan were still turned off.

Then I revert and I put these lines only in BoardGpioInit() :

void BoardGpioInit(void){
  ...
  digitalWrite(FAN_PP_PIN, HIGH);
  pinMode(FAN_PP_PIN, OUTPUT);
}

and fan finally started to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant