<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>스마트시티 by 성예린</title>
      <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2024-01-10 00:13:08 UTC</pubDate>
      <lastBuildDate>2024-01-12 03:16:09 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>버튼</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843503321</link>
         <description><![CDATA[<p>#define BUTTON 23</p><p>void setup(){</p><p>  pinMode(BUTTON,INPUT);</p><p>  Serial.begin(9600);</p><p>}</p><p>void loop(){</p><p>  int buttonState=digitalRead(BUTTON);</p><p>  Serial.println(buttonState);</p><p>  delay(100);</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 00:14:17 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843503321</guid>
      </item>
      <item>
         <title>마그네틱 센</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843503601</link>
         <description><![CDATA[<p><br/></p><p>#define HALLSENSOR 15</p><p>void setup(){</p><p>  pinMode(HALLSENSOR,INPUT);</p><p>  Serial.begin(9600);</p><p>}</p><p>void loop(){</p><p>  if (!digitalRead(HALLSENSOR)) {</p><p>    Serial.println("자성감지");</p><p>    delay(100);</p><p>  }</p><p>  else{</p><p>    Serial.println("감지안됨");</p><p>    delay(100);</p><p>  }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 00:14:47 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843503601</guid>
      </item>
      <item>
         <title>근접센</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843503759</link>
         <description><![CDATA[<p>#define PROXSENSOR 34</p><p>void setup(){</p><p>  Serial.begin(9600);</p><p>}</p><p>void loop(){</p><p>  int value = analogRead(PROXSENSOR);</p><p>  Serial.println(value);</p><p>  delay(100);</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 00:15:04 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843503759</guid>
      </item>
      <item>
         <title>출입 감지 빌딩 코</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843504050</link>
         <description><![CDATA[<pre><code class="language-cpp">#define BLYNK_PRINT Serial

#define BLYNK_TEMPLATE_ID "" Blynk 에서 Device Info 에 있는 코드
#define BLYNK_TEMPLATE_NAME ""
#define BLYNK_AUTH_TOKEN ""

#include &lt;WiFi.h&gt;

#include &lt;WiFiClient.h&gt;

#include &lt;BlynkSimpleEsp32.h&gt;

char auth[] = BLYNK_AUTH_TOKEN;

char ssid[] = ""; // wifi 아이디

char pass[] = "";// wifi 비밀번호

#define BTN_SECURITY_MODE 23

#define BTN_ADMIN_CHECK 27

#define HALLSENSOR 15

#define PROXSENSOR 34

BlynkTimer timer;

boolean securityMode;

boolean doorOpen;

boolean windowOpen;

boolean adminCheck;

void securityEvent(){

  if (!digitalRead(HALLSENSOR)){

    windowOpen = true;

  }

  if (analogRead(PROXSENSOR)&gt;4000){

    doorOpen = true;

  }

  if (digitalRead(BTN_SECURITY_MODE)){

    securityMode = !securityMode;

    windowOpen = false;

    doorOpen = false;

  }

  if (securityMode){

    if (windowOpen){

      Blynk.virtualWrite(V1,"창문 침입 감지");

    } else if (doorOpen){

      Blynk.virtualWrite(V2,"출입문 침입 감지");

    } else {

      Blynk.virtualWrite(V1,"창문 보안 작동중");

      Blynk.virtualWrite(V2,"출입문 보안 작동중");

    }

  } else {

    Blynk.virtualWrite(V1,"출입문 보안 해제 해제중");

    Blynk.virtualWrite(V2,"창문 보안 해제 해제중");

  }

  if (digitalRead(BTN_ADMIN_CHECK)){

    windowOpen = false;

    doorOpen = false;

  }

}

void setup(){

  Serial.begin(115200);

  pinMode(HALLSENSOR,INPUT);

  pinMode(BTN_SECURITY_MODE,INPUT);

  pinMode(BTN_ADMIN_CHECK,INPUT);

  Blynk.begin(auth,ssid,pass);

  timer.setInterval(200L,securityEvent);

}

void loop(){

  Blynk.run();

  timer.run();

}

</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 00:15:34 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843504050</guid>
      </item>
      <item>
         <title>cp201x 다운로드 링크</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843572141</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads" />
         <pubDate>2024-01-10 01:37:46 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2843572141</guid>
      </item>
      <item>
         <title>성예린 연결 코드</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844275133</link>
         <description><![CDATA[<pre><code class="language-cpp">/*************************************************************

  This is a simple demo of sending and receiving some data.
  Be sure to check out other examples!
 *************************************************************/

/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID           "TMPL6tDC4qkyu"
#define BLYNK_TEMPLATE_NAME         "Quickstart Template"
#define BLYNK_AUTH_TOKEN            "h_aGPtGykAhjdW425kB4Bdmyf2A2lZtY"

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include &lt;WiFi.h&gt;
#include &lt;WiFiClient.h&gt;
#include &lt;BlynkSimpleEsp32.h&gt;

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Dosirak_421650";
char pass[] = "16064412";

BlynkTimer timer;

// This function is called every time the Virtual Pin 0 state changes
BLYNK_WRITE(V0)
{
  // Set incoming value from pin V0 to a variable
  int value = param.asInt();

  // Update state
  Blynk.virtualWrite(V1, value);
}

// This function is called every time the device is connected to the Blynk.Cloud
BLYNK_CONNECTED()
{
  // Change Web Link Button message to "Congratulations!"
  Blynk.setProperty(V3, "offImageUrl", "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations.png");
  Blynk.setProperty(V3, "onImageUrl",  "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations_pressed.png");
  Blynk.setProperty(V3, "url", "https://docs.blynk.io/en/getting-started/what-do-i-need-to-blynk/how-quickstart-device-was-made");
}

// This function sends Arduino's uptime every second to Virtual Pin 2.
void myTimerEvent()
{
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V2, millis() / 1000);
}

void setup()
{
  // Debug console
  Serial.begin(115200);

  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  // You can also specify server:
  //Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 80);
  //Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(192,168,1,100), 8080);

  // Setup a function to be called every second
  timer.setInterval(1000L, myTimerEvent);
}

void loop()
{
  Blynk.run();
  timer.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 14:22:35 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844275133</guid>
      </item>
      <item>
         <title></title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844277545</link>
         <description><![CDATA[<p>#define BLYNK_TEMPLATE_ID "TMPL6tDC4qkyu" #define BLYNK_TEMPLATE_NAME "Quickstart Template" #define BLYNK_AUTH_TOKEN "3N1Yx3T4V2tc_kn3HKUfKhTzQdxxptI9"</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 14:24:32 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844277545</guid>
      </item>
      <item>
         <title>재난 감지 빌딩 센서 테스트</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844379511</link>
         <description><![CDATA[<p>적외선 불꽃 감지 센서</p><p>#define SPARKSENSOR 33</p><p>void setup() {</p><p> pinMode(SPARKSENSOR, INPUT);</p><p> Serial.begin(9600);</p><p>}</p><p>void loop() {</p><p> if (digitalRead(SPARKSENSOR)) {</p><p> Serial.println("FIRE");</p><p> delay(300);</p><p> }</p><p>}</p><p>진동 감지 센서</p><p>#define SHOCKSENSOR 32</p><p>void setup(){</p><p> pinMode(SHOCKSENSOR , INPUT);</p><p> Serial.begin(9600);</p><p>}</p><p>void loop(){</p><p>if(digitalRead(SHOCKSENSOR )){ </p><p> Serial.println("충격감지");</p><p> delay(100);</p><p> }</p><p>}</p><p>버저</p><p>#define BUZZER 18</p><p>int freq = 5000;</p><p>int buzzerChannel =0; </p><p>int resolution = 8;</p><p>void setup(){</p><p> ledcSetup(buzzerChannel,freq,resolution);</p><p> ledcAttachPin(BUZZER, buzzerChannel);</p><p>}</p><p>void loop(){</p><p> for(int i=480; i&lt;=700; i++){ </p><p> ledcWriteTone(buzzerChannel, i);</p><p> delay(9);</p><p> }</p><p> for(int i=700; i&gt;=480; i--){</p><p> ledcWriteTone(buzzerChannel, i); </p><p> delay(9);</p><p> }</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-10 15:35:31 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844379511</guid>
      </item>
      <item>
         <title>성예린</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844947813</link>
         <description><![CDATA[<p>#define BLYNK_TEMPLATE_ID "TMPL6tDC4qkyu" #define BLYNK_TEMPLATE_NAME "Quickstart Template" #define BLYNK_AUTH_TOKEN "3N1Yx3T4V2tc_kn3HKUfKhTzQdxxptI9"</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 01:48:03 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844947813</guid>
      </item>
      <item>
         <title>2205 김병철</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844947847</link>
         <description><![CDATA[<p>#define BLYNK_TEMPLATE_ID "TMPL6M9g8E34Z" #define BLYNK_TEMPLATE_NAME "Quickstart Template" #define BLYNK_AUTH_TOKEN "SWSmP_sCNdL66DpzMLHHoSB2nhqiitno"</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 01:48:06 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844947847</guid>
      </item>
      <item>
         <title>조현성</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844947873</link>
         <description><![CDATA[<p>#define BLYNK_TEMPLATE_ID "TMPL6QT2-rAdA" #define BLYNK_TEMPLATE_NAME "Quickstart Template" #define BLYNK_AUTH_TOKEN "VnWxdyomnPJz-s_EO9OlcBJo61a2ukIA"</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 01:48:08 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844947873</guid>
      </item>
      <item>
         <title>qwer</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844948309</link>
         <description><![CDATA[<p>#define BLYNK_TEMPLATE_ID "TMPL6ULyKGph9" #define BLYNK_TEMPLATE_NAME "Quickstart Template" #define BLYNK_AUTH_TOKEN "_P50pRkGNcnmNvhZ3cwaN4Vn8BH8V6GM"</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 01:48:30 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844948309</guid>
      </item>
      <item>
         <title>Dosirak_4202569</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844951816</link>
         <description><![CDATA[<pre><code class="language-cpp">12825792</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 01:52:11 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844951816</guid>
      </item>
      <item>
         <title>와이파이</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844951891</link>
         <description><![CDATA[<p>아이디 : Dosirak_4216593</p><p>비번: 30463445</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 01:52:16 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2844951891</guid>
      </item>
      <item>
         <title>소스 코드 1</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845023266</link>
         <description><![CDATA[<p>#define SPARKSENSOR 33</p><p><br/></p><p><br/></p><p>void setup() {</p><p>  pinMode(SPARKSENSOR, INPUT);</p><p>}</p><p><br/></p><p>void loop() {</p><p>  if (digitalRead(SPARKSENSOR)) {</p><p>    Serial.println("FIRE");</p><p>    delay(300);</p><p>  }</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 03:10:01 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845023266</guid>
      </item>
      <item>
         <title>소스 코드 2</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845025340</link>
         <description><![CDATA[<p>#define SPARKSENSOR 32</p><p>void setup() {</p><p>  pinMode(SPARKSENSOR, INPUT);</p><p>  Serial.begin(9600)</p><p>}</p><p><br/></p><p>void loop(){</p><p>if (digitalRead(SPARKSENSOR)){</p><p>   Serial.printlm("충격감지");</p><p>   delay(100);</p><p>   }</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 03:12:38 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845025340</guid>
      </item>
      <item>
         <title>소스 코드 3</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845028087</link>
         <description><![CDATA[<p>#define BUZZER 18</p><p>int freq = 5000;</p><p>int buzzerChannel =0;</p><p>int resolution = 8;</p><p><br></p><p>voidsetup(){</p><p>  ledcSetup(buzzerChannel,freq,resolution);</p><p>  ledcAttachPin(BUZZER, buzzerChannel);</p><p>}</p><p>void loop(){</p><p>  for(int i=480; i&lt;+700; i++){</p><p>   ledcWriteTone(buzzerChannel, i);</p><p>  delay(9);</p><p> }</p><p> for(int i=700; i&gt;=480; i--){</p><p>  ledcWriteTone(buzzerChannel, i);</p><p>  delay(9);</p><p> }</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 03:15:57 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845028087</guid>
      </item>
      <item>
         <title>asd</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845029149</link>
         <description><![CDATA[<pre><code class="language-cpp">#define SPARKSENSOR 33


void setup(){
  pinMode(SPARKSENSOR,INPUT);
  Serial.begin(9600);
}


void loop(){
  if (digitalRead(SPARKSENSOR)){
    Serial.println("FIRE");
    delay(300);
  }
} </code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 03:17:20 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845029149</guid>
      </item>
      <item>
         <title>재난</title>
         <author>syr11</author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845796581</link>
         <description><![CDATA[<pre><code class="language-cpp">#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID ""
#define BLYNK_TEMPLATE_NAME ""
#define BLYNK_AUTH_TOKEN ""//자신의 정보 device info에서 붙여넣기



#include &lt;WiFi.h&gt;
#include &lt;WiFiClient.h&gt;
#include &lt;BlynkSimpleEsp32.h&gt;
char auth[] = BLYNK_AUTH_TOKEN;


char ssid[] = "";//와이파이 아이디 붙여넣기
char pass[] = "";//와이파이 비밀번호 정보 붙여넣기



#define BTN_ADMIN_CHECK 27 //관리자 확인 버튼
#define SHOCKSENSOR 32
#define SPARKSENSOR 33
#define BUZZER 18     
int freq = 5000;
int buzzerChannel=0;
int resolution = 8;
BlynkTimer timer;
boolean fireDetect;
boolean shockDetect;
boolean adminCheck;
void disasterEvent() {
  if (digitalRead(SPARKSENSOR)) {
    fireDetect = true;
  }
  if (digitalRead(SHOCKSENSOR)) {
    shockDetect = true;
  }
  if (fireDetect) {
    Blynk.virtualWrite(V3, "화재 감지");
  } else if (shockDetect) {
    Blynk.virtualWrite(V4, "지진 감지");
  } else {
    Blynk.virtualWrite(V3, "재난 감지 작동 중");
    Blynk.virtualWrite(V4, "재난 감지 작동 중");
  }
  if (fireDetect) {
    ledcWriteTone(buzzerChannel, 500);
  } 
  else if (shockDetect) {
    ledcWriteTone(buzzerChannel, 900);
  } 
  else {
    ledcWriteTone(buzzerChannel, 0);
  }
  if (digitalRead(BTN_ADMIN_CHECK)) {
    shockDetect = false;
    fireDetect = false;
  }
}
void setup() {
  Serial.begin(9600);
  ledcSetup(buzzerChannel, freq, resolution);
  ledcAttachPin(BUZZER, buzzerChannel);
  pinMode(SPARKSENSOR, INPUT);
  pinMode(SHOCKSENSOR, INPUT);
  pinMode(BTN_ADMIN_CHECK, INPUT);
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(200L, disasterEvent);
}
void loop() {
  Blynk.run();
  timer.run();
}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-01-11 15:48:49 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2845796581</guid>
      </item>
      <item>
         <title>2418 조재영</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2846358382</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-01-12 02:05:27 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2846358382</guid>
      </item>
      <item>
         <title>진짜 2418 조재영입니다</title>
         <author></author>
         <link>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2846358777</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-01-12 02:05:55 UTC</pubDate>
         <guid>https://padlet.com/syr11/kfnqkrowxbg8pnjs/wish/2846358777</guid>
      </item>
   </channel>
</rss>
