Page 17 of 17 FirstFirst ... 7891011121314151617
Results 161 to 170 of 170
Like Tree1Likes

Thread: VOLVO S80 CarPC Work in progress

  1. #161
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    Very nice job !!!

  2. #162
    Constant Bitrate
    Join Date
    Oct 2012
    Location
    Bulgaria
    Posts
    113
    Things are getting more compact:

    The Arduino Mini Pro on the left is just acting as a car alarm LED blinker + simulator of the LED of the PC depending on PC's Power buttons presses.
    The actual controller is the Arduino Mini Pro on the right. It's almost at the edge of it's potential - there are only 2 digital pins free. And 5 analog, but I don't need them. To be honest where possible I used analog pins instead of more convenient digital, so that I could have two digital pins free for future stuff.
    I mean that in cases where I just needed HIGH or LOW(on digital), but it's possible to use 0 or 255(on alanog) for pins that are just controlled but not used in IF-statesmans as parameters, I did that.
    Closer view:




    Still waiting for the relay modules ...
    Some bugs to be fixed. Mostly in the part of "the funny button".
    N-Joy


    p.s.
    Now I see how easy would it be to use the Sony Remote without even open it ... GND; 5V; AnalogInput ... and make an Arduino Pro Mini act as a HID - Keyboard.
    Sometimes we have to do things on hardest way, to fund out latter the easy way.
    Last edited by VolvoCarPC; 02-12-2014 at 04:17 PM.
    My worklog: VOLVO S80 CarPC

  3. #163
    Constant Bitrate
    Join Date
    Oct 2012
    Location
    Bulgaria
    Posts
    113
    The car is getting new engine ... so sad.
    However I've got some free time
    It happens that I bought a brand new Sony RM-X2S for ... just 2 GBP
    Adding the fact I'm on "Arduino stage" I decided to play with them both to see what could become. Well it seems it will work. I'm still testing this on the desk. N-Joy
    My worklog: VOLVO S80 CarPC

  4. #164
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    Always a very nice job !
    It's possible that you share the schematic and the arduino software ?

    Thanks

  5. #165
    Constant Bitrate
    Join Date
    Oct 2012
    Location
    Bulgaria
    Posts
    113
    It's a test sktech but... here you are:
    Code:
    #include <Wire.h> 
    #include <LiquidCrystal_I2C.h>
    
    //Write down the returned value for each button. My sketch will do the rest for you.
    int Center = 35;
    int TrapSmall = 81;
    int VolDown = 115;
    int VolUP = 158;
    int SeekDown = 209;
    int SeekUp = 269;
    int TrapBig = 333;
    int Mute = 427;
    int Source = 612;
    int OFF = 1018;
    
    LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display
    
    void setup()
    {
      lcd.init();                      // initialize the lcd 
     
      // Print a message to the LCD.
      lcd.backlight();
      lcd.setCursor(0, 0);
      lcd.print("Sony RM-X2S");
        
    }
    
    void loop()
    {
      float SonyRM = 0;
      float SonyRMShift = 0;
      SonyRM = ((float)analogRead(A0));
      SonyRMShift = ((float)analogRead(A1));
      
      
      if (SonyRM < (Center / 2)) {
        lcd.setCursor(0, 1);
        lcd.print("Nothing         ");
      }
      else if (SonyRM < (((TrapSmall - Center) / 2) + Center)) {
         lcd.setCursor(0, 1);
         lcd.print("Center      ");
        }
        else if (SonyRM < (((VolDown - TrapSmall) / 2) + TrapSmall)) {
           lcd.setCursor(0, 1);
           lcd.print("Small Trapezoid ");
          }
            else if (SonyRM < (((VolUP - VolDown) / 2) + VolDown)) {
              lcd.setCursor(0, 1);
               lcd.print("Vol Down        ");
              }
              else if (SonyRM < (((SeekDown - VolUP) / 2) + VolUP)) {
                lcd.setCursor(0, 1);
                lcd.print("Vol Up          ");
                }
                else if (SonyRM < (((SeekUp - SeekDown) / 2) + SeekDown)) {
                  lcd.setCursor(0, 1);
                  lcd.print("Seek Down       ");
                  if (SonyRMShift > 500) {
                      lcd.setCursor(0, 1);
                      lcd.print("Shift + SeekDown"); 
                   }
                 }
                 else if (SonyRM < (((TrapBig - SeekUp) / 2) + SeekUp)) {
                   lcd.setCursor(0, 1);
                   lcd.print("Seek Up         ");
                   if (SonyRMShift > 500) {
                      lcd.setCursor(0, 1);
                      lcd.print("Shift + Seek Up "); 
                   }
                 }
                 else if (SonyRM < (((Mute - TrapBig) / 2) + TrapBig)) {
                   lcd.setCursor(0, 1);
                   lcd.print("Big Trapezoid   ");
                  }
                  else if (SonyRM < (((Source - Mute) / 2) + Mute)) {
                    lcd.setCursor(0, 1);
                    lcd.print("Mute            ");
                  }
                  else if (SonyRM < (((OFF - Source) / 2) + Source)) {
                    lcd.setCursor(0, 1);
                    lcd.print("Source          ");
                  }
                  else if (SonyRM > (((OFF - Source) / 2) + Source)) {
                    lcd.setCursor(0, 1);
                    lcd.print("OFF             ");
                  }
     
    lcd.setCursor(12, 0);
    lcd.print(SonyRM);  
    delay(200);  
    }
    If you don't have LCD Display, you may use Serial.print instead. Mind that when powered by USB and by external PSU there WILL be difference in returned analogRead values for each button.
    For real working solution you'll need a software on the PC that will "listen". I plan writing a AutoHotKey code, but not this night. So keep reading this thread and one day there will be complete solution with schematics, codes, examples AND A LOT PICTURES Just in my style (not in the next 2-3 weeks, sorry)
    Last edited by VolvoCarPC; 04-13-2014 at 04:01 PM.
    My worklog: VOLVO S80 CarPC

  6. #166
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    You are the best . Thanks

  7. #167
    Constant Bitrate
    Join Date
    Oct 2012
    Location
    Bulgaria
    Posts
    113
    Another crazy Idea. I got after-market LPG system fitted. It has just 4-5 LED's inside showing me how many fuel I got. What's more, it will be nice to be able to able to monitor the voltages of both batteries + some other stuff related to the PC controller I'm building.
    This is just a test sketch, made to help me decide whether this functionality is worth or not. The sketch is not measuring anything - just simulating some basic stages.
    N-Joy
    My worklog: VOLVO S80 CarPC

  8. #168
    Variable Bitrate camo.b's Avatar
    Join Date
    Nov 2011
    Posts
    347
    I like it.id really love that if it was a pixleQ /white numbers and black background?? Screen you know the sunlight freindly ones...

  9. #169
    Raw Wave
    Join Date
    Nov 2009
    Posts
    2,119
    Another crazy idea eh? The same idea I try to get dual/multi-battery people to implement.
    Fine, so you think I'm crazy too!

    IMO it is well worthwhile having, but only if its implementation is practical. And due to normal console limitations etc, a voltage alarm is probably better but that's more complicated.
    In practice it's usually not practical - ie, considering cost & benefit and that despite the voltmeters, battery connection etc problems can still occur. (Hence why alarms with isolator lockouts etc.)
    In practice, monitoring of the aux batteries is done as part of routine inspection and maintenance so a faulty battery can be taken offline. And aux batteries should have battery protectors (low voltage cutouts) if flattening is an issue - especially for AGMs!


    But dual battery monitoring is a great idea. The same way a voltmeter tells you all for the main battery - at least FAR more than an ammeter does - why not for the aux battery(s) as well? Hence if you see a very flat aux battery, you may decide to inhibit charging or connection to the main or other batteries. And if its a collapsed AGM, you might want to remove it before it flames (if left charging, or connected to to other batteries).


    My only suggestion is to make it else include a digital display - 3 digits (for normal use & cruising). A difference of 0.2V - 0.1V can be significant but hard to determine from an analog display.
    Some implementations are digital only with the digits changing color if abnormal - eg, red of 14.5V and above, yellow if below say 13.5V when charging or maybe 12.5V when not charging & with no load, red if below say 12.5V or 11.5V or 10.5V when charging or maybe below 12.0V when not charging & with no load. Or they may stagger the analog and digital colors - eg digital green might be from 12.5V to 14.4V but analog yellow below say 14.0V to signify that the normal 14.2V - 14.4V alternator voltage is not being reached. And those colors may be RPM sensitive - ie, stay green even if 12.3V because of heavy loads and an idling engine (until a timer turns them red etc...).

    But that's the beauty of soft instrumentation - their set points can be reprogrammed as alternator or battery or load characteristics change, and adaptive set points are possible as other sensors are added like RPM, brakelight & headlight & wiper status, etc.

    If adding aux battery monitoring, consider adding temp sensing (especially if AGM) - ie, one on the battery and one for nearby ambient air. Temperature is still a simple alert to battery & electrical (safety) problems.
    Last edited by OldSpark; 04-19-2014 at 08:29 PM.

  10. #170
    Constant Bitrate
    Join Date
    Oct 2012
    Location
    Bulgaria
    Posts
    113
    to camo.b: It can be any colour. Everything you see has been drown pixel by pixel, by lines or with filled rectangles. No images used. Just green best suits to my existing interior back-light.
    The idea - the available fuel to be green, and the rest to be gray (sorry my camera is junk, the bottom gauge lines age light gray)

    To OldSpark: As I said everything is drawn on-the-fly. Further more, I've added the possibility to easy change the colour with which the graphic of battery is drawn. 3 colours prepared: red, green, yellow/orange. At first I was thinking to change the color of the text (13.8) but then it was hardly readable and well - the text is so small so I could miss it, while if the whole battery become red it will take my attention easily, isn't that the idea
    Ohh and the lightening between the batteries tells me whether the batteries are connected or separated (err the second is charging, sorry - my English...)

    So let's call this InfoPannel. It has 3 different functions: Battery monitor, Fuel level monitor, and CarPC monitor.

    I said a couple of words for the first two, so it's left the CarPC monitor.
    Well, I draw a monitor and PC icons. Again colours are changeable. This is supposed to tell me what my controller think it's happening with this two. In the middle you see some text "Auto", "All ON", "OFF". This is the controllers state. It left some space on the left, so i can use if for something else. Probably there I'll display the timers till ShutDown, postpone delay and such. I use a lot timers in my sketch.
    My worklog: VOLVO S80 CarPC

Similar Threads

  1. 2002 Volvo S60 Work Log
    By PaulF in forum Worklogs
    Replies: 36
    Last Post: 07-30-2010, 02:58 PM
  2. My opel astra carpc (work in progress)
    By Harderstylez in forum Show off your project
    Replies: 3
    Last Post: 06-14-2010, 03:23 PM
  3. Replies: 26
    Last Post: 08-02-2008, 08:31 PM
  4. 1995 Volvo T-5R carpc install progress
    By z8man in forum Worklogs
    Replies: 2
    Last Post: 09-27-2006, 05:41 PM
  5. A work in Progress
    By xtraxmechx in forum Car Audio
    Replies: 3
    Last Post: 02-08-2006, 10:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •