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

아두이노 온습도 센서 & 토양 수분 측정 동시에 하기

화분 토양 습도를 측정하고, 온습도 센서를 연동하여 화원을 만들어 보고 싶어서 이것저것 하고 있습니다.

우선 잠깐 온습도 센서를 동시에 읽어보는 테스트를 하면서 잘 되는지 확인해 보았습니다.

시리얼 통신을 통해서 읽어오는 것인데, 나중에는 디스플레이로 표시하던지 하려고 합니다.

잘 되겠지요. 암요 될 겁니다.

스케치 코드는 다음과 같이 하면 됩니다.

동작 동영상을 보면 잘 나옵니다.


https://www.youtube.com/watch?v=Hm8fW1SX0mo



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
}



현대차 차트 분석 매매 가이드 2509115

 꽤나 큰폭으로 하락 중이다. 📌 현대차 매매 가이드 (2025.09 기준) 1. 매수 전략 단기 (2~4주) 현재가 215,750원은 직전 저점(139,800원) 반등 이후, 200,000원대 지지를 확인하며 박스권 상단 돌파 시도 중. 단기 매수...