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
  • Розваги

КОМЕНТАРІ • 35

  •  Місяць тому +2

    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.

    • @GetSwifty
      @GetSwifty  Місяць тому +1

      Thank you so much for your comment! I’ve really got to get back to making content!

  • @ljunq
    @ljunq Місяць тому

    Great video. Would love to see a continuation with bi-directional communication with a device (locking, multiple packets, etc.)

  • @jonewc
    @jonewc 7 місяців тому

    Thank you for sharing this!

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

    Loved it ❤, Real life development is not scripted.

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

      So true. Thank you so much!

  • @AnPham-zf6fg
    @AnPham-zf6fg 8 місяців тому

    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.

    • @GetSwifty
      @GetSwifty  8 місяців тому

      I am so glad you were able to apply this info to a real world project. That’s so awesome!

  • @user-zc7rq9hr9r
    @user-zc7rq9hr9r 11 місяців тому

    Great videos!THx

    • @GetSwifty
      @GetSwifty  11 місяців тому

      Thanks for watching!

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

    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!

    • @GetSwifty
      @GetSwifty  Рік тому +2

      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!

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

      Oh, and yes, in future we'll take a look at cleaning things up a bit. Make the code a little more "production" worthy!

  • @NIXO3D
    @NIXO3D 8 місяців тому +1

    This video is GOLD. 🔥Thank you so much, I was looking for this for quite sometime. Thank you for sharing 🙌🏽

    • @GetSwifty
      @GetSwifty  8 місяців тому

      Thank you so much! I also plan to continue adding more to this series.

    • @NIXO3D
      @NIXO3D 8 місяців тому

      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

    • @GetSwifty
      @GetSwifty  8 місяців тому

      @@NIXO3D 100% I think that's the natural next step here and would set people up for doing just about anything!

    • @NIXO3D
      @NIXO3D 8 місяців тому

      Exactly 👍 Thank you bro 🍻 Looking forward to it 💯 @@GetSwifty

  • @archerknight3562
    @archerknight3562 6 місяців тому

    Cool learned alot

    • @GetSwifty
      @GetSwifty  6 місяців тому

      Glad I could help!

  • @marcdurbach7036
    @marcdurbach7036 11 місяців тому +1

    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

    • @GetSwifty
      @GetSwifty  11 місяців тому +1

      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!

    • @marcdurbach7036
      @marcdurbach7036 11 місяців тому +1

      @@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.

    • @GetSwifty
      @GetSwifty  11 місяців тому +1

      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.

    • @marcdurbach7036
      @marcdurbach7036 11 місяців тому

      @@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

  • @andrewmuniz5283
    @andrewmuniz5283 5 місяців тому

    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.

    • @GetSwifty
      @GetSwifty  5 місяців тому

      YES! I'll make that the next stream I do!

  • @kadmani
    @kadmani 10 місяців тому

    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?

    • @GetSwifty
      @GetSwifty  10 місяців тому

      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!

  • @user-zs9xx2jh7h
    @user-zs9xx2jh7h 10 місяців тому

    Did you try Bluetooth auto pairing for this microcontroller to iPhone?

    • @GetSwifty
      @GetSwifty  10 місяців тому

      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

  • @SA-oj3bo
    @SA-oj3bo Рік тому

    Hi I am looking for an IOS BLE RC App to control a car , any advice? Thx.

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

      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

  • @maclagat3865
    @maclagat3865 5 місяців тому

    What is the program you are using to create the ios app?