Temperature Controlled Fan ON-OFF Switch Using Arduino Nano 16X2 LCD and LM35 Sensor

 

Compact Temperature controlled fan on/off switch is based on Arduino Nano multipurpose TWOVOLT shield, the circuit consist LM35 temperature sensor, 16X2 LCD, 12V relay including driver transistor, circuit works with 12V supply and can controlled any fan from 12V to 230V AC, for testing purpose I have connected 12V DC fan. At normally open switch of relay. The shield has many other parts can be omit if not required, refer circuit diagram for more info. Relay can switch load up to 7amps supply 5V to 230V AC.

Download PDF Schematic

 

Arduino Pins LCD

  • LCD RS pin to digital pin 12
  • LCD Enable pin to digital pin 11
  • LCD D4 pin to digital pin 5
  • LCD D5 pin to digital pin 4
  • LCD D6 pin to digital pin 3
  • LCD D7 pin to digital pin 2
  • LCD R/W pin to ground

Arduino Pins Various Devices

  • Switch 1 Arduino Pin A3
  • Switch 2 Arduino Pin D6
  • Switch 3 Arduino Pin D7
  • Current Sensor ACS714 Arduino Pin A5
  • Trimmer Potentiometer Arduino Pin A0
  • LM35 Sensor Arduino Pin A4
  • Power Mosfet Arduino Pin D9
  • Relay Arduino Pin D8

 

Default temperature trigger point is set to 35C, if you want to change the value , change here

Arduino Code for this project


/*
Tempereture Controlled Fan ON/OFF using arduino tempereture display on 16X2
LCD, Arduino Code, Circuit Diagram, PCB Layout Available at www.twovolt.com.
The project switch on the Fan at max set point
*/
#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
int tempPin = A4; // LM35 Temp Sensor Analog Output
int Relay = 8; // Relay Pin
int temp;
int tempMin = 25; //
int tempMax = 35; // Switch On The Relay

void setup() {
pinMode(Relay, OUTPUT);
pinMode(tempPin, INPUT);
lcd.begin(16,2);
}
void loop() {
temp = readTemp(); // Temperature
if(temp < tempMin) { // if temp is lower than Minimum-Temp

}
if(temp > tempMax) { // if temp is higher than Temp-Max
digitalWrite(Relay, HIGH); // Turn on Relay
} else { // else Turn of The Relay
digitalWrite(Relay, LOW);
}
lcd.print(“TEMP: “);
lcd.print(temp); // Display Temp
lcd.print(“C “);
lcd.setCursor(0,1); // move cursor
lcd.print(“FAN:ON/OFF”);
lcd.print(“”);
delay(300);
lcd.clear();
}

int readTemp() { // Temperature and convert it to celsius
temp = analogRead(tempPin);
return temp * 0.48828125;
}

60V to 5V-2Amps USB Power Output DC-DC Converter for E-Vehicle

Tiny 60V to 5V USB power converter is based on TPS54560 IC, the projects provides 5V DC and peak current up to 5Amps, constant current up to 2Amps. It can be used in lots of application where high voltage to 5V DC USB power required, good use in automotive application. It can be used in E-vehicle for smart phone charger,  USB Hub connector mounted on board for easy connection, input has screw terminal.

Features

  • Supply input 9V to 60V DC
  • Output 5V DC
  • Load Current 5 Amps Peak and 2Amps Constant
  • Onboard USB Hub Connector
  • Good for E-Vehicle, Carts, Trucks as for USB Charger

Watch Video Of This Project

 

 

 

 

 

 

LED Sequencer Using 10 White LEDs of Each 3W and Arduino

The 10 LED sequencer circuit published here is based on Arduino Uno and 10 White LED board. The project contains 10 LEDs of each 3W, provides high intensity, can be used in various applications. The board can be connected to Arduino Uno, Arduino Mega, Arduino Nano or Raspberry Pai , each LED can be controlled individually, I have connected LEDs to pin D2-D11 of Arduino. LED board required supply 5V DC, it can work with higher  supply by changing current resistor across LEDs, Large size Bar-graph monitor, led sequencer, strobe, LED light effects are possible applications with this board.

Note : Dont Power Up the LED Board from Arduino, LED board required separate 5V DC 3Amps.

Video Of this Project

Features

  • Supply 5V DC
  • Maximum Load on each channel 300mA-400mA (Total 3Amps)
  • LED 1-10 Connected to D2,D3,D4,D5,D6,D7,D8,D9,D10,D11 of Arduino

Download Arduino Code

