Raspberry Pi + LCD Shield Bağlantısı

Merhabalar, asağıda çizmiş olduğum şekilde Lcd Shield ‘in Raspberry pi ile olan bağlantısını görebilirsiniz. Tercih ettiğim 2 adet kütüphane mevcut. İkisi de güzel çalışıyor. https://github.com/adafruit/Adafruit_Python_CharLCD https://github.com/dbrgn/RPLCD Örnek Kod: import time, subprocess, re, Adafruit_CharLCD as LCD from datetime import datetime lcd_rs = 25 lcd_en = 24 lcd_d4 = 23 lcd_d5 = 17 lcd_d6 = 21 lcd_d7 …

Continue reading

Raspberry Pi ile tek kanal role kontrolu

Merhaba, raspberry pi ile tek kanal role kontrolu icin asagidaki kodu kullanabilirsiniz. Kodu durdurana kadar role aktiftir. import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) ROL = 14 GPIO.setup(ROL, GPIO.OUT) try: while (True): GPIO.output(ROL, GPIO.LOW) except KeyboardInterrupt: GPIO.output(ROL,GPIO.HIGH) GPIO.cleanup()

Continue reading