| Electronic Components Datasheet Search |
|
KY-024 Datasheet(PDF) 4 Page - JOY-IT |
|
|
|||||||||||||||||||||||||||||
KY-024 Datasheet(HTML) 4 Page - JOY-IT |
|
4 / 7 page ![]() KY-024 Linear magnetic Hall Sensor Page of 4 7 Export: 02.03.2021 This document was created with BlueSpice pinMode (Digital_Eingang, INPUT); Serial.begin (9600); // Serielle output with 9600 bps } // The program reads the current value of the input pins // and output it via serial out void loop () { float Analog; int Digital; // Current value will be read and converted to the voltage Analog = analogRead (Analog_Eingang) * (5.0 / 1023.0); Digital = digitalRead (Digital_Eingang); // and outputted here Serial.print ("Analog voltage value:"); Serial.print (Analog, 4); Serial.print ("V, "); Serial.print ("Extreme value:"); if(Digital==1) { Serial.println (" reached"); } else { Serial.println (" not reached yet"); } Serial.println ("----------------------------------------------------------------"); delay (200); } Connections Arduino: digital signal = [Pin 3] +V = [Pin 5V] GND = [Pin GND] analog signal = [Pin 0] Example program download Analoger_Sensor Code example Raspberry Pi !! Attention !! Analog Sensor !! Attention !! Unlike the Arduino, the Raspberry Pi doesn't provide an ADC (Analog Digital Converter) on its Chip. This limits the Raspbery Pi if you want to use a non digital Sensor. To evade this, use our with the module, which provides a 16 Bit ADC, which can be Sensorkit X40 KY-053 used with the Raspberry Pi, to upgrade it with 4 additional analog input pins. This module is connected via I2C to the Raspberry Pi. It measures the analog data and converts it into a digital signal which is suitable for the Raspberry Pi. So we recommend to use the KY-053 ADC if you want to use analog sensors along with the Raspberry Pi. For more information please look at the infosite: KY-053 Analog Digital Converter !! Attention !! Analog Sensor !! Attention !! |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |