Announcement

Collapse
No announcement yet.

Speed dependant volume

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

  • Speed dependant volume

    Hey Folks!
    Here's a nice little idea for ME,
    How about getting speed information from the GPS and using it to increase/decrease the volume.
    You know like in a decent car stereo there is a feed to the speedo.
    It means that as the road noise goes up the volume increases to compensate.
    Wouldn't have a clue how to code it, I am just an ideas hamster, but if anyone else knows how to I think it would be great.
    Of all the things I've ever lost my sanity was the hardest to deal with

  • #2
    why use the gps for the speed?
    find out where your speed sensor is piggy back the signal. You programmers can work out the rest of it.
    Originally posted by menudude
    thank you all for your help minus the useless post by sjlucky...

    Comment


    • #3
      Originally posted by SjLucky
      why use the gps for the speed?
      find out where your speed sensor is piggy back the signal.
      Why use your speed sensor to get an idea of the volume you need to compensate for when you can use a microphone? If you put a mic somewhere that would be more affected by wind and road noise than your music, all you'd have to do is code a simple plugin that increases the output, say, .5 dB for every additional 1dB the mic picks up. I think there are even how-to's on the web for noise-cancellation circuits.

      Comment


      • #4
        what keeps the circuit from pickin up your music as the noise? if that was the case then you would blow everyone of your speakers and might cause some earing damaged if it isnt shut off quickly.

        For me it would just be hella simple to piggy back the speed sensor but thats my deal
        Originally posted by menudude
        thank you all for your help minus the useless post by sjlucky...

        Comment


        • #5
          Originally posted by SjLucky
          what keeps the circuit from pickin up your music as the noise?
          I'll bet a sensor outside the cab would pick up way more wind and road noise than speaker sound, above like 40mph anyway.

          You could probably also devise a circuit to put a microphone in the cabin and subtract the signal sent to the speakers so you're only picking up road noise. Similar to noise-cancelling headphones, but cancelling the speaker sound from the mic signal.

          But you're right, the simplest way is to relate volume to speed.

          Comment


          • #6
            I know... Im allways right... just no one listens...

            but the bottom line is they do the same thing its just a question of how you want to do it.
            Originally posted by menudude
            thank you all for your help minus the useless post by sjlucky...

            Comment


            • #7
              I like to adjust mine manually, can't stand anything to mess with my volume..ugh
              [H]4 Life
              My next generation Front End is right on schedule.
              It will be done sometime in the next generation.
              I'm a lesbian too.
              I am for hire!

              Comment


              • #8
                Originally posted by Linus
                I'll bet a sensor outside the cab would pick up way more wind and road noise than speaker sound, above like 40mph anyway.
                You'd need a very low sensitivity (and presumably expensive) microphone to work outside your car. Try taking a normal mic and blowing close up to it, you'll max it out and it'll clip instantly. The wind outside your car will be far greater. You'd probably have to put a 12" sub on your roof and hook that up as the mic

                GingerPrince

                Car changed for TVR Griffith 500, so computer de-installed. Using a Dension 100ix w/60Gb HD unit in the interim.

                Carputer Install - http://www.stuffandting.com/carputer/
                CarBox Software -- http://www.stuffandting.com/carbox/

                Comment


                • #9
                  Originally posted by GingerPrince
                  You'd probably have to put a 12" sub on your roof and hook that up as the mic
                  Don't give them any ideas
                  [H]4 Life
                  My next generation Front End is right on schedule.
                  It will be done sometime in the next generation.
                  I'm a lesbian too.
                  I am for hire!

                  Comment


                  • #10
                    I thought my idea was good for a number of reasons...
                    people already have GPS's in their car, and it would be an additional function that would be
                    1. Cost free,
                    2.Flash,
                    3. Simple,
                    4. Require no additional hardware.
                    Is it possible.
                    Could it be configured so you adjust how much it increments/decrements volume?
                    Thanks,
                    Gavin
                    Of all the things I've ever lost my sanity was the hardest to deal with

                    Comment


                    • #11
                      yes it can be done gavinzbits
                      Originally posted by menudude
                      thank you all for your help minus the useless post by sjlucky...

                      Comment


                      • #12
                        )))))))))))) How???? Is anyone willing to do it?
                        Of all the things I've ever lost my sanity was the hardest to deal with

                        Comment


                        • #13
                          Originally posted by gavinzbitz
                          )))))))))))) How???? Is anyone willing to do it?
                          It would be fairly straightforward to do. You'd just need some code in your app (or even run it as a separate program that adjusts master volume) that reads NMEA strings from your serial port to get your speed, and calculate volume based on that.

                          Say you wanted volume to vary linearly from 75% when stationary to 100% when at 60mph + you could implement this pseudocode: -

                          GET speed FROM NMEA DEVICE
                          newvolume = 75 + (25/60) * speed
                          if newvolume > 100 then
                          SET MASTERVOLUME = 100
                          else
                          SET MASTERVOLUME = newvolume
                          end if

                          Do this ever second or whatever and you have your solution. Main problem would be that you wouldn't (I don't think) be able to do this at the same time as running GPS software, they wouldn't both be able to view the serial port.

                          Now maybe you could program this applet to forward all the NMEA strings to a virtual serial port or something and have your GPS software map to this, but this is beyond my skills (not being a programmer) so not sure if you could or not.

                          GingerPrince

                          Car changed for TVR Griffith 500, so computer de-installed. Using a Dension 100ix w/60Gb HD unit in the interim.

                          Carputer Install - http://www.stuffandting.com/carputer/
                          CarBox Software -- http://www.stuffandting.com/carbox/

                          Comment


                          • #14
                            Why stop there? Let ME control the speed of your car too.

                            cruisespeed = 75
                            GET currentspeed FROM NMEA DEVICE
                            if currentspeed < cruisespeed then
                            SET ENGINERPM += 100
                            end if
                            if currentspeed > cruisespeed then
                            SET ENGINERPM -= 100
                            end if
                            if currentspeed > SPEEDLIMIT && POLICE then
                            SET ENGINERPM -= 10000000
                            APPLY BRAKES
                            end if
                            -TJ
                            Smart Playlists Plugin for RoadRunner
                            CarPC - 05 Acura TL Navi (pics soon)
                            Retired CarPC - 03 Infiniti Qx4

                            Comment


                            • #15
                              But the speed of the car dont have much to do with the car noise. How about the engine speed? surrounding traffics? kids at the back? So you cant just adjust the volume based on car speed.

                              what keeps the circuit from pickin up your music as the noise? if that was the case then you would blow everyone of your speakers and might cause some earing damaged if it isnt shut off quickly.

                              You knows whats being played on your PC so from there it just a matter of rejecting those signals. You need to sample the noise and the music inside the car using a mic. You know the sound comming out of the PC. Do some DSP trick on both signals...and there you have it a filtered out noise Just adjust the volume based on the level of this noise.

                              So simple...LOL maybe not in reality.

                              Comment

                              Working...
                              X