The 10X3W White LED board has been designed to create large size barograph meter and light effects generator.  The board contains 3W LEDs, D-Pak transistor as driver and current limiting resistor across each LED. Circuit works with 5V, each LED take approx. 300mA-400mA current, each LED can be controlled individually by applying TTL voltage, header connector provided to interface micro-controller. LED dimmer possible by applying PWM signal to each LED, Easy interface with Arduino.

 

 

 

 

 

 

 

 

 

 

Arduino Code for LED Sequencer


/* A simple program to sequentially turn on and turn off 10 LEDs
Code tested on 10X3W white LED board works with 5V DC,
all LEDs take approx 2Amp current, PCB Design , Schematic
and Arduno code for 10LED sequencer can be download from our
website www.twovolt.com */

int LED1 = 2;
int LED2 = 3;
int LED3 = 4;
int LED4 = 5;
int LED5 = 6;
int LED6 = 7;
int LED7 = 8;
int LED8 = 9;
int LED9 = 10;
int LED10 = 11;

void setup() {
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
pinMode(LED5, OUTPUT);
pinMode(LED6, OUTPUT);
pinMode(LED7, OUTPUT);
pinMode(LED8, OUTPUT);
pinMode(LED9, OUTPUT);
pinMode(LED10, OUTPUT);

}

void loop() {
digitalWrite(LED1, HIGH);
delay(60);
digitalWrite(LED2, HIGH);
delay(60);
digitalWrite(LED3, HIGH);
delay(60);
digitalWrite(LED4, HIGH);
delay(60);
digitalWrite(LED5, HIGH);
delay(60);
digitalWrite(LED6, HIGH);
delay(60);
digitalWrite(LED7, HIGH);
delay(60);
digitalWrite(LED8, HIGH);
delay(60);
digitalWrite(LED9, HIGH);
delay(60);
digitalWrite(LED10, HIGH);
delay(60);
digitalWrite(LED1, LOW);
delay(60);
digitalWrite(LED2, LOW);
delay(60);
digitalWrite(LED3, LOW);
delay(60);
digitalWrite(LED4, LOW);
delay(60);
digitalWrite(LED5, LOW);
delay(60);
digitalWrite(LED6, LOW);
delay(60);
digitalWrite(LED7, LOW);
delay(60);
digitalWrite(LED8, LOW);
delay(60);
digitalWrite(LED9, LOW);
delay(60);
digitalWrite(LED10, LOW);
delay(60);

}

Temperature Meter using LM35 Analog Sensor and Arduino Nano LCD Shield

Another project which display the ambient temperature on 16X2 LCD, Project is based on compact multipurpose Arduino Nano LCD shield and LM35 analog temperature sensor, shield also provided with 3 Tactile Switches, Relay, Power MOSFET, Trimmer Potentio-meter to create multi projects. Circuit works with 5V DC, can be power up from USB or separate header connector.  

Download PDF Document

Download Arduino Code for LCD Based Temperature Meter

Arduino Pins LCD

  • LCD RS pin to digital pin 12
  • LCD Enable pin to digital pin 11
  • LCD D4 pin to digital pin 5
  • LCD D5 pin to digital pin 4
  • LCD D6 pin to digital pin 3
  • LCD D7 pin to digital pin 2
  • LCD R/W pin to ground

Arduino Pins Various Devices

  • Switch 1 Arduino Pin A3
  • Switch 2 Arduino Pin D6
  • Switch 3 Arduino Pin D7
  • Current Sensor ACS714 Arduino Pin A5
  • Trimmer Potentio-Meter Arduino Pin A0
  • LM35 Sensor Arduino Pin A4
  • Power MOSFET Arduino Pin D9
  • Relay Arduino Pin D8

The LM35 series are precision integrated-circuit temperature devices with an output voltage linearly-proportional to the Centigrade temperature. The LM35 device has an advantage over linear temperature sensors calibrated in Kelvin, as the user is not required to subtract a large constant voltage from the output to obtain convenient Centigrade scaling. The LM35 device does not require any external calibration or trimming to provide typical accuracies of ±¼°C at room temperature and ±¾°C over a full −55°C to 150°C temperature range. Lower cost is assured by trimming and calibration at the wafer level. The low-output impedance, linear output, and precise inherent calibration of the LM35 device makes interfacing to readout or control circuitry especially easy. The device is used with single power supplies, or with plus and minus supplies. As the LM35 device draws only 60 µA from the supply, it has very low self-heating of less than 0.1°C in still air. The LM35 device is rated to operate over a −55°C to 150°C temperature range, while the LM35C device is rated for a −40°C to 110°C range (−10° with improved accuracy). The LM35-series devices are available packaged in hermetic TO transistor packages, while the LM35C, LM35CA, and LM35D devices are available in the plastic TO-92 transistor package.

