Joy-it SEN-KY032IR Handleiding


Lees hieronder de 📖 handleiding in het Nederlandse voor Joy-it SEN-KY032IR (6 pagina's) in de categorie Niet gecategoriseerd. Deze handleiding was nuttig voor 11 personen en werd door 2 gebruikers gemiddeld met 4.5 sterren beoordeeld

Pagina 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-


Product specificaties

Merk: Joy-it
Categorie: Niet gecategoriseerd
Model: SEN-KY032IR

Heb je hulp nodig?

Als je hulp nodig hebt met Joy-it SEN-KY032IR stel dan hieronder een vraag en andere gebruikers zullen je antwoorden




Handleiding Niet gecategoriseerd Joy-it

Handleiding Niet gecategoriseerd

Nieuwste handleidingen voor Niet gecategoriseerd