iPhone control of ESP32 using Bluefruit Connect
Vložit
- čas přidán 26. 08. 2024
- 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/God...
No Way. I have been fighting my esp32 for hours to trying to show up on my iphone BIG THUMBS UP
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!
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!
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)
Thanks for that!
I have changed it in the description:
github.com/Godefridus/ESP32/blob/main/ESP32_UART.ino
Great video. I like the breadboard hack for the esp. Literally it's a hacked breadboard.
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 😀
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.
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!
Thank you for your genuous sharing
GRANDE LOCO..... el unico que lo hizo funcionar para IOS
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!!
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.
helal olsun.. harikasın
Thank you so much for this video sir
nice project 👌
Great
thanks a lot
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.
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!!!
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.
Do you think it is possible to use "Image Transfer" with the ESP32 connected to a display TFT ST7789?
thank u!
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?
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?
@@wimderkinderen1952 all others i can see. only my "esp32-wrover-dev'" not shows-up.
I succeeded! I lowered the baudrate to 9600 and there it popped up. Thanks 🙂
And now it works also at 115200 baud. I am confused.
@@wimbervoets4560u just need to restart the board, same happened with mine , i based my project on this as well ,works well with my iphone
I don’t think I grab anything whatsoever in this tutorial even tho it appears it make sense!!!!
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?
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.
@@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.
@@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!
@@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.
@@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?
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!