LM35 Features
Calibrated Directly in Celsius (Centigrade)
Linear + 10-mV/°C Scale Factor
0.5°C Ensured Accuracy (at 25°C)
Rated for Full −55°C to 150°C Range
Suitable for Remote Applications
Low-Cost Due to Wafer-Level Trimming
Operates From 4 V to 30 V
Less Than 60-µA Current Drain
Low Self-Heating, 0.08°C in Still Air
Non-Linearity Only ±¼°C Typical
Low-Impedance Output, 0.1 Ω for 1-mA Load

Arduino Code


#include<LiquidCrystal.h>

LiquidCrystal lcd(12,11,5,4,3,2);
const int inPin = A4;
void setup()
{
lcd.begin(16,2);
}
void loop()
{
int value = analogRead(inPin);
lcd.setCursor(0,1);
float millivolts = (value / 1023.0) * 5000;
float celsius = millivolts / 10;
lcd.clear();
lcd.setCursor(0,0);
lcd.print(celsius);
lcd.print(“C”);
lcd.setCursor(0,1);
lcd.print((celsius * 9)/5 + 32);
lcd.print(“F”);
delay(1000);
}

Multipurpose Compact 16X2 LCD Shield For Arduino Nano

Compact multipurpose Arduino Nano 16X2 LCD shield can be used to develop various projects, shield provided with various things, LM 35 Temperature sensor, 3X Tactile Switch, Vertical Trimmer Potentiometer, 12V Relay with NO/NC output, power MOSFET, AC714 current sensor and 16X2 LCD.

Arduino Pins LCD

  • LCD RS pin to digital pin 12
  • LCD Enable pin to digital pin 11
  • LCD D4 pin to digital pin 5
  • LCD D5 pin to digital pin 4
  • LCD D6 pin to digital pin 3
  • LCD D7 pin to digital pin 2
  • LCD R/W pin to ground

Arduino Pins Various Devices

  • Switch 1 Arduino Pin A3
  • Switch 2 Arduino Pin D6
  • Switch 3 Arduino Pin D7
  • Current Sensor ACS714 Arduino Pin A5
  • Trimmer Potentiometer Arduino Pin A0
  • LM35 Sensor Arduino Pin A4
  • Power MOSFET Arduino Pin D9
  • Relay Arduino Pin D8

Arduino Code for 16X2 LCD


/*
LiquidCrystal Library – display() and noDisplay()

Demonstrates the use a 16×2 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.

This sketch prints “Hello World!” to the LCD and uses the
display() and noDisplay() functions to turn on and off
the display.

The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)

Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried (http://www.ladyada.net)
example added 9 Jul 2009
by Tom Igoe
modified 22 Nov 2010
by Tom Igoe
modified 7 Nov 2016
by Arturo Guadalupi

This example code is in the public domain.

http://www.twovolt.com

*/

// include the library code:
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print(“hello, world!”);
}

void loop() {
// Turn off the display:
lcd.noDisplay();
delay(500);
// Turn on the display:
lcd.display();
delay(500);
}

High Current Half Bridge DC Motor Driver with Integrated Driver IFX007

The High Current DC Motor driver project has been designed using IFX007T IC from infinion, The project can drive large size brushed DC motor , speed control is easy using PWM , the board also has few features like short circuit protection, over temperature and over current protection, its provide current feedback can be interface with arduino , raspberry pai. Motor connections and DC supply input possible using screw terminals, all inputs can be feed using 5 pin male header connector, onboard power LED,    The IFX007T is an integrated high current half bridge for motor drive applications. It is part of the Industrial & Multi-Purpose Nova lithic™ family containing one p-channel high-side MOSFET and one n-channel low-side MOSFET with an integrated driver IC in one package. Due to the p channel high-side switch the need for a charge pump is eliminated thus minimizing EMI. Interfacing to a micro controller is made easy by the integrated driver IC which features logic level inputs, diagnosis with current sense, slew rate adjustment, dead time generation and protection against over temperature, under voltage, over current and short circuit. The IFX007T provides a cost optimized solution for protected high current PWM motor drives with very low board space consumption.Download PDF Schematic.

 

 

The IFX007T is part of the Industrial & Multi Purpose NovalithIC™ family containing three separate chips in one package: One p-channel high-side MOSFET and one n-channel low-side MOSFET together with a driver IC, forming an integrated high current half-bridge. All three chips are mounted on one common lead frame, using the chip-on chip and chip-by-chip technology. The power switches utilize vertical MOS technologies to ensure optimum on state resistance. Due to the p-channel high-side switch the need for a charge pump is eliminated thus minimizing EMI. Interfacing to a microcontroller is made easy by the integrated driver IC which features logic level inputs, diagnosis with current sense, slew rate adjustment, dead time generation and protection against over temperature, under voltage, overcurrent and short circuit. The IFX007T can be combined with other IFX007Ts to form a H-bridge or a3-phase drive configuration.

 

