To help others jump on the mobile app revolution bandwagon, I have released yet another ebook and you can get it free for the next 5 days. I actually launched this ebook a while back, but have now published it to Amazon and made it available for Kindle which is something I didn’t do before, but got a tremendous amount of requests for. So, now that it’s available for the Kindle and you can get it for free, what’s stopping you? Head over to Amazon and grab your free copy of Android App Dev 101: Create Your Own Android Apps for Fun and Profit before it’s too late!
A while back I posted an article about an Android app I wrote that allows you to perform real-time vehicle diagnostics using Google Glass and an OBD-II adapter. At the end of that article, I promised I would share the source code once I completed it. Unfortunately, I have lost the final source code for that project. Earlier today, I received an email from a reader asking for an explanation of how to read data from the OBD-II adapter. Since I’ve received several other emails asking this same question, I thought I would turn my reply to that email into a post to share with anyone else that might be interested in doing this.
BTW, I did manage to find an earlier version of that source code in one of my backups which I will share a link to at the end of this article. Just be warned, though, that the code is very messy (there’s a lot of commented out debugging stuff in there), it isn’t documented, and it doesn’t include all of the stuff mentioned in the video at the link above. It also only supports reading RPM & speed information, but I had also started adding support for MPG which wasn’t finished at the time this backup was made. But, this code and the following explanation should be enough to get you started with creating your own Android app that allows you to perform real-time vehicle diagnostics using your Google Glass.
As explained in yesterday’s article, I have been overhauling my home automation system (HAS) and have decided to release parts of my controller software written in Python and runs on Raspberry Pi. I have been working on breaking apart the controller software so that each piece can be ran standalone. For example, yesterday’s article showed how to read your Google Calendar with Python. By doing that, you can schedule events to occur in your HAS by simply adding items to your Google Calendar.
Today, I want to share with you some Python code that allows you to control Insteon & X10 devices in your HAS using the Insteon PowerLinc USB modem which you can get from http://www.smarthome.com/powerlinc-modem-insteon-2413u-usb-interface-dual-band.html for about $80. Since the PowerLinc requires an always-on computer to be connected to it, it’s recommended to use a low powered computer such as the Raspberry Pi. Since the code below is written in Python, you can also use it from Windows or Mac if you want. Just make sure you change the “port” property in the serial connection to match your environment. If you combine this code with yesterday’s code, you can schedule your lights and other appliances to turn on and off by scheduling items in your Google Calendar.
My newest ebook is finally available online. You can get it at https://sellfy.com/p/Q4Lg/. It’s currently only available in PDF format. I’m still working on converting it to MOBI and EPUB formats. Once I’m finished converting it, the ebook will be available on Amazon and Barnes & Noble for the Kindle, Nook, and other e-readers. Your feedback is greatly appreciated!
Table of Contents:
Chapter 1: Downloading and Installing Java, Eclipse, and the Android SDK
Chapter 2: Configuring Eclipse and Creating Your First Android App
Chapter 3: Creating a Layout and Adding Some Code
Chapter 4: Testing Your App with the Android Emulator
Chapter 5: Monetizing your Android App with Google AdMob
Chapter 6: Running Your Android App on Cellphones and Tablets
Chapter 7: Publishing Your Android App to the Google Play Store
Chapter 8: (Bonus) Google Glass and Windows 7
Chapter 9: (Bonus) Computer Vision with OpenCV and Google Glass
In this video, I give a sneak peak of a new app I wrote for Google Glass that allows you to do real-time vehicle diagnostics using a OBD-II diagnostic scanner. Currently I can read my vehicle’s current MPH, RPM, & MPG. As time permits, I will add support for things like coolant temperature, average MPH, average MPG, engine load, etc… I will add support for all PIDs that the OBD-II protocol supports including the ability to read and clear check-engine codes & indicators.
I’m reading my vehicle’s computer data using the Bluetooth Supper Mini OBD 2 / OBD II bluetooth adapter (diagnostic scanner) which I got for $20.00 from Amazon. I will post the source code as soon as I have the remaining commands supported.