User:Ahsanriaz6157/enes-100/project 2.1

My Instructor's user page which points to this.

Week1 Narrative
''Tell a detailed story describing what you did for your team over the first weekend. Link to any wiki pages you edited, videos created. Upload any pictures taken. Compare your task with what you actually did and write what you feel are the next steps.''

Week2 Narrative
At the beginning of the project, i searched for what is a CAN bus and its linkage to a car. Later on i went to garage and saw a few broken cars. i connected the OBD scanner and searched every aspect of a car. Later on i searched the internet for various electrical circuits and electrical skeletons of a car because of which i found the following : Embedded Tutorial I took a basic idea from this but the most important one is this one which would be my main guide towards the completion and that is as follows: hacking into a car this is related to the hacking of a CAN bus and how we can hack an electronic car and perform all the funky stuff.

 File:CAN bus testing 6157.JPG|Found the ODB connector in Toyota Camty File:Diagnose test 2.JPG|Dodge 1996 found two cylinders misfiring File:Testing of hunda odyssey258.JPG|Hunda Odyssey no problems File:Testin 4582.JPG|random testing of another vehicle File:Acronyms in an OBD 2 device 4646431.JPG|acronyms which need to be looked up File:OBD 2 working.JPG|thumb|working of the device File:OBD2 connected to dodge.JPG|Testing Dodge File:Establishing communication with the device.JPG|working and searching for the required specifications File:OBD device6149.JPG|Searching for the component locator File:Last car another old camry with smart key.JPG|had a problem with unwanted dashboard lightdashboard. File:OBD 5846 in work.JPG|trying to find a problem File:Device connection OBD2 ....JPG|connecting the device to camry File:Connection to a camry which had a light on stating its miles which was continuously blinking.JPG|Connection to a camry with light continuously blinking 

Problem
The main task of this week was to arrange an hybrid car to push the project forward and for this i wrote an application to the president regarding the issue. I wrote down the things i needed to push the project forward and studied all the stuff related to the project via internet. Another problem which i faced was that i tried to search for the various programming codes to do various stuff with the car. I wrote my own personal code but there was this compilation error which i will solve this week.

What to do
In my next week i will figure out a way to connect the arduinos and the ECUs into a rough sketched model on a piece of paper and buy my particular and concerning stuff.

Week3 Narrative
In this week i wrote an application to the president of HCC to donate us a car. She promised us to get us a donor for a car. I visited a junk yard named as crazy rays to get some electronic components of the car. We worked with the arduinos this week. I also modified a sample code written in java language to feed the arduino with my arduinos connected to my laptop.

Success This week we were able to get the process of getting a car finalized and would soon get a car. For this purpose; I found a 2004 car for about 2500 dollars. We downloaded the arduino software and figured out to use it. Later on we figured out how to control an arduino. This was done by connecting an arduino witha laptop with the help of a normal data cable and then writing a command for the arduino in java language. This code was written in the blink portion of the arduino software. We were able to figure out the working of two arduinos; each connected with a CANbus respectively. My other partner also tried to get the two arduinos talking to each other. This also did work upto some exrent.

Failure I encountered a number of problems as i had decided to collect some electronic components of a car but the junkyard turned out to be a junk yard of wrecked cars containing about above 1000 wrecked cars. Most of them were old cars. Almost about 20 years old but still none of them were hybrids. The only way we could get the parts were through self service. We had to point out a particular part in a wrecked car. For this we needed a mechanic who could help us identify our required part in a car as there were dozens of different models. Later on i suffered a little difficulty in installing the arduino software. I was unable to upload to a sample program as it gave errors. I compiled a java code on another arduino. It did not compile and gave a vague compilation error.

Next steps We are looking forward for the car to be purchased. Later on i will figure out the coding of an arduino- CANbus structure. We will experiment our CANbus on a hybrid car and check out its working.I will go back to the junkyard and track down the CANbus of a car and document it. I will work on the programming of an arduino- CAN bus shield.

 File:Arduino-CANbus structure.JPG|thumb|Arduino-CANbus structure connected to a laptop. the arduino software installed would be used to communicate between the two different structures File:Blink software on my laptop.JPG|thumb|i tried uploading a sample code from the examples of the arduino software but it failed giving this error as in the picture. File:Crazy rays junkyard.JPG|thumb|visit to the crazy rays junkyard. File:Junk car..JPG|thumb|An example of a junk car in the yard. with its engine out. 

Week4 Narrative
Started off my week with the coding process of the arduinos. Found a few videos related to the hacking of a CANbus. Decided to make it a part of the project. Went to the junkyard again and this time figured out the connection of the wires going through different ECUs, wire harnesses and the CANbus. Had a little success. [*http://www.youtube.com/watch?v=PbA_bOO2mMw Arduino CANbus shield demo]

Success
1.in the starting of the week, got along with the coding of the arduino and uploaded a few programs to test it and it worked.

2.Then found a few cheap hybrid cars for sale and talked to the person responsible for the sales process and told me to check the cars.

3.then went back to the junkyard and tried to dis mental a car and find the connection of the CANbus to various ECUs and stuff.

4.Found lots of electronic parts and their connections.

Failure
1. un assembling various parts of a car was not an easy task and could not un assemble one complete car.

2. Instead i went to inspect other cars which had been wrecked and were easy to open up.

3. As a result of this, most models had different inner electrical structures but i did find some good stuff.

4. Last one is this that the parts were for sale at the spot and could not be reserved or booked in advance.

5. At the beginning of the week, i searched for programs in java language which were not working on blink. Later on i found the problem as blink supported C language.

Car Donation
[*http://www.cars.com/vehicledetail/detail/139087662/overview/ Civic hybrid 2003] [*http://autos.aol.com/used-detail--4651983745321547962-Honda-Civic-2004 civic hybrid 2004]

Next steps
1. Draft the final report for buying a hybrid car to the instructor.

2. Review the presentation on CANbus

3. List all the other parts to be bought from the junkyard.

4. make a sketch of the complete model of the CANbus project which must include all the ECUs connected to the CANbus.

5. Start working on the programing of the arduinos for entering in the hacking part.

Gallery
GAllery of junk yard  File:Head light.JPG|thumb|head lights connection of wires through the ECU File:Wiring of a light.JPG|thumb|wires of the head light wich would eventually go to a CANbus File:Inside of the drivers door of a car.JPG|thumb|here you can see wires moving from a small ECU which moves into a battery. File:Fuse relay.JPG|thumb|fuse relay File:Wires moving into a head light.JPG|thumb|i traced down a wire which eventually moved into the head lights. File:Fuse relay with a connector to the CANbus in yellow.JPG|thumb|fuse relay with a connector to the CANbus in yellow. File:Behind the radio buttons in a car.JPG|thumb|i dont exactly know what these are but you can see another small microconnector which is later on connected to a CANbus. File:Plugs in a car.JPG|thumb|plugs in a car connected from the fuse relay File:Behind the radio buttons in a car.JPG|thumb|i dont exactly know what these are but you can see another small microconnector which is later on connected to a CANbus. File:CANbus and ECU.JPG|thumb|this structure contains a CANbus, fuse relay and ECUs attached. 