Skip to content

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

@CatInTheRain

Description

@CatInTheRain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions