Super simple Arduino BLE Thermostat controlled with a mobile application

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

Комментарии • 33

  • @davidjobe9876
    @davidjobe9876 2 года назад +1

    That board is half the size of an arduino nano.
    Another fun project, thanks for sharing.

    • @TasteTheCode
      @TasteTheCode  2 года назад

      Thanks David! Yes this one is tiny bit very capable! And also not too expensive!

  • @TakamiWoodshop
    @TakamiWoodshop 2 года назад +1

    nice one dude! I did a couple of projects at work with BT LE and Android, fun stuff.

    • @TasteTheCode
      @TasteTheCode  2 года назад

      Thanks Rob! Definitely worth investing some time to learn how it works. It really opens up a lot of possibilities.

  • @Totial
    @Totial 7 месяцев назад +1

    Very nice project! Im trying to learn from it to build an automatic humidifier. Im just not able to import the aia file to my app inventor, could you re export it? It looks a different format. My aia exports look like a compressed file, yours looks like an html file... or am I doing something wrong?

    • @TasteTheCode
      @TasteTheCode  7 месяцев назад +1

      Hey I just checked the file and the current export looks exactly as the old one. It is a binary file, not an HTML file. From GitHub, you need to download the RAW file in order for it to work in App inventor.

    • @Totial
      @Totial 7 месяцев назад

      @@TasteTheCode Thank you so much! Worked like a charm. a bit frustrated, thought i had done it before :S. Wish you a nice day!!

  • @MrBobWareham
    @MrBobWareham Год назад +1

    Very nice project using BLE to control temperature, can you tell me the range for the Bluetooth control, and do you have any interference problems. Thanks, Bob in the UK.

    • @TasteTheCode
      @TasteTheCode  Год назад

      Hey Bob, the range is typical for Bluetooth, 10-15m depending on obstacles. If you place it somewhere central in the house or apartment, you should be able to access it within. As for interference, I did not had any issues but it would sometimes take a few seconds before it connects properly.

  • @jagiya2125
    @jagiya2125 2 месяца назад

    What type (except for jumper wires) and size of the wire would recommend in this project? Cause I'm afraid that the wrong choice of wire could ruin this project.

    • @TasteTheCode
      @TasteTheCode  2 месяца назад

      I think you can use any wire thickness. There is no high current flow anywhere so it becomes a problem. I personally use 24 AWG for low voltage stuff.

  • @vivienarticona4084
    @vivienarticona4084 3 месяца назад

    Hello! Good morning! Is it possible to let us know what kind of XIAO seeed did you use? Is it nRF52840 Sense or nRF52840? Because I believe they are two different version.

    • @TasteTheCode
      @TasteTheCode  3 месяца назад

      The only difference between the two is the microphone. I mention this in the video.

  • @jagiya2125
    @jagiya2125 2 месяца назад

    Last question sir. Do i need to connect my channel relay to the power source? To turn on the fan when it requires cooling.

    • @TasteTheCode
      @TasteTheCode  2 месяца назад

      The relay needs to interrupt the power to the fan, so it is wired in series with it. One wire goes to COM port on the relay and the other to NO contact. When the relay turns on, these will be connected together, providing power for the fan.

    • @jagiya2125
      @jagiya2125 2 месяца назад

      @@TasteTheCode so to simplify it, there's no need to connect relay directly to the power source?

    • @TasteTheCode
      @TasteTheCode  2 месяца назад

      @@jagiya2125 The relay has 3 input pins. VCC, GND and In from where you control it, so yes it needs to be connected to a power source.

    • @jagiya2125
      @jagiya2125 2 месяца назад

      @@TasteTheCode however, we have already connected the xiao to the power source. Is there a separate connection between the relay and the power source?

  • @mousasaleh6425
    @mousasaleh6425 Год назад

    I ran into another problem. I need to display the percentage of three humidity sensors. Should I give them the same characteristic UUID??
    There is only one characteristic UUID for humidity!!
    Help please!

    • @TasteTheCode
      @TasteTheCode  Год назад +1

      You can either use the same characteristic and pass the three values as colon separated or have three separate characteristics. These can be anything you like.

    • @mousasaleh6425
      @mousasaleh6425 Год назад

      @@TasteTheCode I used comma separated characteristic but got error
      prcntChar.writeValue([Fprcnt,Bprcnt,Rprcnt,Lprcnt]);

    • @TasteTheCode
      @TasteTheCode  Год назад

      You'll need to change it to a String for that and use string concatenation.

  • @raymondduncan5390
    @raymondduncan5390 2 года назад

    What version of ArduinoBLE are you using? I'm going through a tutorial which mentions using this library, but I'm unable to compile because the target board is supposedly not supported by the library.

    • @raymondduncan5390
      @raymondduncan5390 2 года назад

      Nvm, I managed to find a different board type for Arduino. As of this writing, when searching for the board package, there are two types. One is the for Seeed nRF52 Boards, and the other is for Seeed nRF52 mbed-enabled boards. You need the latter in order to compile the ArduinoBLE library.

    • @TasteTheCode
      @TasteTheCode  2 года назад

      @@raymondduncan5390 I'm using the 1.3.1 version of the ArduinoBLE library and the Seeed nRF52 mbed-enabled boards definitions. The board definition package is probably just updated as I remember installing just a single package as per the Wiki docs for the board.

    • @jagiya2125
      @jagiya2125 3 месяца назад

      Hi. How to fix this error saying that " SerialHCI" was not declared in this scope?

  • @fenceup07944931177
    @fenceup07944931177 Год назад

    The UUID's, are they just randomly generated, can it be any string?

    • @TasteTheCode
      @TasteTheCode  Год назад

      There are some that are set for a specific purpose and value but for a custom device they can be any random UUID.

  • @mousasaleh6425
    @mousasaleh6425 Год назад

    I run into a problem when scanning for Bluetooth device. The error says need.amdroid.permission.BLUETOOTH_SCAN......

    • @TasteTheCode
      @TasteTheCode  Год назад

      Yes, when asked, you should allow the app to access Bluetooth on the phone.

    • @mousasaleh6425
      @mousasaleh6425 Год назад

      @@TasteTheCode its not1asking for permission, it's giving error.
      it's a problem with all android 12 devices.l tried it on android 8 and worked fine.

    • @TasteTheCode
      @TasteTheCode  Год назад

      No idea then. It might be a bug in app inventor.

    • @mousasaleh6425
      @mousasaleh6425 Год назад +1

      @@TasteTheCodeYes, they are working on it as l have read in a forum.