분류 전체보기
-
import RPi.GPIO as GPIO from matplotlib import pyplot as plt from matplotlib import animation import numpy as np import random import time import spidev spi=spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz=1000000 def ReadChannel(channel): adc=spi.xfer2([1,(8+channel)
Matplotlib -센서값을 이용한 실시간 그래프 2개 구현import RPi.GPIO as GPIO from matplotlib import pyplot as plt from matplotlib import animation import numpy as np import random import time import spidev spi=spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz=1000000 def ReadChannel(channel): adc=spi.xfer2([1,(8+channel)
2019.12.02 -
from matplotlib import pyplot as plt from matplotlib import animation import numpy as np import random import time fig = plt.figure() #figure(도표) 생성 ax = plt.subplot(211, xlim=(0, 50), ylim=(0, 1024)) ax_2 = plt.subplot(212, xlim=(0, 50), ylim=(0, 512)) max_points = 50 max_points_2 = 50 line, = ax.plot(np.arange(max_points), np.ones(max_points, dtype=np.float)*np.nan, lw=1, c='blue',ms=1) line_2..
<matplotlib> - 2D 실시간 그래프 2개 그리기. (animation)from matplotlib import pyplot as plt from matplotlib import animation import numpy as np import random import time fig = plt.figure() #figure(도표) 생성 ax = plt.subplot(211, xlim=(0, 50), ylim=(0, 1024)) ax_2 = plt.subplot(212, xlim=(0, 50), ylim=(0, 512)) max_points = 50 max_points_2 = 50 line, = ax.plot(np.arange(max_points), np.ones(max_points, dtype=np.float)*np.nan, lw=1, c='blue',ms=1) line_2..
2019.12.02 -
이전에 소개했던 파이썬의 라이브러리중에 데이터를 2D 또는 3D그래프로 시각화 할 수 있는 Matplot이라는게 있었습니다. https://infinitt.tistory.com/37 matplotlib (pylab) - 2D, 3D 데이터 자료 시각화 matplot 라이브러리는 데이터를 차트(chart)나 플롯(plot) 형태, 2D,3D로 시각화하도록 기능합니다. https://matplotlib.org/3.1.1/gallery/index.html Gallery — Matplotlib 3.1.1 documentation Gallery.. infinitt.tistory.com 라즈베리파이에서 받아온 센서값 (가변저항 , 초음파 거리측정 , 온습도 (DHT11))을 이용하여 실시간 그래프를 그려보려고 합니..
라즈베리파이 센서값 읽어와서 실시간 그래프 그리기 (Matplotlib , animation)이전에 소개했던 파이썬의 라이브러리중에 데이터를 2D 또는 3D그래프로 시각화 할 수 있는 Matplot이라는게 있었습니다. https://infinitt.tistory.com/37 matplotlib (pylab) - 2D, 3D 데이터 자료 시각화 matplot 라이브러리는 데이터를 차트(chart)나 플롯(plot) 형태, 2D,3D로 시각화하도록 기능합니다. https://matplotlib.org/3.1.1/gallery/index.html Gallery — Matplotlib 3.1.1 documentation Gallery.. infinitt.tistory.com 라즈베리파이에서 받아온 센서값 (가변저항 , 초음파 거리측정 , 온습도 (DHT11))을 이용하여 실시간 그래프를 그려보려고 합니..
2019.11.27 -
라즈베리파이는 아두이노와는 다르게 아날로그 센서값을 자체적으로 읽어오지 못합니다. 따라서 MCP3008과 같은 제품을 이용하여, 아날로그 값을 디지털 값으로 바꾼 후 (Convert) 라즈베리파이에 넣어주어야합니다. 조도센서 (CDS) , 압력센서, 써미스터... 등등 많은 아날로그 센서가 있지만, 일단 가변저항을 이용해보았습니다. Datasheet는 위 사진과 같습니다. 그리고 저는 라즈베리파이 3B+ 모델을 사용했습니다. 연결 핀 Raspberry Pi (라즈베리파이) MCP 3008 SCLK CLK MOSI DIN MISO DOut CE 0 CS/SHDN 3.3V VDD, VREF GND DGND , AGND 그리고 가변저항은 다리가 총 3개인데, 왼쪽부터 GND / (mcp3008의) CH 0 /..
MCP3008 + 라즈베리파이 아날로그 센서값 받기 ( 가변저항 , 파이썬 Python )라즈베리파이는 아두이노와는 다르게 아날로그 센서값을 자체적으로 읽어오지 못합니다. 따라서 MCP3008과 같은 제품을 이용하여, 아날로그 값을 디지털 값으로 바꾼 후 (Convert) 라즈베리파이에 넣어주어야합니다. 조도센서 (CDS) , 압력센서, 써미스터... 등등 많은 아날로그 센서가 있지만, 일단 가변저항을 이용해보았습니다. Datasheet는 위 사진과 같습니다. 그리고 저는 라즈베리파이 3B+ 모델을 사용했습니다. 연결 핀 Raspberry Pi (라즈베리파이) MCP 3008 SCLK CLK MOSI DIN MISO DOut CE 0 CS/SHDN 3.3V VDD, VREF GND DGND , AGND 그리고 가변저항은 다리가 총 3개인데, 왼쪽부터 GND / (mcp3008의) CH 0 /..
2019.11.27 -
https://www.highcharts.com/
CSV 파일 읽어들여서 highcharts + Flask 그래프 구현하기.https://www.highcharts.com/
2019.11.16 -
matplot 라이브러리는 데이터를 차트(chart)나 플롯(plot) 형태, 2D,3D로 시각화하도록 기능합니다. https://matplotlib.org/3.1.1/gallery/index.html Gallery — Matplotlib 3.1.1 documentation Gallery This gallery contains examples of the many things you can do with Matplotlib. Click on any image to see the full image and source code. For longer tutorials, see our tutorials page. You can also find external resources and a FAQ in our ..
<matplotlib> (pylab) - 2D, 3D 데이터 자료 시각화matplot 라이브러리는 데이터를 차트(chart)나 플롯(plot) 형태, 2D,3D로 시각화하도록 기능합니다. https://matplotlib.org/3.1.1/gallery/index.html Gallery — Matplotlib 3.1.1 documentation Gallery This gallery contains examples of the many things you can do with Matplotlib. Click on any image to see the full image and source code. For longer tutorials, see our tutorials page. You can also find external resources and a FAQ in our ..
2019.11.15