Announcement

Collapse
No announcement yet.

Designe a hardware for controlling lamps with iOS's "Home" application

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Designe a hardware for controlling lamps with iOS's "Home" application

    Hi there.

    I want to design a project that controlling stuffs with apple's "Home" application in iOS or etc.

    But I don't have any knowledge about configuration or kind of data.

    In fact, I want to design a hardware that can control stuffs (like lamps, door lock, ...) with home kit in iOS.

    Do have anyone any knowledge about this project that can help me to do this?

    Best regards.

  • #2
    Hi keivan
    first, you must design a dimmer(control light) and use a wireless device for connection(low bluetooth module, wifi module) for door lock can use relay. if your goal is design a smart home, you must design a main board for control all devices.
    for write code for ios app, you can xcode or Qt, ....

    Comment


    • #3
      Originally posted by saeednowroozi View Post
      Hi keivan
      first, you must design a dimmer(control light) and use a wireless device for connection(low bluetooth module, wifi module) for door lock can use relay. if your goal is design a smart home, you must design a main board for control all devices.
      for write code for ios app, you can xcode or Qt, ....
      Yes, thank you.
      I can design any hardware and coding and this is not my main problem.
      Unfortunately, I don't know how can I get data from modem (WiFi mode for example).
      In fact I can design any dimmers or relay control base boards.
      But my problem in this project is I can't get any thing or I don't know what configuration I have to do to getting any thing in hardware's micro controller.
      Last edited by keivan; 02-01-2019, 10:30 PM.

      Comment


      • #4
        I am also interested to see some feedback, tips, tutorials or links about how to control things with mobile apps over bluetooth. Thanks

        Comment


        • #5
          Originally posted by robertferanec View Post
          I am also interested to see some feedback, tips, tutorials or links about how to control things with mobile apps over bluetooth. Thanks
          Yes that's Very interesting subject to read and research about it.
          But I need helps for do this.

          And I think, we can do this together.

          I found a link that describes this as Apple's Home application



          But, unfortunately it's almost about coding on software (iOS) or maybe I don't understand properly what they mean.

          Thank you.

          Comment


          • #6
            Apple has opened up the HomeKit Accessory Protocol Specification to all developers! That means you can make your own HomeKit-enabled accessories and control them with Siri and the Home app for iOS.


            This shows how to make smart home devices, which can be controlled/monitored via Siri or Home app. By IoT_lover.

            This tutorial is for the upcoming PhpocExpansion library PES-2601 is an easy-to-use 4-port Relay Expansion Board for Arduino Uno and Mega, which allows


            just use google! it looks like a simple arduino can do it..

            Comment


            • #7
              Hi.
              Thank you very much.
              There are a lot of data that I hope useful and I can use them.
              If I find any useful data about this, I will share them here with you guys.

              Comment


              • #8
                I found this: https://wiki.aprbrother.com/en/BlueDuino_rev2.html

                There are also examples for iOS + Arduino codes: https://wiki.aprbrother.com/en/BlueD..._Tutorial.html

                Looks simple, I will buy it and try.

                Comment


                • #9
                  Originally posted by robertferanec View Post
                  I found this: https://wiki.aprbrother.com/en/BlueDuino_rev2.html

                  There are also examples for iOS + Arduino codes: https://wiki.aprbrother.com/en/BlueD..._Tutorial.html

                  Looks simple, I will buy it and try.
                  Thank you Robert for follow up

                  These are good resources,but I want to do this with 'Home' app with apple's Homekit !!

                  I found many Sources, but they did it with Raspery pi and unfortunately seems we can't use apple's Homekit without Raspery pi for this project.

                  Although, I try to find any good posts and hope can finish this project

                  Last edited by keivan; 02-18-2019, 08:42 AM.

                  Comment


                  • #10
                    I like the Bluetooth module as it is pre-programmed and it looks like it should be easy to create connection and send data between iOS and the module. That could make it possible to initialize and send data between Home kit and the module.

                    Comment


                    • #11
                      Originally posted by robertferanec View Post
                      I like the Bluetooth module as it is pre-programmed and it looks like it should be easy to create connection and send data between iOS and the module. That could make it possible to initialize and send data between Home kit and the module.
                      Yes, Bluetooth is good but apple's "Home" application is seamlessly with all iOS and macOS systems and that is so good I think.

                      Further, we know Apple and trust them for safety and security reasons.

                      One more thing is we can control our accessories with long distance via internet (as I understood) and this last option seems quite nice. Not?

                      Comment


                      • #12
                        I started working on it .. can't make even examples work Looks like many codes are broken due new versions of xCode, iOS, Swift, etc. After half day of work I was able to go only up to [CoreBluetooth] XPC connection invalid. If someone has a working basic code for Bluetooth for xCode, please let me know.

                        Comment


                        • #13
                          Originally posted by robertferanec View Post
                          I started working on it .. can't make even examples work Looks like many codes are broken due new versions of xCode, iOS, Swift, etc. After half day of work I was able to go only up to [CoreBluetooth] XPC connection invalid. If someone has a working basic code for Bluetooth for xCode, please let me know.
                          Quite nice Robert. Thank you
                          I am studying hard on it and like you, can't find any good sources.
                          But I hope finally find any codes and do it.
                          It's hard, but not impossible.

                          Comment


                          • #14
                            (BLE) Bluetooth is fairly simple to integrate, typically it's a SoC with code - you push code to it that beacons out a gatt structure which has your device ID, and list of r/w attributes
                            You can find demo apps for android and ios that will scan for the beacons, and then allow you to modify those attributes

                            I tried this with an eval board from silicon labs- thunderboard sense 2 (It's about 30$US), and about half a day I was able to light the leds or read the sensors on it from a phone
                            most of that time was working out the license for the s/w downloaded and getting the updates installed - It has an eclipse based IDE with a lot of available SDK's

                            It's based on single chip arm+radio MCU called gecko (they are about 4-7$)

                            Haven't tried on xcode yet, but here is an example
                            Learn how to develop Bluetooth LE apps for iOS! See how connections are made, data is transmitted and more behind the scenes using the Swift programming language.


                            On android though it was fairly simple to write code that accesses
                            you can start here if you have adk installed -> https://www.bignerdranch.com/blog/bl...energy-part-1/


                            Comment


                            • #15
                              I tried this with an eval board from silicon labs- thunderboard sense 2 (It's about 30$US), and about half a day
                              Yeah, I found out what the problem in my xcode was ... I was running my example in simulator (I did not connect iPhone / iPad) and BT will not work in that case - a real hardware is required to use BT, that is why I was getting "XPC connection invalid" error. Once I figured that out, everything went much faster. Now I am playing with it - it really is not so hard.

                              PS: anovickis the adafruit page is really good for starting.

                              Comment

                              Working...
                              X