[IOT] 2. Fan Control with BLE
·
Project/BLE
우선, BLE란, Bluetooth low energy의 줄임말이다.앞서, iot 선풍기 제어를 만들 때, 최종 목표는 bluetooth로 스마트폰에서 on,off 제어를 하는 것이었다.기본적인 작동방식은 bluetooth module(가장 왼쪽)과 arduino가 tx rx를 통해 신호를 주고 받을 것이다.스마트폰과 bluetooth module이 bluetooth로 통신을 하고, 스마트폰에서 on or off의 command를 주면,bluetooth module에서 command에 따른 신호를 arduino로 tx,arduino에서 신호를 rx해서, relay module이 control해주는 구성이 된다. bluetooth module과 arduino는 serial로 통신하고,bluetooth mo..
Chapter 11. A Gentle Introduction to the Random Walk
·
Study/time series forecasting with python
* Chapter 11에서는 * Random Walk가 무엇이며 Python에서 만드는 방법 * Random Walk의 속성을 분석하고 time series가 random walk인지 아닌 지 아는 방법 * Random Walk를 예측하는 방법 Random Series * python에서 기본적으로 randrange()함수를 제공한다. * randrange(n) 함수는 기본적으로 0에서 n사이의 임의의 정수를 생성하는 함수이다. * plot을 통해 보면 이는 time series와 거리가 멀게 느껴지며 random walk는 아니고 단순한 난수들이다. # create and plot a random series from random import seed from random import randrange..
Chapter 10. A Gentle Introduction to White Noise
·
Study/time series forecasting with python
* Chapter 10에서는 * white noise time series의 정의와 그것의 중요한 이유 * time series가 white noise인지 확인하는 방법 * python에서 white noise를 식별하기위한 통계 및 진단 plot에 대해 배운다. What is a White Noise? * Time series는 변수가 독립적이고 평균이 0으로 동일하게 분포된 경우 white noise이다. * 모든 변수는 동일한 분산을 가지며 각 값은 다른 모든 값과 0의 상관관계를 가지면 white noise * 변수가 가우스 분포에서 추출된 경우는 gaussian white noise라고 한다. Why Does it Matter? * 1. 예측 가능성 : time series가 white nois..
Chapter 9. Moving Average Smoothing
·
Study/time series forecasting with python
Chapter 9에서는 * Moving Average Smoothing의 원리와 data에 대한 기대치 * data 작성 및 feature enginerring을 위한 Moving Average Smoothing 사용방법 * Moving Average Smoothing을 이용하여 예측하는 방법에 대해 배운다. Monving Average Smoothing * Moving Average을 계산하려면 값이 원래 시계열의 원시 관측 값 평균으로 구성된 새 시리즈를 생성해야합니다. * Moving Average을 사용하려면 창 너비라는 창 크기를 지정해야합니다. * Moving Average의 목표는 노이즈를 제거하고 근본적인 인과 과정의 신호를 더 잘 노출 시키는 것이다. * 이 기법을 적절하게 적용하면 근본..
Chapter 8. Power Transforms
·
Study/time series forecasting with python
Chapter 8에서는 * 제곱근 변환의 사용 시기 및 탐색 방법을 식별하는 방법 * 로그 변환의 사용 시기 및 탐색 방법 및 원시 데이터에 대한 기대 사항 * Box-Cox 변환을 사용하여 제곱근, 로그 작업을 수행하고 dataset에 가장 적합한 변환을 자동으로 찾는 방법 * 에 대해 배운다. Airline Passengers Dataset * Airline Passengers dataset은 시간 경과에 따른 총 항공사 승객 수에 대한 Time Series이다. # load and plot a time series from pandas import read_csv from matplotlib import pyplot series = read_csv('airline-passengers.csv', he..
[IOT] 1. Fan Control with Arduino,relay Module
·
Project/BLE
목표 : bluetooth module을 통해 Client에서 신호를 주고 그 신호에 따른 Fan Control신호에 따라 Fan Control에 있어서 relay module을 사용해서 전기 신호에 따른 switch역할을 수행할 것이다. bluetooth module을 사용하기 전 relay module의 공부를 위해 arduino로 신호를 주는 형태로 먼저 수행해보았다.그래서 이번 포스팅은 arduino로 신호를 주고 그 신호에 따라 relay module에서 선풍기를 껐다 켰다 하는 용도이다.  * 본 코드는 Arduino code이며 5초동안 9번핀을 통해 High or Low signal을 주는 용도이다.* 이후에는 Arduino가 빠지고 bluetooth module을 통해 신호를 줄 것이다...
Chapter 7. 추가 내용
·
Study/time series forecasting with python
우선 Upsampling 예제코드를 보면, # upsample to daily intervals with spline interpolation from pandas import read_csv from pandas import datetime from matplotlib import pyplot def parser(x): return datetime.strptime('190'+x, '%Y-%m') series = read_csv('shampoo-sales.csv', header=0, index_col=0, parse_dates=True, squeeze=True, date_parser=parser) upsampled = series.resample('D').mean() interpolated = upsam..
Chapter 7. Resampling and Interpolation
·
Study/time series forecasting with python
Chapter 7에서는 * Time Series Resampling, 두 가지 유형의 Resampling과 이를 사용하는 주요 이유 * Pandas를 사용하여 Time Series Data를 더 높은 빈도로 Up Sampling하고 새로운 관측치를 Interpolation하는 방법 * Pandas를 사용하여 Time Series Data를 더 낮은 빈도로 Down Sampling하고 더 높은 빈도의 관측치를 요약하는 방법에 대해 배운다. Resampling * Two Types of resampling 1. Upsampling : 샘플의 빈도를 증가시키는 것 ex)빈도를 분 -> 초 2. Downsampling : 샘플의 빈도를 줄이는 것 ex)빈도를 일 -> 월 * Time Series Data를 re..
황공진
'분류 전체보기' 카테고리의 글 목록 (8 Page)