remote start -> Particle Electron -> internet <- iphone
I started this project to get remote start working on my car from my iPhone. Much like Viper SmartStart or CompuStar’s Drone Mobile.
- Simple API
- All calls to the Particle Electron can be done through a REST call. This gives me the option to make anything that has an internet connection a remote.
- iOS Client
- Screenshots
- Four buttons are supported on the remote
- Status LED
- Temperature sensor
- detect when car is running
- detect door lock/unlock state
- gps
- unlock door when phone is within a few feet of the car
- Compustar Remote Start
- Compustar Remote 1WSHR
- Particle Electron https://store.particle.io/#electron
- Device running iOS 7+
- Temperature Sensor TMP36
- Optocoupler (I used a LTV-847)
- Dual color LED (You can use separate LEDs if you like)
You can substitute most of these items for anything that is equivalent.
-
Assemble breadboard
- Use hardware.fzz or png as a reference
- Solder leads on switches from remote
- Attach Particle Electron to breadboard
- Pins and switches match up to code in arduino
-
Setup Particle Electron
- Follow instructions on (Connecting your Electron)[https://docs.particle.io/guide/getting-started/intro/electron/]
- (Create a new App)[https://build.particle.io/] at particle.io
- Paste the code from spark_core/remote-start.cpp to this new App
- Obtain your device_id and access_token from particle.io
-
iOS
- Install Cocoapods
- cd carspark/iOS
- pod install
- Open Carspark.xcworkspace
- Build and install device on your iPhone or iPod Touch
- Add Device ID and Access Token in Settings.app or the 'API Settings' button on the Info screen.
- Install Cocoapods
Things that will help you learn about how this all works
- Fritzing for reading .fzz files
- Particle Cloud API
See remote-start.cpp for more info on what api calls can be used.
Events are sent for every api call that is made and if a connection to Particle Cloud is reestablished.
You can subscribe to events like this.
curl -H "Authorization: Bearer <access_token>" https://api.particle.io/v1/devices/<device_id>/events
This is a project for myself. I am happy to share what I have done but make no guarantee that anyone else attempting this will enjoy the same success, or failures, that I have.