Joy-it KY-001 User Manual

Joy-it KY-001 User Manual

Temperature sensor

Advertisement

3
Temperature Sensor
KY-001

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KY-001 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Joy-it KY-001

  • Page 1 Temperature Sensor KY-001...
  • Page 2: Table Of Contents

    Temperature Sensor TABLE OF CONTENTS Overview Pin-Assignment Code Example Arduino Code Example Raspberry Pi Information and take-back obligations Support Published: 27.08.2018 Copyright by Joy-IT...
  • Page 3: Overview

    9 - 12 Bit Range of Measurement -55°C - 125°C PIN-ASSIGNMENT Pin assignment Arduino Pin assignment Raspberry Pi Signal Pin 4 Signal GPIO4 [Pin 7] Pin 5V 3,3V [Pin 1] Pin GND Masse [Pin 6] Published: 27.08.2018 Copyright by Joy-IT...
  • Page 4: Code Example Arduino

    #define KY001_Signal_PIN 4 // Libraries are configured OneWire oneWire(KY001_Signal_PIN); DallasTemperature sensors(&oneWire); void setup() { // Initialization Serial output Serial.begin(9600); Serial.println("KY-001 Temperaturmessung"); // Sensor is initialized sensors.begin(); // Main program loop void loop() // Temperature measurement is started... sensors.requestTemperatures(); // ... and display measured temperature Serial.print("Temperatur: ");...
  • Page 5: Code Example Raspberry Pi

    Now restart your Raspberry Pi with the following command so that the changes you have made take effect: sudo reboot You can download the code example for Raspberry Pis here or copy and paste the following sections. Published: 27.08.2018 Copyright by Joy-IT...
  • Page 6 # This folder contains the file w1-slave # in which the data sent over the One-Wire bus is stored # In this function, this data is analyzed and the temperature is read out and shown Published: 27.08.2018 Copyright by Joy-IT...
  • Page 7 # The measured temperature is sent to the console between the individual measurements # is a pause whose length can be set with the variable "sleeptime try: while True: print '---------------------------------------' print "Temperatur:", TemperaturAuswertung(), "°C" time.sleep(sleeptime) except KeyboardInterrupt: GPIO.cleanup() Published: 27.08.2018 Copyright by Joy-IT...
  • Page 8: Information And Take-Back Obligations

    Possibility of return in your area We will send you a parcel stamp with which you can return the device to us free of charge. Please contact us by e-mail at Service@joy-it.net or by phone. Information about packaging If you do not have suitable packaging material or do not wish to use your own, please contact us and we will send you suitable packaging.
  • Page 9: Support

    E-Mail: service@joy-it.net Ticket-System: http://support.joy-it.net Phone: +49 (0)2845 98469 – 66 (11- 18 o‘clock) For more information, please visit our website: www.joy-it.net Published: 27.08.2018 Copyright by Joy-IT...

Table of Contents