레이블이 humidity인 게시물을 표시합니다. 모든 게시물 표시
레이블이 humidity인 게시물을 표시합니다. 모든 게시물 표시

Arduino humidity sensor 7-segment display



I have had a long time to check the humidity.

But, after a long while, I do not remember.

So I'll start with a very basic one.


1. Check humidity sensor


https://jujakfire.blog.me/221143897910?Redirect=Log&from=postView

2. Check 7-FND

http://deneb21.tistory.com/229



3. Use 7-FND Library

4. Sketch Coding

#include "SevSeg.h"
#include "AM2320.h"

//Create an instance of the object.
SevSeg sevseg;
AM2320 th;
void setup() {
  // Set up pins
  // Arguments :
  // First 0 is for common cathode
  // Following 0 to 11 numbers are for Arduino pins
  // connected to display in the following order
  // 1,2,3,4,A,B,C,D,E,F,G,DP
  sevseg.Begin(0,1,2,3,4,5,6,7,8,9,10,11,12);
}

void loop() {  
   th.Read();                          // AM2320 Read
   float huminity=th.h*100.0;
   int hDisplay=huminity;
  // Prepare number to display, and dot position
  // (0 to 3, other number means no dot) 
  sevseg.NewNum(hDisplay,2);
  // Display number
  sevseg.PrintOutput(); 
  // To maintain display with this wiring,
  // we are forced to loop over those commands rapidly
  delay(5);                         // Delay Time
}



[UEL] 아라라트 아르메니아 vs 우니베르시타테아 크라이오바 축구 경기 전략 확인

 스포츠 배팅 전략 전문가로서 '3신호 종합' 원칙과 성과 분석 기반 판정을 최우선으로 하여 신뢰도를 높이고 리스크를 최소화하는 방향으로 전략을 수립했습니다. [ 최종 전략 요약] 현재 4개 경기로 구성된 슬립 중, 검증된 원칙에 따라 ...