Microcontrollers for iOS Developers: Part 3 - CoreBluetooth - BLE
Вставка
- Опубліковано 12 лют 2023
- Second video in a series of streams where we take a look at how you can use your apps to control bluetooth and wifi enabled devices.
Not just any device, but ones you have full control over. We'll take a look at writing firmware for these devices, connecting sensors, and streaming that information back to an app that we create.
This third video covers building a small app to read data from a connected piece of bluetooth hardware.
Working with hardware at this level is super easy. If you already have a programmers mindset, it's not that different from programming an iPhone.
After this series you should have enough experience to control other items in your home, or even create your own hardware products that have a paired app!
--------------------
iOS App
github.com/BeauNouvelle/Bluet...
Some ESP32 Boards
www.amazon.com/Seeed-Studio-X...
www.amazon.com/KeeYees-Develo...
Download Arduino IDE:
www.arduino.cc/en/software
Bluetooth Scanner App:
apps.apple.com/au/app/bluetoo...
---------------------
Want to chat, ask questions about Swift or make video suggestions?
Mastodon
iosdev.space/@beau
Discord
/ discord
Twitter
/ beaunouvelle
Github
github.com/beaunouvelle
Patreon - Get a free book!
/ beaunouvelle
---------------------
#iosdeveloper #electricalengineering #swiftuitutorial - Розваги
This is the best video I've ever seen; it truly captures how we, as programmers, typically work. I was searching for BLE on iOS, and this was the only video across UA-cam that explained how to handle it. Thank you for your channel, the content is pure gold.
Thank you so much for your comment! I’ve really got to get back to making content!
Great video. Would love to see a continuation with bi-directional communication with a device (locking, multiple packets, etc.)
Thank you for sharing this!
Loved it ❤, Real life development is not scripted.
So true. Thank you so much!
This is great tutorial. I follow this series and make own water system for plants using ESP32 for my wife, she is very surprise for that. Thanks you so much.
I am so glad you were able to apply this info to a real world project. That’s so awesome!
Great videos!THx
Thanks for watching!
I love this kind of videos. SUPER educational. I've been trying to work with BLE for medical devices on iOS, and it was quite fun to work with (albeit challenging). I wish to see some architectural design choices in the next part of the series!
Super glad you liked it! It's always challenging doing live streams like this. Without a script and editing backing me up, I'm always worried about not communicating well enough!
Thanks for the comment!
Oh, and yes, in future we'll take a look at cleaning things up a bit. Make the code a little more "production" worthy!
This video is GOLD. 🔥Thank you so much, I was looking for this for quite sometime. Thank you for sharing 🙌🏽
Thank you so much! I also plan to continue adding more to this series.
Awesome 🤩 Can you please show us next time how can we write with it also, for example how can we turn on the built in led and turn it off with Core Bluetooth and using BLE @@GetSwifty
@@NIXO3D 100% I think that's the natural next step here and would set people up for doing just about anything!
Exactly 👍 Thank you bro 🍻 Looking forward to it 💯 @@GetSwifty
Cool learned alot
Glad I could help!
Hi, I really like your streams related to embedded devices and IOS. Have you planned to continue the series ? I would really like to see one with an integration between an IOS app and the Raspberry PICO W (which supports bluetooth since a few weeks) with a micropyhton app running on the pico
Sure thing. Happy to mix it up a bit. I have a few PICOs around. Got any ideas on what I should do with it? Controlling lights?
Thanks!
@@GetSwifty I am working on a small robot, and i wanted to integrate a BLE function in order to control it with my iPhone. I could do it with wifi, but it will be used to make demos, so there will not always be a wifi network available. The basic app will have 3 sliders, one for moving forward ( with speed from 0 to 9 ) , backwards, and left right. I can share the pico code if you are interested. At the end it would be interesting to see If one can hook a camera on the robot and send a stream via BLE to the iPhone.
Sounds simple enough. I guess the main thing would be to just have an app that can send commands over. So we could do a light for demonstration, but no reason why this couldn’t be “move forward” instead.
The camera feed is something I’m interested in too, but probably a whole session for that. I know there’s an esp32 module that has a camera, but not sure if it works over Bluetooth.
@@GetSwifty Just have a look at this link ua-cam.com/video/qLee7ThjOp4/v-deo.html I ordered an Arducam 5M Pixel with autofacus, and will test it on the Pico once it arrived
Hey, are you ever going to make the project you mentioned where you turn on and off a LED from an app? I have a simple two-motor robot I created and a Swift app that acts as a controller to make it go forward, backward, left, and right. I just cant figure out how to connect them.
YES! I'll make that the next stream I do!
My app is just stuck on scanning: 0. Everything else works but you didn't show how you connected the esp with your phone. Did you use regular bluetooth or did you download the app on your iphone as well? I am using ipad, would that cause a difference?
For the app, it knows the ID of the service/characteristic of the Bluetooth device and listens out for that. Once discovered, it forms a connection and can start receiving data.
Are you in the discord? If not and you don’t have it, you can also chat to me on Twitter/x. I can help you out!
Did you try Bluetooth auto pairing for this microcontroller to iPhone?
The app “listens” for devices with a particular ID, and when found sets up a connection. The device itself is open to anyone, and will just broadcast data to anyone listening
Hi I am looking for an IOS BLE RC App to control a car , any advice? Thx.
Control it in what way? Some manufacturers have their own apps for controlling things like climate, locks and windows. E.g Tesla, Audi.
If you’re looking to add Bluetooth to a car that doesn’t have it, that’s a whole other thing
What is the program you are using to create the ios app?
Xcode