Joy-it SEN-KY032IR Bruksanvisning

Läs nedan 📖 manual på svenska för Joy-it SEN-KY032IR (6 sidor) i kategorin Inte kategoriserad. Denna guide var användbar för 3 personer och betygsatt med 4.5 stjärnor i genomsnitt av 2 användare

Sida 1/6
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
INFRARED PROXIMITY SENSOR
SEN KY032IR-
1. GENERAL INFORMATION
Dear costumer,
thank you very much for choosing our product. In following, we will
introduce you to what to observe while starting up and using this
product.
Should you encounter any unexpected problems during use, please do
not hesitate to contact us.
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
3. USAGE WITH A RASPBERRY PI
1. Connection
KY-032 Raspberry Pi
GND Ground
(Pin 6)
V+ 3.3V
(Pin 1)
Signal GPIO24
(Pin 18)
Enable Pin
-
Jumper is
plugged
2. PIN ASSIGNMENT
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
This code reads the current status of the sensor and displays in the
console whether an obstacle is present or not. If the sensor detects an
obstacle, another LED (Sled) lights up.
The sensor has two potentiometers with which the
sensitivity of the receiver as well as the transmitter can be adjusted.
You can also download this sample code .here
First, you have to install this package:
wget http://sensorkit.joy-it.net/images/d/d8/KY-032_RPi_HindernisDetektor.zip
unzip KY 032_RPi_HindernisDetektor.zip-
2. Code example
# Required modules are imported and set up
import as RPi.GPIO GPIO
import time
GPIO.setmode(GPIO.BCM)
# The input pin to which the sensor is connected, is declared here.
GPIO_PIN = 24
GPIO.setup(GPIO_PIN, GPIO.IN, pull_up_down = GPIO.PUD_UP)
# Pause between the output of the result is defined (in seconds)
delayTime = 0.5
print ("Sensor Test [druecken Sie STRG+C, um den Test zu beenden]")-
# Main loop of the program
try:
while True:
if GPIO.input(GPIO_PIN) == True:
print ("No obstacle")
else:
print ("Obstacle detected")
print (" ")---------------------------------------
# Reset + Delay
time.sleep(delayTime)
# Clean up after the program has finished
except KeyboardInterrupt:
GPIO.cleanup()
sudo apt install python3 rpi.gpio-
Now, you can either use the following commands to download and unzip
the file :
Or you can create a new file with the following command and copy the
example code described into it:
sudo nano KY 032_RPi_HindernisDetektor.py-

Produktspecifikationer

Varumärke: Joy-it
Kategori: Inte kategoriserad
Modell: SEN-KY032IR

Behöver du hjälp?

Om du behöver hjälp med Joy-it SEN-KY032IR ställ en fråga nedan och andra användare kommer att svara dig




Inte kategoriserad Joy-it Manualer

Inte kategoriserad Manualer

Nyaste Inte kategoriserad Manualer