A Smart Home With Arduino and Appinventor

Home Forums Forum A Smart Home With Arduino and Appinventor

Viewing 0 reply threads
  • Author
    Posts
    • #392
      reyhan
      Moderator
      450 Credits

      <p class=”MsoNormal”>To control a model house’s room lights, opening doors, ringing doorbell, we used a HC05 bluetooth module. We coded Arduino like this</p>
      <p class=”MsoNormal”>char veri=Serial.read();</p>
      <p class=”MsoNormal”>if(veri==’1′){</p>
      <p class=”MsoNormal”><span style=”mso-spacerun: yes;”>  </span>digitalWrite(10, HIGH);}</p>
      <p class=”MsoNormal”><span style=”mso-spacerun: yes;”> </span>if(veri==’2′){</p>
      <p class=”MsoNormal”><span style=”mso-spacerun: yes;”>  </span>digitalWrite(10, LOW);}</p>
      <p class=”MsoNormal”>Also, we used Appinventor to prepare the apk file:</p>
      <p class=”MsoNormal”>After searching for bluetooth devices, we connect the HC05 and control inside the house. After that, we used a keypad to open the garden door.</p>
      <p class=”MsoNormal”>Keypad needs 1234 password and if truly keyed a servo motor(behind the door) moves to 90 degrees to 20 degrees.Then we used a water pump (6V) to control the watering the flower.</p>
      <p class=”MsoNormal”>If the soil dryness is more than 600, the water pump starts to water. To start the water pump, we used a L298N motor driver. Also, near the house, there are stairs, that has a</p>
      <p class=”MsoNormal”>HCSR04 distance sensor, When we got closer than 10 cm, a light (led) is on.</p>

      • This topic was modified 1 week, 3 days ago by reyhan.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.