Making a fan that works with a temperature sensor | micro:bit Coding School pj.09

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • You can receive the temperature sensor value built into the microbit as an input. By comparing this value in the conditional statement, we will create a fan that operates when the temperature is higher than the set temperature. The signal to turn the motor on and off can be done using a "digital write pin" block. I will also teach you how to adjust the temperature sensor values in the simulator, so follow along!
    #microbit
    #temperaturesensor
    #fan
    ✔ Learning Goals
    Let's make a program that turns the fan when the temperature rises using the temperature sensor and DC motor.
    ✔ Preparations
    micro:bit
    USB 5-pin cable
    DC motor
    fan
    3 clamp wires
    3 M-F jumper wires
    ✔ Lessons, filming, editing : hohpark
    ✔ Student : pengshoon / pengshoon
    ✔ Download code and tutorials
    After uploading the video, I will upload the class content and hex file to Github.
    bit.ly/microbi...

КОМЕНТАРІ • 2

  • @cona-e3v
    @cona-e3v Рік тому

    똑같이 따라 했는데 프로펠러가 안돌아요... 집게 핀 접촉 불량일까요??

    • @hohparkTV
      @hohparkTV  Рік тому +1

      음.. 일단 프로그램 시뮬레이터 상에서는 잘 동작하나요? 즉, 온도를 올리면 0번 신호에 빨간색으로 변하는 것은 보셨는지요? (영상 7분쯤) 시뮬레이터는 정상이라면, 말씀하신대로 여러가지 원인이 있을 수 있는데, 선을 바꿔가면서 확인하고, 또 마이크로 비트의 신호선을 0번에서 1번, 2번으로 바꿔가면서 테스트하는게 좋겠습니다. 저도 처음에 잘 안되어 테스트 해보고 결국 모터를 바꿔서 해결한 적이 있어요. 부디 잘 해결하길 빕니다.