<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>평촌경영고 로직동아리 by eileen oh</title>
      <link>https://padlet.com/oosycc/Bookmarks</link>
      <description>2024 로직 동아리</description>
      <language>en-us</language>
      <pubDate>2022-05-12 08:02:35 UTC</pubDate>
      <lastBuildDate>2024-12-04 06:58:05 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>패들렛 링크</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2957952427</link>
         <description><![CDATA[<p><a rel="noopener noreferrer nofollow" href="http://gg.gg/1a1a0w">bit.ly/평촌경영고2024</a></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-17 04:47:56 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2957952427</guid>
      </item>
      <item>
         <title>Day2. RGB LED</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2957953478</link>
         <description><![CDATA[<p><br></p><ul><li><p>빨강 -&gt; 1초대기 -&gt; 초록 -&gt; 1초대기 -&gt; 파랑 -&gt; 1초대기 </p></li><li><p>[미션1] 다홍-&gt;1초대기-&gt;노랑-&gt;1초대기-&gt;청록-&gt;1초대기</p></li><li><p>[미션2] 1초마다 랜덤한 색상으로 켜기 </p></li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/1199142e0f43bb84d0d59dcdd57d40db/image.png" />
         <pubDate>2024-04-17 04:48:49 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2957953478</guid>
      </item>
      <item>
         <title>멜로디 만들기 참조 코드</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2958011982</link>
         <description><![CDATA[<pre><code class="language-cpp">int melody[] = {
  262, 196, 196, 220, 196, 0, 247, 262
};

int noteDurations[] = {
  4, 8, 8, 4, 4, 4, 4, 4
};

void setup() {
  for (int thisNote = 0; thisNote &lt; 8; thisNote++) {
    int noteDuration = 1000 / noteDurations[thisNote];
    tone(9, melody[thisNote], noteDuration);
    int pauseBetweenNotes = noteDuration * 1.30;
    delay(pauseBetweenNotes);
    noTone(9);
  }
}

void loop() {

}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-17 05:34:39 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2958011982</guid>
      </item>
      <item>
         <title>옥타브별 주파수</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2958057539</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/86d950bac8cdeb70556a007399b3a8e2/image.png" />
         <pubDate>2024-04-17 06:08:38 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2958057539</guid>
      </item>
      <item>
         <title>Day2. 피에조 부저</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2958116320</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/296be62c39d5f8658d1f128f55bc64ec/image.png" />
         <pubDate>2024-04-17 06:53:43 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2958116320</guid>
      </item>
      <item>
         <title>Day1.  디지털 출력</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2973968047</link>
         <description><![CDATA[<ul><li><p>틴커캐드를 이용한 LED 제어 (저항 사용 이유 )</p></li></ul><ul><li><p>LED on/off 제어&nbsp;&nbsp;</p></li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/40dbddcb90274f76db5ee0176263f6ba/image.png" />
         <pubDate>2024-04-29 16:01:29 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2973968047</guid>
      </item>
      <item>
         <title>Day1. 디지털 출력</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2973969516</link>
         <description><![CDATA[<p><br></p><ul><li><p>LED 패턴 제어 (반복문, 조건문, 변수)</p></li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/3941475f80f567c64f77a256c7613781/image.png" />
         <pubDate>2024-04-29 16:02:52 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2973969516</guid>
      </item>
      <item>
         <title>Day2. 아날로그 출력</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2973972979</link>
         <description><![CDATA[<ul><li><p>LED 밝기 제어</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-29 16:06:07 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2973972979</guid>
      </item>
      <item>
         <title>나만의 멜로디 만들기</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2973975747</link>
         <description><![CDATA[<ul><li><p>부저를 이용하여 나만의 음계 만들기 (배열)</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-29 16:08:18 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2973975747</guid>
      </item>
      <item>
         <title>빛의 삼원색</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2973983419</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/92a4050af440569768863cef1e1a03ce/image.png" />
         <pubDate>2024-04-29 16:14:28 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2973983419</guid>
      </item>
      <item>
         <title>키트 부품 리스트</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2983095655</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/c5429fa204d16b65f31fb168a33206d8/image.png" />
         <pubDate>2024-05-07 09:08:33 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2983095655</guid>
      </item>
      <item>
         <title>Day 3 초음파센서</title>
         <author>hunj03</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2983351348</link>
         <description><![CDATA[<ul><li><p>초음파센서를 활용한 거리 측정</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-07 12:53:05 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2983351348</guid>
      </item>
      <item>
         <title>Day 3 거리에 따른 LED 켜기</title>
         <author>hunj03</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2984571295</link>
         <description><![CDATA[<ul><li><p>30mm 미만이면 빨간불</p></li><li><p>30mm  이상 100mm 미만  초록불</p></li><li><p>100mm 이상 파란불 점듬하기</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-08 05:47:25 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2984571295</guid>
      </item>
      <item>
         <title>Day 3 후방 감지 경보기</title>
         <author>hunj03</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2984682666</link>
         <description><![CDATA[<ul><li><p>거리에 따른 LED 점등과 50mm 미만시 부저로 경고음</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-08 07:08:23 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2984682666</guid>
      </item>
      <item>
         <title></title>
         <author>hunj03</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/2984693997</link>
         <description><![CDATA[<pre><code class="language-cpp">int trigPin = 11;
int echoPin = 10;
int red = 3;
int green = 5;
int blue = 6;

void setup(){
  Serial.begin(9600);
  pinMode(echoPin, INPUT);
  pinMode(trigPin, OUTPUT);
  pinMode(red, OUTPUT);
  pinMode(green, OUTPUT);
  pinMode(blue, OUTPUT);
  pinMode(9, OUTPUT);
   }

void loop(){
  long duration, distance;
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);

// duration은 echo핀이 HIGH를 유지한 시간
  duration = pulseIn(echoPin, HIGH);

// distance = speed * time = 음속(340m/s) * duration
// 왕복 거리이므로 2로 나누기!
  distance = ((float)(340*duration)/1000)/2;

  Serial.print("\nDistance:");
  Serial.print(distance);
  Serial.println("mm\n");
  if (distance &lt; 50 ){
    digitalWrite(red,HIGH);
    digitalWrite(green,LOW);
    digitalWrite(blue,LOW);
    tone(9,262);
  }
  if (distance &gt;=50 &amp;&amp; distance &lt;100){
    digitalWrite(green,HIGH);
    digitalWrite(red,LOW);
    digitalWrite(blue,LOW);
    noTone(9);
  } else {
    digitalWrite(blue,HIGH);
    digitalWrite(red,LOW);
    digitalWrite(green,LOW); 
    noTone(9);
  }
  
  delay(500);
}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-08 07:17:23 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/2984693997</guid>
      </item>
      <item>
         <title>키패드 라이브러리 설치</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3181847463</link>
         <description><![CDATA[<p>샘플 예제 </p><p>[File] &gt; [Examples] &gt; [ Keypad ] &gt; [CustomKeypad]</p><p><br/></p><ol><li><p>버튼 맵핑 값 설정 </p></li><li><p>아두이노 연결 핀 설정</p></li></ol>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/7c24e33b491b47e26fff7ebc3dd6ec50/image.png" />
         <pubDate>2024-10-22 15:08:31 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3181847463</guid>
      </item>
      <item>
         <title>회로연결</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3181853904</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/d9e09611e84681d06f856fd2d060cf77/image.png" />
         <pubDate>2024-10-22 15:12:22 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3181853904</guid>
      </item>
      <item>
         <title>pitches.h</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3181868812</link>
         <description><![CDATA[<p><br/></p><p>키패드의 버튼을 누를 때마다 소리가 나도록 합니다. </p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/c1eb4a8d5b49f97221e4c538b5a82136/pitches.h" />
         <pubDate>2024-10-22 15:20:48 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3181868812</guid>
      </item>
      <item>
         <title>회로연결</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3181925213</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/6d506cf1fafb5ecdf0aa72d4874c0fcf/image.png" />
         <pubDate>2024-10-22 15:52:42 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3181925213</guid>
      </item>
      <item>
         <title>버튼누를때 소리내기</title>
         <author></author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3183061410</link>
         <description><![CDATA[<p>int melody[ROWS][COLS] = {</p><p>&nbsp;&nbsp;{NOTE_C4, NOTE_CS4, NOTE_D4, NOTE_DS4},</p><p>&nbsp;&nbsp;{NOTE_E4, NOTE_F4, NOTE_FS4, NOTE_G4 },</p><p>&nbsp;&nbsp;{NOTE_GS4, NOTE_A4, NOTE_AS4, NOTE_B4},</p><p>&nbsp;&nbsp;{NOTE_C5, NOTE_CS5, NOTE_D5, NOTE_DS5},</p><p>};</p><p><br></p><p>void beep_key_in(char key){</p><p>&nbsp;&nbsp;for (int i = 0; i &lt; ROWS; i++) {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;for (int j = 0; j &lt; COLS; j++) {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (hexaKeys[i][j] == key) {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serial.print(i); Serial.print(","); Serial.println(j);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tone(PIN_BUZZER, melody[i][j]);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delay(100);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noTone(PIN_BUZZER);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p><p>&nbsp;&nbsp;&nbsp;&nbsp;}</p><p>&nbsp;&nbsp;}</p><p>}</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-23 05:39:03 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3183061410</guid>
      </item>
      <item>
         <title>비밀번호 체크 함수</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3183072031</link>
         <description><![CDATA[<pre><code class="language-cpp">char inputKey[5];
char password[5]="1234";
int inputIndex = 0;

void checkPW(char key){
  if (key) {  // 키가 눌렸을 때
    if (key == '#') {  // '#'는 리셋 키
      inputIndex = 0;  // 입력된 코드를 리셋
      Serial.println("Input reset.");
    } 
    else if (key == '*') {  // '*'는 확인 키
      inputKey[inputIndex] = '\0';  // 입력된 코드 끝에 null terminator 추가
      if (strcmp(inputKey, password) == 0) {  // 비밀번호가 일치하는지 확인
        Serial.println("Correct Password!");
      } else {
        Serial.println("Incorrect Password!");
      }
      inputIndex = 0;  // 입력된 코드를 리셋
    } 
    else if (inputIndex &lt; 4) {  // 4자리 입력이 가능하면
      inputKey[inputIndex] = key;  // 입력된 키를 저장
      inputIndex++;
    }
  }
}</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-23 05:46:05 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3183072031</guid>
      </item>
      <item>
         <title>앱인벤터</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3245635965</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/0d4eb2e566955be184b067708f483805/bluetooth_handout.aia" />
         <pubDate>2024-12-04 02:11:56 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3245635965</guid>
      </item>
      <item>
         <title>회로연결</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3245636220</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/9571f2b93ae42e8adf62241c74e98b80/image.png" />
         <pubDate>2024-12-04 02:12:06 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3245636220</guid>
      </item>
      <item>
         <title>설치 앱</title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3245636968</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1698752856/a59a1ce7e27a4ba4fa75fafaf40243c0/image.png" />
         <pubDate>2024-12-04 02:12:33 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3245636968</guid>
      </item>
      <item>
         <title></title>
         <author>oosycc</author>
         <link>https://padlet.com/oosycc/Bookmarks/wish/3245878748</link>
         <description><![CDATA[<pre><code class="language-cpp">#include &lt;SoftwareSerial.h&gt;

#define BT_TX 2  //아두이노 -&gt; 스마트폰
#define BT_RX 3  //스마트폰 -&gt; 아두이노
SoftwareSerial bt(BT_TX, BT_RX);

void setup() {
  Serial.begin(9600);  //PC &lt;-&gt; 아두이노 USB
  bt.begin(9600);      //PC &lt;-&gt; 아두이노 블루투스
  Serial.println("begin.....");

  pinMode(11, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(9, OUTPUT);
}

void loop() {
//블루투스 -&gt; 아두이노 -&gt; 스마트폰
 if(bt.available()){
   char val = bt.read();
   Serial.write(val);

   if(val == '0' ){
     //LED를 끄기
     digitalWrite(11,0);
     digitalWrite(10,0);
     digitalWrite(9,0);
   }
   else if (val == '1'){
     //LED를 켜기
     digitalWrite(11,1);
     digitalWrite(10,1);
     digitalWrite(9,1);
   }
   else if ( val == 'r' ){
     //LED를 켜기
     digitalWrite(11,1);
     digitalWrite(10,0);
     digitalWrite(9,0);
   }
   else if ( val == 'g' ){
     //LED를 켜기
     digitalWrite(11,0);
     digitalWrite(10,1);
     digitalWrite(9,0);
   } 
   else if ( val == 'b' ){
     //LED를 켜기
     digitalWrite(11,0);
     digitalWrite(10,0);
     digitalWrite(9,1);
   }
 }
 if(Serial.available()){
   bt.write(Serial.read());
 }
}



</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-12-04 05:22:57 UTC</pubDate>
         <guid>https://padlet.com/oosycc/Bookmarks/wish/3245878748</guid>
      </item>
   </channel>
</rss>
