oss-slu / Pi4Micronaut

A java library combining Micronaut and Pi4j to streamline hardware connectivity to Raspberry Pi's
https://oss-slu.github.io/Pi4Micronaut/
Apache License 2.0
7 stars 6 forks source link

Fan Support #45

Closed GreihMurray closed 1 month ago

GreihMurray commented 1 year ago

Add support for controlling a fan using the Pi4J library. This involves creating a class that handles fan initialization, speed control, and state management. Tasks:

  1. Include a circuit diagram and breadboard layout.
  2. Integrate GPIO pin configuration for fan control. Like yaml configurations
  3. Create FanHelper.java class.
  4. Implement methods for: Starting the fan Stopping the fan Setting the speed of the fan
  5. Provide functioning code to integrate the component with Micronaut.

Acceptance Criteria:

  1. FanController.java class with methods: start(), stop(), and setSpeed(int speed).
  2. GPIO pin configuration.
  3. Component operates correctly on hardware.
yrlmanoharreddy commented 1 month ago

Add support for controlling a fan using the Pi4J library. This involves creating a class that handles fan initialization, speed control, and state management. Tasks:

  1. Include a circuit diagram and breadboard layout.
  2. Integrate GPIO pin configuration for fan control. Like yaml configurations
  3. Create FanController.java class.
  4. Implement methods for: Starting the fan Stopping the fan Setting the speed of the fan
  5. Provide functioning code to integrate the component with Micronaut.

Acceptance Criteria:

  1. FanController.java class with methods: start(), stop(), and setSpeed(int speed).
  2. GPIO pin configuration.
  3. Component operates correctly on hardware.
yrlmanoharreddy commented 1 month ago

Greih Murray old comments about the issue

Includes the need for a circuit, breadboard diagram, and functioning code to integrate the component with Micronaut

Will likely be a PWM device but not certain.