iPhone control of ESP32 using Bluefruit Connect

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 มี.ค. 2022
  • I modified the Arduino sketch BLE_uart.ino to set up a bluetooth communication link between an ESP32 Dev Kit and an IOS device. The link uses the existing Bluefruit Connect app, which has a number of communication modules including a UART interface and a control pad.
    The sketch can be downloaded from GitHub:
    github.com/Godefridus/ESP32/b...

ความคิดเห็น • 37

  • @sneakycrayon6345
    @sneakycrayon6345 2 หลายเดือนก่อน +1

    No Way. I have been fighting my esp32 for hours to trying to show up on my iphone BIG THUMBS UP

  • @michaeld1925
    @michaeld1925 ปีที่แล้ว +1

    Wim, you saved me from buying bluetooth modules, which i do not need as i i'll be using the ESP32 Dev Kit. Many thanks for your video!

  • @a_boy_can_dream
    @a_boy_can_dream ปีที่แล้ว +2

    Thanks for this!! I was getting garbage out of my Serial Monitor but changed the baud to 115200 and all was well. I think setting things up probably won't be easy for a newbie-I had to figure out your connections myself-but your effort is greatly appreciated!

  • @ScuTube22
    @ScuTube22 ปีที่แล้ว

    Wim, thanks for the great video. Recently started developing test code for ESP32 for relay control but found it didn't work with iPhone/Apple products. After watching your video, I merged your project with my project in a couple hours and it worked as expected. Thanks for your video!

  • @jajaspox.8625
    @jajaspox.8625 2 ปีที่แล้ว +2

    Works great, and so easy. Thank you for sharing!
    You have a slight typo in the description link to your github (for anyone wondering, the correct link is at the end of the video)

    • @wimderkinderen1952
      @wimderkinderen1952  2 ปีที่แล้ว +1

      Thanks for that!
      I have changed it in the description:
      github.com/Godefridus/ESP32/blob/main/ESP32_UART.ino

  • @ulrichkoelle2997
    @ulrichkoelle2997 ปีที่แล้ว +2

    Thanks a lot Wim for your video and your sympathetic way how you explain what you have done. All the apple stuff is new to me. Your video helped me to connect ESP32 with my MAc book. Great!!

  • @jonathanr4242
    @jonathanr4242 2 ปีที่แล้ว +2

    Great video. I like the breadboard hack for the esp. Literally it's a hacked breadboard.

    • @wimderkinderen1952
      @wimderkinderen1952  2 ปีที่แล้ว +1

      Yes, there is no suitable socket for the ESP32, so this works as good as any. I wouldn’t call myself a hacker as yet 😀

    • @lusher00
      @lusher00 2 ปีที่แล้ว +1

      No kidding. I rarely use breadboards but I bought a 10 pack of those little guys recently. I was annoyed with how easily they come apart but not anymore.

  • @jockewing6530
    @jockewing6530 4 หลายเดือนก่อน

    Vielen Dank !! Ich war kurz vor dem Aufgeben als ich auf Dein Video gestossen bin und jetzt doch noch etwas funktionierendes in Sachen Bluethooth auf ESP32, iphone und der App gefunden habe, wo ich jetzt einen Startpunkt für meine Anwendung habe.

  • @majalabs
    @majalabs 2 ปีที่แล้ว +1

    nice project 👌

  • @gastidj
    @gastidj 10 หลายเดือนก่อน

    GRANDE LOCO..... el unico que lo hizo funcionar para IOS

  • @pompon6903
    @pompon6903 4 หลายเดือนก่อน

    Thank you so much for this video sir

  • @TheXiience
    @TheXiience 7 หลายเดือนก่อน

    thank u!

  • @LoMaChIlO
    @LoMaChIlO 2 ปีที่แล้ว

    Do you think it is possible to use "Image Transfer" with the ESP32 connected to a display TFT ST7789?

  • @refusneant
    @refusneant 4 หลายเดือนก่อน

    thanks a lot

  • @DopamineDosagedaily
    @DopamineDosagedaily ปีที่แล้ว +1

    hello im slightly new to electronics im having trouble with the circuit connections. i noticed my esp32 has slightly different connections though i think they are pretty much the same thing but in different places and the pins are labelled instead of G its a D (eg. pin G13 ---------> D13) these differences make it difficult to copy the connections in the vid if you could make a circuit diagram it would help out a lot pls help!!!

    • @wimderkinderen1952
      @wimderkinderen1952  ปีที่แล้ว

      The pinout of the various ESP32 boards is different, which is annoying to say the least. I don’t know which board you are using. In my case I verified the connection between a pin of the ESP32 chip and the corresponding pin of the board with a multimeter. The pinout of the chip is widely available on the web.

  • @user-ke2ih7xr5g
    @user-ke2ih7xr5g 3 หลายเดือนก่อน

    i am useing same library for esp32 but it showing name in NRF app in IOS but not showing in IOS Bluetooth setting place help me.

  • @kpieceemmry3387
    @kpieceemmry3387 7 หลายเดือนก่อน

    I don’t think I grab anything whatsoever in this tutorial even tho it appears it make sense!!!!

  • @wimbervoets4560
    @wimbervoets4560 ปีที่แล้ว

    Thanks for your well instructed video. But I have a problem to get my ESP32 visible for my Ipad. After uploading and compiling it doesn't show the ESP32 on the Bluefruit connect. I am far from an expert, could you help me on the right rack?

    • @wimderkinderen1952
      @wimderkinderen1952  ปีที่แล้ว

      I have not heard about this problem from other users of the program. The only reason I can think of is the Bluetooth connection itself. I assume that it is switched on? Does the iPad see other bluetooth devices?

    • @wimbervoets4560
      @wimbervoets4560 ปีที่แล้ว

      @@wimderkinderen1952 all others i can see. only my "esp32-wrover-dev'" not shows-up.

    • @wimbervoets4560
      @wimbervoets4560 ปีที่แล้ว

      I succeeded! I lowered the baudrate to 9600 and there it popped up. Thanks 🙂

    • @wimbervoets4560
      @wimbervoets4560 ปีที่แล้ว

      And now it works also at 115200 baud. I am confused.

    • @TheGamerFiFtIn
      @TheGamerFiFtIn ปีที่แล้ว

      @@wimbervoets4560u just need to restart the board, same happened with mine , i based my project on this as well ,works well with my iphone

  • @demiurgiac
    @demiurgiac 2 ปีที่แล้ว

    I am working on a WIN10 PC using an ESP32 DEVKITV1. Compile works with no errors but the sketch does not show on my iphone 8 I followed your work to the letter. The one difference is... the only choice I have when selecting "port" in the IDE is "COM10". In Device Manager I show "Silicon Labs CP210x USBto UARTBridge(COM10)". Never see "/dev/cu/SLAB_USBtoUART" as a port. I can see the ESP32 on my PC (settings>add a device) but never on my iphone (Settings> Bluetooth). Can you advise?

    • @wimderkinderen1952
      @wimderkinderen1952  2 ปีที่แล้ว

      The Bluetooth communication is independent of the COM ports. You only need that port on your PC to upload the sketch to the ESP. The ESP should then show up on your iPhone. Make sure you allow BT LE under Settings/Privacy/Bluetooth.

    • @demiurgiac
      @demiurgiac 2 ปีที่แล้ว +2

      @@wimderkinderen1952 Solved! Thanks for the quick response. The short answer is... I kept working past my bedtime. This morning I solved my dumb mistake in a coupla minutes.

    • @demiurgiac
      @demiurgiac 2 ปีที่แล้ว

      @@wimderkinderen1952 Just wanted to thank you again. As I got into this project, everything I read suggested that it was not possible to do this on an iphone. Just about gave up when I stumbled across you video. Bingo!

    • @wimderkinderen1952
      @wimderkinderen1952  2 ปีที่แล้ว +2

      @@demiurgiac Perseverance, Dave! I often get stuck as well, but I don’t easily give up. Glad to hear that my project has helped you. I also found a lot of tips on the internet. For example, I wrote several iPhone apps using examples by The Swift Guy.

    • @demiurgiac
      @demiurgiac 2 ปีที่แล้ว

      @@wimderkinderen1952, After getting everything up and running I have found a problem I would like some advice on. Several minutes after connecting the ESP32 consistently disconnects and the only way I can reconnect is to go out, open up the weatherproof box it is in, and hit the reset button. Any advice?

  • @Serenty187
    @Serenty187 23 วันที่ผ่านมา

    Hey, i seem to have a problem when uploading the code and i wonder if someone could help me. First of all thank you and great Video!
    Onto my problem:
    I am trying to use this code to connect my phone to my esp32 to control a dc motorboat some of my friends an me have been building for a school project, but the issue that I am facing happens when I try to upload the sketch onto my ESP32 WROOM. I get this error message:
    "Arduino: 1.8.19 (Windows 10), Board: "ESP32-WROOM-DA Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"
    D:ESP32_UART\ESP32_UART.ino: In member function 'virtual void MyCallbacks::onWrite(BLECharacteristic*)':
    ESP32_UART:65:52: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string'} requested
    65 | std::string rxValue = pCharacteristic->getValue();
    | ~~~~~~~~~~~~~~~~~~~~~~~~~^~
    exit status 1
    conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string'} requested
    "
    I've tried to search after similar error messages but did not get any smarter out of that. Did I forget to install some library or additional content? To run this I have just installed the Arduino IDE Version 1.8.19 and the ESP32 Dev Module Board.
    Any Help would be greatly appreciated
    Have a great day!