본문 바로가기

임베디드/RaspberryPi11

라즈베리파이4 삼바 samba 설치 https://fishpoint.tistory.com/1553라즈베리 파이 삼바 서버 접속과 설치방법 - 삼바서버, 삼바설치삼바(samba)는 SMB(Server Message Block) 또는 CIFS (Common Internet File System)로 알려져 있으며 리눅스와 윈도우간에 파일 및 프린터를 공유할 수 있게 해주는 프로그램이다. 삼바를 통해 리눅스 서버를 타..fishpoint.tistory.com 2021. 1. 17.
라즈베리파이4(bcm2711) 데이터시트 / 라즈베리파이3(bcm2835) 데이터시트 raspberrypi datasheet 2021. 1. 4.
cds # readadc.py import spidev, time def analog_read(channel): r = spi.xfer2([1, (8 + channel) 2020. 10. 30.
raspberrypi dht11 python dht_simpletest.py import time import board import adafruit_dht # Initial the dht device, with data pin connected to: dhtDevice = adafruit_dht.DHT11(board.D4) # you can pass DHT22 use_pulseio=False if you wouldn't like to use pulseio. # This may be necessary on a Linux single board computer like the Raspberry Pi, # but it will not work in CircuitPython. # dhtDevice = adafruit_dht.DHT22(board.D18,.. 2020. 10. 30.
raspberrypi dht11 wiringpi 사용 더보기 https://devicemart.blogspot.com/2019/06/dht-11.html [흥프로] 라즈베리파이 실습 예제 온습도 센서 DHT - 11 사용하기 전기/전자부품, 로봇/기계부품, 코딩교육 국내 1위 쇼핑몰 디바이스마트 공식 블로그입니다. devicemart.blogspot.com https://m.blog.naver.com/chandong83/220902795488 라즈베리 파이(Raspberry Pi) 온습도 센서(DHT11) 다뤄보기 이번엔 DHT11을 라즈베리 파이에서 다뤄볼 것이다. 이전에 아두이노로 테스트해본 적이 있었다. http://... blog.naver.com https://blog.naver.com/roboholic84/220360435768 [라즈베리파이 강.. 2020. 10. 29.
16x2lcd raspberrypi https://www.raspberrypi-spy.co.uk/2012/07/16x2-lcd-module-control-using-python/ 16x2 LCD Module Control Using Python - Raspberry Pi Spy Raspberry Pi tutorials and guides to help you learn and build awesome projects. Sensors, displays, screens, motors, servos, lights, LEDs and more! www.raspberrypi-spy.co.uk #!/usr/bin/python #-------------------------------------- # ___ ___ _ ____ # / _ \/ _ \(_.. 2020. 10. 29.
라즈베리파이4, 3 핀맵 , 데이터시트 4 3 2020. 10. 23.
p280 MCP3008 ADC 장치 라즈베리파이는 아두이노와는 다르게 아날로그 센서값을 자체적으로 읽어오지 못함. 따라서 MCP3008과 같은 제품을 이용하여, 아날로그 값을 디지털 값으로 바꾼 후 (Convert) 라즈베리파이에 넣어주어야함 SPI 통신방식 적용 아래 코드는 값이 0으로 나옴 .. # readadc.py import spidev, time spi = spidev.SpiDev() spi.open(0,0) def analog_read(channel): r = spi.xfer2([1, (8 + channel) 2020. 10. 23.
p267 6-5 콜백방식 #btn_callback.py import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) count = 0 def handler(channel): global count count = count +1 print count GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.add_event_detect(24,GPIO.RISING, callback=handler) while True: time.sleep(1) 리눅스 커널자체에 GPIO driver가 들어가 있는데 그것 도움을 받아서 2020. 10. 22.
p265 6-4 폴링방식 #btn_poll.py import RPi.GPIO as GPIO #gpio모듈 사용 import time #time 모듈 사용 GPIO.setmode(GPIO.BCM) GPIO.setup(24,GPIO.IN) count =0 while True: value = GPIO.input(24) if value == True: count= count +1 print count time.sleep(0.1) 2020. 10. 22.
p268 6-6 풀업 풀다운 인터럽트 #btn_interrupt.py import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) count = 0 def handler(channel): global count count = count +1 print count GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.add_event_detect(24, GPIO.RISING, callback=handler) try: GPIO.wait_for_edge(23, GPIO.FALLING) print "Falling edge detected." except keyboard.. 2020. 10. 22.