Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use KY-017: Examples, Pinouts, and Specs

Image of KY-017
Cirkit Designer LogoDesign with KY-017 in Cirkit Designer

Introduction

The KY-017 is a temperature sensor module that utilizes the LM35 temperature sensor. It provides an analog output that is directly proportional to the temperature in degrees Celsius. This module is widely used in temperature monitoring and control applications due to its simplicity, accuracy, and ease of integration into electronic circuits.

Explore Projects Built with KY-017

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
Image of padelpro transmitter: A project utilizing KY-017 in a practical application
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino 101 and KY-023 Joystick Controlled Interface
Image of Joystick: A project utilizing KY-017 in a practical application
This circuit interfaces a KY-023 Dual Axis Joystick Module with an Arduino 101. The joystick's X and Y axis outputs are connected to the analog inputs A0 and A1 of the Arduino, allowing it to read the joystick's position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
Image of Transmitter 11: A project utilizing KY-017 in a practical application
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Security System with RFID and Laser Tripwire
Image of CPE doorlock system: A project utilizing KY-017 in a practical application
This circuit is designed for a comprehensive security and access control system with motion detection, access via RFID, and a break-beam sensor. It includes a solenoid lock controlled by a relay, visual and audible alerts, and a robust power management system with solar and battery backup to ensure uninterrupted operation.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-017

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of padelpro transmitter: A project utilizing KY-017 in a practical application
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Joystick: A project utilizing KY-017 in a practical application
Arduino 101 and KY-023 Joystick Controlled Interface
This circuit interfaces a KY-023 Dual Axis Joystick Module with an Arduino 101. The joystick's X and Y axis outputs are connected to the analog inputs A0 and A1 of the Arduino, allowing it to read the joystick's position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Transmitter 11: A project utilizing KY-017 in a practical application
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CPE doorlock system: A project utilizing KY-017 in a practical application
ESP32-Based Security System with RFID and Laser Tripwire
This circuit is designed for a comprehensive security and access control system with motion detection, access via RFID, and a break-beam sensor. It includes a solenoid lock controlled by a relay, visual and audible alerts, and a robust power management system with solar and battery backup to ensure uninterrupted operation.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Environmental temperature monitoring
  • Home automation systems
  • Industrial temperature control
  • Weather stations
  • Educational projects and prototyping

Technical Specifications

The KY-017 module is based on the LM35 temperature sensor, which is known for its linear output and high accuracy. Below are the key technical details:

Parameter Value
Operating Voltage 4V to 30V
Output Voltage Range 0V to 1.5V (for 0°C to 150°C)
Temperature Range 0°C to 100°C (module-specific)
Accuracy ±0.5°C (at 25°C)
Output Type Analog
Dimensions 18.5mm x 15mm x 10mm

Pin Configuration and Descriptions

The KY-017 module has three pins, as described in the table below:

Pin Name Description
1 VCC Power supply pin (4V to 30V)
2 GND Ground pin
3 OUT Analog output pin, provides voltage proportional to
the temperature in degrees Celsius

Usage Instructions

How to Use the KY-017 in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V power supply and the GND pin to the ground of your circuit.
  2. Read the Output: Connect the OUT pin to an analog input pin of a microcontroller (e.g., Arduino UNO) to read the temperature as an analog voltage.
  3. Convert Voltage to Temperature: The output voltage is proportional to the temperature, with a scale factor of 10mV/°C. For example, an output of 250mV corresponds to 25°C.

Important Considerations and Best Practices

  • Ensure the module is powered within its operating voltage range (4V to 30V).
  • Avoid exposing the sensor to temperatures beyond its specified range to prevent damage.
  • Use a stable power supply to minimize noise in the analog output.
  • If using long wires, consider shielding to reduce interference.

Example Code for Arduino UNO

The following code demonstrates how to use the KY-017 module with an Arduino UNO to read and display the temperature:

// Define the analog pin connected to the KY-017 OUT pin
const int sensorPin = A0;

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
}

void loop() {
  int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
  float voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
  float temperature = voltage * 100.0; // Convert voltage to temperature (10mV/°C)

  // Print the temperature to the Serial Monitor
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" °C");

  delay(1000); // Wait for 1 second before the next reading
}

Notes on the Code

  • The analogRead() function reads the sensor's output voltage as a 10-bit ADC value (0-1023).
  • The voltage is calculated by scaling the ADC value to the Arduino's reference voltage (5V).
  • The temperature is derived by multiplying the voltage by 100, as the LM35 outputs 10mV per degree Celsius.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check the connections, ensuring VCC, GND, and OUT are properly connected.
  2. Fluctuating Temperature Readings

    • Cause: Electrical noise or unstable power supply.
    • Solution: Use a decoupling capacitor (e.g., 0.1µF) between VCC and GND to stabilize the power supply.
  3. Output Voltage Does Not Match Expected Temperature

    • Cause: Calibration issue or incorrect conversion formula.
    • Solution: Verify the conversion formula and ensure the Arduino's reference voltage is accurate.
  4. Sensor Overheating

    • Cause: Operating the module beyond its voltage or temperature limits.
    • Solution: Ensure the module is powered within the specified voltage range and used within the temperature range.

FAQs

Q: Can the KY-017 measure negative temperatures?
A: No, the KY-017 module is designed to measure temperatures in the range of 0°C to 100°C. For negative temperatures, additional circuitry or a different sensor is required.

Q: Can I use the KY-017 with a 3.3V microcontroller?
A: Yes, the KY-017 can operate at 3.3V, but the output voltage range will be lower, which may reduce resolution. Ensure the microcontroller's ADC can handle the reduced range.

Q: How accurate is the KY-017 module?
A: The LM35 sensor provides an accuracy of ±0.5°C at 25°C. However, external factors like noise and power supply stability can affect the overall accuracy.

Q: Is the KY-017 suitable for outdoor use?
A: The KY-017 is not weatherproof. For outdoor applications, additional protection (e.g., an enclosure) is required to shield the module from moisture and extreme conditions.