Skip to the content
2 layers70 × 45 mmTemp proj, the printed circuit board in 3D

This project controls the speed of a DC motor based on temperature. An LM35 sensor detects the temperature and compares it with a reference voltage using an LM358 Op-Amp. The output of the Op-Amp adjusts the duty cycle of a PWM signal generated by a 555 Timer, which is used to control the motor speed via an L293D motor driver.

Size
70 × 45 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
18
Pads
51
Tracks, vias
83, 2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
18 Apr 2025
Updated
18 Apr 2025

Overview

Temp proj is an open-source printed circuit board by Chaityakul05, from the Chaityakul05/TEMPERATURE_BASED_MOTOR_SPEED_CONTROL_PCB repository on GitHub. It is a 2-layer board of 70 × 45 mm with 11 parts on 18 nets, routed with 83 tracks and 2 vias.

It is built around the L293D and LM358. Its parts include 4 ICs, 3 resistors, 1 capacitor and 1 connector. It belongs with the robots and motor control and sensors and measurement boards of this library.

Main components

2

README

README.md

Temperature-Based DC Motor Speed Control

Overview

This project focuses on controlling the speed of a DC motor based on the ambient temperature. The system utilizes a combination of analog and digital components: the LM35 temperature sensor for temperature measurement, the LM358 Op-Amp for comparing the sensor output with a reference voltage, the 555 Timer IC to generate a PWM signal, and the L293D motor driver to control the motor's speed. As the temperature increases, the PWM signal's duty cycle increases, causing the motor to run faster.

Key Components

  • LM35: A temperature sensor that outputs an analog voltage proportional to the ambient temperature, with a sensitivity of 10 mV per °C.
  • LM358: An operational amplifier configured as a comparator to compare the temperature sensor's output with a reference voltage set by a potentiometer.
  • 555 Timer IC: A timer IC configured in astable mode to generate a continuous PWM signal. The duty cycle of this signal is controlled by the output from the Op-Amp.
  • L293D: A motor driver IC used to drive the DC motor by adjusting the voltage applied to the motor based on the PWM signal.
  • DC Motor: The motor whose speed is controlled by the PWM signal generated by the 555 Timer and regulated by the L293D motor driver.
  • Potentiometer: Used to set the reference voltage for the comparison with the LM35 output, determining the threshold temperature at which the motor speed increases.

Working Principle

  1. Temperature Measurement: The LM35 temperature sensor detects the ambient temperature and generates a voltage output that is linearly proportional to the temperature (e.g., 250 mV at 25°C).

  2. Signal Comparison: The LM358 Op-Amp compares the output from the LM35 with a reference voltage set by the potentiometer. When the temperature exceeds the threshold set by the potentiometer, the Op-Amp output switches states.

  3. PWM Signal Generation: The output of the LM358 Op-Amp is used to control the 555 Timer IC's duty cycle. The 555 Timer generates a PWM signal in astable mode, where the duty cycle is determined by the Op-Amp output. As the temperature rises, the Op-Amp output increases the PWM duty cycle, resulting in a faster motor speed.

  4. Motor Speed Control: The PWM signal generated by the 555 Timer is fed to the L293D motor driver, which adjusts the speed of the DC motor. The motor speed increases with higher temperature due to the higher PWM duty cycle.

Circuit Setup

  1. Temperature Sensing: The LM35 is connected to a power supply (typically 5V). Its output is connected to the non-inverting input of the LM358 Op-Amp.

  2. Reference Voltage: The reference voltage is set using the potentiometer. The wiper of the potentiometer is connected to the inverting input of the LM358.

  3. PWM Signal Generation: The output of the LM358 is connected to the control voltage pin (pin 5) of the 555 Timer IC, adjusting the duty cycle of the PWM signal generated by the timer.

  4. Motor Control: The PWM signal from the 555 Timer is fed into the L293D motor driver, which regulates the power supplied to the DC motor based on the PWM signal, controlling the motor speed according to the temperature.

Parts

11
QtyValueFootprintReferences
21kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R3
10.1ufCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
1L293DPackage_DIP:DIP-16_W7.62mmU4
1LM35-LPPackage_TO_SOT_THT:TO-92_InlineU1
1LM358Package_DIP:DIP-8_W7.62mmU2
1LM555xNPackage_DIP:DIP-8_W7.62mmU3
1Motor_DCConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalM1
1R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1
1Screw_Terminal_01x03TerminalBlock:TerminalBlock_Altech_AK300-3_P5.00mmJ2

Similar boards

  • 2 layers95.3 × 61 mmRingphone, the printed circuit board in 3D

    Ringphone

    matthijskooijman/Ringphone

    Hardware and software to let old analog phones ring and play audio

    47 parts1
  • 2 layers101.6 × 107.9 mmSistdig, the printed circuit board in 3D

    Sistdig

    dinge321/motor_pcb

    This is a pcb for a 6V motor project using an unspecified microcontroler with the driver L293D

    21 parts
  • 2 layers89.5 × 27.3 mmE Latch, the printed circuit board in 3D

    E Latch

    bgerp/ztm_doc

    This repository is made to hold all the schematics and sheets around the Zontromat project and BCVT. This includes: - Electrical schematics and sheets. - Electronic schematics and sheets.

    23 parts
  • 2 layers178 × 145 mmUltra DB X51 v1, the printed circuit board in 3D

    Ultra DB X51 v1

    ExploreEmbedded/8051_DevelopmentBoard

    Design files and sample code for 8051 development Ultra Boards

    145 parts70
  • 2 layers84.3 × 58.4 mmEnocderDriver, the printed circuit board in 3D

    EnocderDriver

    NikodemBartnik/Small-Projects

    All of smaller projects (Arduino, PCBs, electronics, code)

    35 parts55
  • 2 layers56.4 × 72.6 mmRas pi hat, the printed circuit board in 3D

    Ras pi hat

    geno543/Redropi_highway

    the project aims to detect asteroids and meteor movement using high-quality cameras and radar detection methods using an AI model for accurate analysis, and it classifies bodies be in three categories: non-meteor…

    8 parts13
  • 2 layers87.5 × 70 mmLaberinto, the printed circuit board in 3D

    Laberinto

    CRM-UAM/CRMaze

    Open source robot for maze solving + line following

    34 parts12
  • 2 layers92.5 × 62.5 mmDropGenPCB, the printed circuit board in 3D

    DropGenPCB

    harrislab-brown/DropGen

    DropGen uses a fluid reservoir and a piezoelectric buzzer to precisely and repeatably dispense small droplets on demand.

    25 parts12CC-BY-SA-4.0

Questions

How big is the Temp proj PCB?

It measures 70 × 45 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Temp proj use?

11 parts, built around the L293D and LM358. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Temp proj KiCad files?

From the Chaityakul05/TEMPERATURE_BASED_MOTOR_SPEED_CONTROL_PCB repository on GitHub, at the commit this page was made from: the board is Temp_proj.kicad_pcb and its schematic Temp_proj.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Temp proj design in my own project?

Its repository states no licence, so its author keeps all rights: ask Chaityakul05 before reusing the design.