Maker Pro
Configurable Logic Block

Secure PWM-Based Peltier Cell Controller for Mushroom Cultivation Cabinets

RH
July 14, 2025 by Rodrigo Hernandez
Share
banner

This project involves designing a control and monitoring system for temperature regulation in a closed cabinet using Peltier cells. The core implementation leverages the PIC16F13145 microcontroller with Configurable Logic Blocks (CLB) to drive a PWM-based control system.

Project Objectives

This project implements the following:

  • Microcontroller: PIC16F13145 handles core logic and security configuration.
  • CLB Integration: Implements custom logic for real-time PWM signal adjustments.
  • PWM Drive: Controls the Peltier cells' current according to a set point.

Monitoring & Control


Signal Acquisition:

  • Current measurement from Peltier cells.
  • Temperature sensing inside the cabinet.

Feedback Loop:

  • Adjusts PWM duty cycle based on temperature/current data.
  • Maintains precise thermal stability.


System overview

The following figure shows the complete system view. Notice that in this project we are just developing the cell current control.

Complete System View

The system works as follows:

  1. The IoT device establishes a current set point according to the temperature value and the required temperature set point.
  2. The PIC16F13145 uses the current set point to adjust the PWM signal that controls the H-Bridge.
  3. The H-Bridge delivers the power to the Peltier cell, while the current sensor measures the current.
  4. The PIC16F13145 adjusts the PWM signal using a PID control.

Lab Testing

Connection Diagram

Related Content

Comments


You May Also Like