Features

  • Operation up to 40 V
  • Current limitation level of 55 A min.
  • Path resistance of max. 12.8 mΩ @ 25°C (typ. 10.0 mΩ @ 25°C)
  • High side: max. 6.5 mΩ @ 25°C (typ. 5.3 mΩ @ 25°C)
  • Low side: max. 6.3 mΩ @ 25°C (typ. 4.7mΩ @ 25°C)
  • Enhanced switching speed for reduced switching losses
  • Capable for high PWM frequency combined with active freewheeling
  • Switched mode current limitation for reduced power dissipation in over-current
  • Status flag diagnosis with current sense capability
  • Over temperature shutdown with latch behavior
  • Under-voltage shutdown
  • Driver circuit with logic level inputs
  • Adjustable slew rates for optimized EMI
  • Green Product (RoHS compliant)

 

 

Short circuit protection

  • The device provides embedded protection functions against
  • output short circuit to ground
  • output short circuit to supply voltage
  • short circuit of load
  • The short circuit protection is realized by the previously described current limitation in combination with the
  • over temperature shutdown of the device.

 

 

 

 

 

Input circuit

The control inputs IN and INH consist of TTL/CMOS compatible schmitt triggers with hysteresis which control the integrated gate drivers for the MOSFETs. Setting the INH pin to high enables the device. In this condition one of the two power switches is switched on depending on the status of the IN pin. To deactivate both switches, the INH pin has to be set to low. No external driver is needed. The IFX007T can be interfaced directly to a microcontroller

 

Dead time generation

In bridge applications it has to be assured that the high-side and low-side MOSFET are not conducting at the same time, connecting directly the battery voltage to GND. This is assured by a circuit in the driver IC, generating a so called dead time between switching off one MOSFET and switching on the other. The dead time generated in the driver IC is automatically adjusted to the selected slew rate.

 

Adjustable slew rate

In order to optimize electromagnetic emission, the switching speed of the MOSFETs is adjustable by an external resistor. The slew rate pin SR allows the user to optimize the balance between emission and power dissipation within his own application by connecting an external resistor RSR to GND

 

PWM control

For the selection of the max. PWM frequency the choosen rise/fall-time and the requirements on the duty cycle have to be taken into account. We recommend a PWM-period at least 10 times the rise-time.

Example:

Rise-time = fall-time = 4 μs.

=> T-PWM = 10 * 4 μs = 40 μs.

=> f-PWM = 25 kHz.

The min. and max. value of the duty cycle (PWM ON to OFF percentage) is determined by the real fall time plus the real rise time. In this example a duty cycle make sense from approximately 20% to 80%. If a wider duty cycle range is needed, the PWM frequency could be decreased and/or the rise/fall-time could be accelerated.

DC-DC BOOST CONVERTER PROVIDES OUTPUT 36V- 2AMPS FROM 24V DC INPUT LM2588

Another boost DC-DC Converter provides 36V DC output from 24V DC input with load current up-to 2Amps, very small board. Booster is based on LM2588 IC from Texas Instruments. The LM2588 regulator integrated circuit specifically designed for fly-back, step-up (Boost) , and forward converter. Board has minimum components, screw terminal provided for input & outputs.

DOWNLOAD SCHEMATIC

Features

  • Supply Input 24V DC (18-36V Possible)
  • Output 36V
  • Load Current Up to 2Amps

 

 

 

10X 3W LED Board For Large Bar-Graph Meter/Light Effects

The 10X3W White LED board has been designed to create large size bar-graph meter and light effects generator.  The board contains 3W LEDs, D-Pk MJD44H11 transistor as driver and current limiting resistor across each LED. Circuit works with 5V, each LED take approx. 300mA-400mA current, each LED can be controlled individually by applying TTL voltage, header connector provided to interface micro-controller, Ardunio, Raspberry Pi etc.  . LED dimmer possible by applying PWM signal to each LED, Easy interface with Arduino.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

STEP UP DC-DC CONVERTER 48V DC 1.5A OUTPUT FROM 24V DC INPUT LM2588

I am here with another boost DC-DC Converter provides 48V DC output from 24V DC input with load current up-to 1.5Amps, very small board. Booster is based on LM2588 IC from Texas Instruments. The LM2588 regulator integrated circuit specifically designed for fly-back, step-up (Boost) , and forward converter. Board has minimum components, screw terminal provided for input & outputs.

Features

  • Supply Input 24V DC
  • Output 48V 1.5A

Download Data Sheet LM2588

 

 

 

 

 

1 2 3 6