Announcement

Collapse
No announcement yet.

2002 Volvo S60 Super Connected Car PC

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

  • 2002 Volvo S60 Super Connected Car PC

    As I've accomplished nearly all my goals in my Car PC, and I won't be doing much work until next summer as I start college this year, I figured it's about time I make a "Show off your project" thread. Believe me, there is plenty to show off.

    The goals of this project start off like the typical car pc:
    7" touch screen in dash looking nice and clean
    Windows xp, slimmed down
    PC in trunk
    Powerful audio system
    Good performance

    Things took a swift turn when I encountered the Sheeva Plug. For those that don't know it's a headless linux computer with a retail price of $100 in the compact form of a wall wart power adapter. It consumes under 5 watts of power making it suitable for always-on in-car operation.

    Pair the sheeva plug with a verizon 3g USB stick, a wireless router, and a fusion brain, some serious programming and now you're packing a POWERFUL set of features. I love programming, I love tinkering. I've been programming since I was 9. Built my first computer when I was 10. I've never stopped tinkering. This was my ultimate toy.

    After many attempts at getting the formula just right, I got everything working:
    The output:
    • Always-on sheeva plug, always connected to the web.
    • Always-on wifi router. Providing a wifi hotspot around my car at all times.
    • Fusion brain attached to all my accessory lights, the desktop PC's turn on, my garage door opener, my amplifiers.
    • Software providing a control-system. It processes rules.
      --Ex. If car is on, and it is night, turn on accessory lights.
      --If car is on and PC is off, turn on computer.
      --If car is on and voltage is above 13, un-isolate my accessory battery.
    • Software providing an interface with the network/internet.
    • Various connections to the network interface:
      --A cenrafuse plugin
      --An ajax web page
      --A gps tracking ajax page
      --An AIM bot interacting with the the car through the web interface
      ----AIM bot provides SMS Text Messaging control from my phone
      ------I get text messages when my battery is low

    That's the list in the smallest possible nutshell. In subsequent posts I'll post pictures and all the in-depth details.

    I would also like to thank several forum members here for some of the help and tools they have provided me.
    tripzero - thank you for all the work you have done on linux. It makes working with the sheeva plug much easier
    chunkyks - thank you for your work on linux programs as well.
    2k1toaster - Hey I know I paid for the fusion brain, but thank you for the help you've given me. I'm sure at times I've been a a minor annoyance
    mp3car - the store has been excellent to me, and the forums are an amazing resource. Without stumbling on this site while trying to get my mp3 player hooked up to my stock radio, I would have never found the CarPC hobby.

    Picture to be added real soon...
    My Nearly Complete Car:
    http://www.mp3car.com/vbulletin/show...ed-car-pc.html

    Micro Control Center... Control Your Car Across the Internet
    http://www.mp3car.com/fusion-brain/1...-internet.html

    Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
    http://paulfurtado.com/

  • #2
    Also if at any point in this thread you want more details, or some code to help you get started with your own project, feel free to ask. Really. I love answering questions and solving problems.
    My Nearly Complete Car:
    http://www.mp3car.com/vbulletin/show...ed-car-pc.html

    Micro Control Center... Control Your Car Across the Internet
    http://www.mp3car.com/fusion-brain/1...-internet.html

    Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
    http://paulfurtado.com/

    Comment


    • #3
      Before pictures:







      My Nearly Complete Car:
      http://www.mp3car.com/vbulletin/show...ed-car-pc.html

      Micro Control Center... Control Your Car Across the Internet
      http://www.mp3car.com/fusion-brain/1...-internet.html

      Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
      http://paulfurtado.com/

      Comment


      • #4
        Trunk Complete Pictures:































        My Nearly Complete Car:
        http://www.mp3car.com/vbulletin/show...ed-car-pc.html

        Micro Control Center... Control Your Car Across the Internet
        http://www.mp3car.com/fusion-brain/1...-internet.html

        Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
        http://paulfurtado.com/

        Comment


        • #5
          I saw Paul's car at afkfest and it is flat out impressive! It really is incredible how he has managed to do some very innovative things with the Sheeva including being able to IM with his car.

          I'd like to know a bit more about the web page for the car and the rules based system. How does that work and is it on the Sheeva?

          I think some of these ideas would make ideal OSDash services. For example, a web page that you can set the parameters using the gui and those parameters would be sent to the car when it was online.

          Oh yeah, also some details on the battery isolation and charging system. I'm going to have to do this as well.
          Originally posted by ghettocruzer
          I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
          Want to:
          -Find out about the new iBug iPad install?
          -Find out about carPC's in just 5 minutes? View the Car PC 101 video

          Comment


          • #6
            Some older pics from the beginning of the install:













            From my designing of a two-rack system. That turned into an utter failure and a mess.

            Amp level:


            Top level for cpu:


            Lit up:


            Ahh the good 'ole days.
            My Nearly Complete Car:
            http://www.mp3car.com/vbulletin/show...ed-car-pc.html

            Micro Control Center... Control Your Car Across the Internet
            http://www.mp3car.com/fusion-brain/1...-internet.html

            Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
            http://paulfurtado.com/

            Comment


            • #7
              Originally posted by Bugbyte View Post
              I saw Paul's car at afkfest and it is flat out impressive! It really is incredible how he has managed to do some very innovative things with the Sheeva including being able to IM with his car.
              Thank you!
              I'll break my response down into multiple posts. Give me a few minutes.
              My Nearly Complete Car:
              http://www.mp3car.com/vbulletin/show...ed-car-pc.html

              Micro Control Center... Control Your Car Across the Internet
              http://www.mp3car.com/fusion-brain/1...-internet.html

              Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
              http://paulfurtado.com/

              Comment


              • #8
                Originally posted by Bugbyte View Post
                I'd like to know a bit more about the web page for the car and the rules based system. How does that work and is it on the Sheeva?
                There's a lot of python scripts going on here. A MySQL database holds all data related to everything.

                Relays
                Theres a table which contains just relays and their states. Each row in the table has a relay number, a relay name, and a state: 0,1 ,or 3. 0 is off, 1 is on, 3 is turn on for .5 seconds then off.

                A python script constantly polls the table and then sends the appropriate command to the Fusion Brain Daemon over the DBUS to set each relay.


                Sensors
                Two mysql tables here. One holds all the current data on each mysql sensor. One holds a few minutes worth of history on each sensor.

                Again, python loads data from the fusion brain daemon and populates these mysql tables.


                "Views"/"Readable Data"
                This starts getting a bit more interesting. Here I have a mysql table called views. It has two columns. One is the name of the view, and one is how to come up with its value. Basically the second field allows you to enter raw python code that comes up with the value. I wrote some nice functions that allow things to be easier.

                Ex. typing sensor(5) will give you the value of sensor 5 on the fusion brain. Throw some math in there and you get some pretty nice features.

                All the values calculated from this table are processed with python and then they get thrown into the readable data table for quick access.

                Rules
                This table contains two fields. A condition and a command. Once again the condition is raw python. Nice functions here let you snag values from readabledata and sensors, as well as current relay states, obd2 values, web request, linux commands, gps location, or raw mysql queries.

                A python script runs through the condition field, if a rule's condition evaluates to true, it runs the code in the command field. Which has the ability to do anything python can do and some easy functions for setting relays.

                Command Line interface
                I wrote another python script with all the functions included. Typing commands at the command line allow you to get/set any piece of information with super-dumbed down commands. There is also another mysql table which contains shortcut commands.

                Ex. "exteriorn" will run relay(5,1), relay(6,1), relay(7,1) turning on the fog lights, door lights, and underglow.

                typing "coord" will return the latitude and longitude with the standard comma in between.

                many others exist.

                Web interface
                This is the easy part. Apache server. PHP installed.
                Using the "backtick operator" you can run a linux command from within php.

                http://ipaddress/commands.php?cmd=coord

                Will take "coord" and pass it to the python command line app, and return its output to the client.

                Now throw an ajax/jquery page on the server with some cool buttons and dialogs and effects and whatnot and you get a slick web interface which can be coded with several hours.

                Centrafuse interface
                Centrafuse plugins are coded in C#. C# has a WebRequest class. Instead of a web browser loading that url, a button in centrafuse does. Simple as that.


                AOL Instant Messenger Interface
                You've seen AIM bots. The likes of smarter child, or your friends getting turned into spammers. What if instead of a bot having some logic to reply, all it did was take the instant message, remove any text formatting and load it into that URL then reply to the AIM message with that url? Easy as that. The aim interface resides on a web server. It is also coded in python. This way if the car is offline, you get an appropriate message from aim. The remote web server also has a mysql storing the most recent values from the car so when the car is offline, you can still get somewhat updated data. You can also send a command that persists to whenever the car comes back online.

                SMS Text Messaging Interface
                AIM sends/receives text messages. End of story.
                My Nearly Complete Car:
                http://www.mp3car.com/vbulletin/show...ed-car-pc.html

                Micro Control Center... Control Your Car Across the Internet
                http://www.mp3car.com/fusion-brain/1...-internet.html

                Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
                http://paulfurtado.com/

                Comment


                • #9
                  Originally posted by Bugbyte View Post
                  Oh yeah, also some details on the battery isolation and charging system. I'm going to have to do this as well.
                  The battery isolation is fairly simple. I have a starter battery and an accessory battery. In betwen there is a battery isolator with a fuse on each side.

                  Basically the isolator is just a 200amp relay. You turn it on and off just like a relay. Only it can't be connected direct to the fusion brain as its coil draws way too much power. So you wire a standard fusion brain relay, to in turn control the isolator.

                  A few of my fusion brain rules then decide when to isolate/connect the batteries.

                  That answer your question or do you want/need more details?
                  My Nearly Complete Car:
                  http://www.mp3car.com/vbulletin/show...ed-car-pc.html

                  Micro Control Center... Control Your Car Across the Internet
                  http://www.mp3car.com/fusion-brain/1...-internet.html

                  Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
                  http://paulfurtado.com/

                  Comment


                  • #10
                    These pictures were taken by protodelorean at afkfest

                    This screen in the dash with my centrafuse control plugin showing:


                    Another shot of the trunk:


                    What's hiding behind all the prettiness:
                    My Nearly Complete Car:
                    http://www.mp3car.com/vbulletin/show...ed-car-pc.html

                    Micro Control Center... Control Your Car Across the Internet
                    http://www.mp3car.com/fusion-brain/1...-internet.html

                    Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
                    http://paulfurtado.com/

                    Comment


                    • #11
                      Originally posted by Bugbyte View Post
                      Oh yeah, also some details on the battery isolation and charging system. I'm going to have to do this as well.
                      Oops I gave details on the isolation system, but not the charging system. I have a power cord hanging out of a grommet under my trunk. It's secured though so it won't get pulled out.

                      This AC cord then goes to two places.
                      1. A PC power supply where i've tapped the 12 volt rail. The power supply has a big diode on it.
                      2. A battery charger hooked up to the accessory battery.

                      When the pc power supply turns on, it turns on a spdt relay with it. This takes all the computer components off of the battery and onto the power supply. The diode is actually on the side of the relay with the PC equipment so it doubles as preventing any power from the tank circuit or interference go backwards into the car's electrical system.

                      On the computer side of this I have a simple tank circuit, a 5 ah 12 volt lead acid battery which has been thoroughly destroyed by this usage. It still has power to last 10-15 minutes though so it can keep all the computer stuff running during an engine crank if both my batteries are real low or during the 1 second period where the relay switches power sources.

                      I bet you have some questions on this post haha. Feel free to ask.
                      My Nearly Complete Car:
                      http://www.mp3car.com/vbulletin/show...ed-car-pc.html

                      Micro Control Center... Control Your Car Across the Internet
                      http://www.mp3car.com/fusion-brain/1...-internet.html

                      Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
                      http://paulfurtado.com/

                      Comment


                      • #12
                        Outstanding work, Paul. Thanks for the details, I need to get more familiar with the Fusion Brain Linux plugin so I can control it from a web page.

                        I hope you aren't taking that car to college, or if you are, it's getting parked in a garage!
                        Originally posted by ghettocruzer
                        I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
                        Want to:
                        -Find out about the new iBug iPad install?
                        -Find out about carPC's in just 5 minutes? View the Car PC 101 video

                        Comment


                        • #13
                          I'm in awe... Outstanding work!!!

                          Comment


                          • #14
                            Originally posted by Bugbyte View Post
                            Outstanding work, Paul. Thanks for the details, I need to get more familiar with the Fusion Brain Linux plugin so I can control it from a web page.
                            If you want, I'll make a small php file with functions like relay(relayID,state) or getAnalog(sensorID) so you can directly interface with the brain.

                            the code on your part would then be as simple as:
                            PHP Code:
                            <?php
                                  
                            include 'fusionFunctions.php'//gives access to fusion brain daemon
                                  
                            relay(5,1); //turns on relay 5
                                  
                            relay(7,0); //turns off relay 7
                                  
                            print getAnalog(2); //prints the analog value of sensor 2
                            ?>

                            Originally posted by Bugbyte View Post
                            I hope you aren't taking that car to college, or if you are, it's getting parked in a garage!
                            Unfortunately I'm going to have to leave that baby at home for freshman year. After that, Northeastern does have parking garages for upperclassmen.

                            Since I'm going to miss working on the car, I can still do some work from afar. Now that I won that new touch screen, I'm thinking about doing some work with that igepv2 board that you and tripzero have been talking about. Basically I want to build a full computer in under 15 watts that fits in a 1.5 inch deep double din package. Throw some ubuntu/linuxice on there, and write some guides for the community. Maybe even make a few extra bucks in college by pre-configuring this package for people. I'll probably start this in a month or two and then I don't see it taking more than a month to get it functional.

                            Originally posted by Crinos View Post
                            I'm in awe... Outstanding work!!!
                            Thanks! You've been encouraging me from the start. I'm happy you got to see where this project has led.
                            My Nearly Complete Car:
                            http://www.mp3car.com/vbulletin/show...ed-car-pc.html

                            Micro Control Center... Control Your Car Across the Internet
                            http://www.mp3car.com/fusion-brain/1...-internet.html

                            Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
                            http://paulfurtado.com/

                            Comment


                            • #15
                              Figured some people may be interested in my old worklog.

                              Warning: It's messy, unorganized, and could use more pictures. Most of the stuff listed there is from my first/second install. This thread contains my third install. A lot of the work there is unrelated, but then too, a lot of it is related.

                              http://www.mp3car.com/vbulletin/work...-work-log.html
                              My Nearly Complete Car:
                              http://www.mp3car.com/vbulletin/show...ed-car-pc.html

                              Micro Control Center... Control Your Car Across the Internet
                              http://www.mp3car.com/fusion-brain/1...-internet.html

                              Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
                              http://paulfurtado.com/

                              Comment

                              Working...
                              X