Since I received the email of being accepted for the challenge was almost as exiting as when I turned on my first LED. So lets talk about my idea and hope to get other as exited as I am about it.

What I will be building can be viewed as a geocaching device for the car. While it is true I like to think of it is a little more (way more). Keep on going and decide for yourself.

 

Overview:

The PSoC will be installed in a car gathering data from a GPS module and different sensors to create a profile of the driving and surroundings. The data collected shall be stored locally on an SDCard having coordinates, speed, distance from the car in front while moving and accelerator data all with a time stamp. Once the car returns home the owner can connect to the PSoC with his/hers Android phone to extract the data wireless via Bluetooth. With the info collected a map can be plotted within the Android phone to show where the car was and how it was driven.

In case the car is stop but turned on the cabin CO2 sensor will be collecting data, if the CO2 levels inside the car reaches an unsafe level an alarm will go off. This alarm can turn off car or open a window to avoid injuries of occupants. This can avoid injuries or even death of occupant if there is any. Preventing drivers that fall sleep with car turned on inside a closed garage.

If there is enough time, I will build a web site that can accept this data and stored in a centralized database for easy access.

All my project code will be open source and shall remain open and free for ever. I plan to post all the code in my github repo and will post the link when available. The code shall be "as is" updated frequently while coding.  I will be coding the PSoC, the Android App in Java and a web app in python. I am not a web developer but will do my best to get at least something out there.

 

The board should arrive soon and will try to get things done as fast as I can. I want to build like a complete usable prototype system, except that I plan to simulate the turning of the car with a relay and a LED. The idea is keeping all open source and leave it open so others can add up to it or learn from my mistakes and improve. In paper this project is not that complicated but the time is not abundant, I am as exited as anyone can be so this is a doable task and this dream will come true. There are secondary goals to upload data directly from the PSoC without the use of the Android phone, if hardware is available and compatible I will do my best.

 

Hardware (the build):

  1. PSoC 4 (obviously)
  2. GPS arduino compatible shield with SDCard
  3. Serial Bluetooth module
  4. Sonar or ultrasonic sensor (depending on actual distance obtained)
  5. CO2 sensor
  6. Accelerator (to measure bumps on the street)
  7. Few LEDs + buttons to interact with the device.

 

Sofware:

  1. PSoC Code
  2. Android app
  3. Web app in python (if there is enough time)

 

Installation:

A small box should be build containing the PSoC, GPS module, Bluetooth module, a few LEDs and buttons.

The sonar will be installed in front of the vehicle and wired to the brains (PSoC).

A CO2 sensor will be installed in the cabin of the car.

 

Graphic Representation:

car_black_box.png

 

Use cases:

This system can be viewed from some as a open source black box for the car. in case two car have this system installed and they happen to crash one to the other. The police man can go to each car with a phone and extract the GEO data from the vehicles and re-create the accident. With this data the policeman can make a more informed decision when deciding who is responsible for the accident.

Other use case is: In case the car is stolen, the owner should make sure to trow in his/hers smart phone into the car with the criminal. Once the car drives away a SMS message could be send to the cell phone with a secret code that will instruct the cell phone to connect via bluetooth to the PSoC and order to turn off the car. At this moment the cell phone should reply to what ever number the message came from with it's current location so the car can be picked up.

Parents can track their teenagers "movie nights" with a cheap solution and no monthly fee. And not only where they went but at what speed and if he/she has been driving to close to the car in front.

Depending on accuracy of the road bumps data it can be anonymously shared with government to report streets that needs repairs (where I live every road needs repair but maybe elsewhere it is different, this way I will know.).

 

There is a lot to say and so much to include in one post. Will be posting frequently for progress and love reading others work.Thanks for reading this far, good luck with your project.