Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 05-12-2008, 06:12 PM   #1
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
My Own front end - from the ground up

Hey all,

Jus thought i'd post a few pics of my front end. I've tried a few of the commercial packages out there, but personally found that most had far more functions than i needed and lacked the more specific functions that suited my own car modifications.

Anyhow, this is my own attempt at a frontend, its far from finished and I realise that software this specific is near useless to anyone apart from myself, so i'm posting these mainly because i always found it very informative looking at other peoples front ends when I was developing my own.

The functions and ideas behind it are pretty simple:

1. Media Player based on the Windows Media Player API
2. Audio and Video/DVD support with full access to WMP media library/playlists
3. Graphical Front end for custom A/C, Heating, Lights controller (see pics)
4. Graphical Front end for interior lighting, Neons and 'Audio Level' LED's
5. Graphical front end for custom power controller (ICE power isolation, lighting/amplifier power isolation etc)

Thats about it. Personally i dont need any other functions, short but sweet! Here's the pics:

Default loaded screen, gives access to heating/AC control, fog lights, hazard lights, heated screen etc:


Same screen with a few buttons pressed:


Basic media player screen, absolute minimum of buttons/clutter. Track info in the black window has just been added today, so is still looking rough. The same black window shows video when a video file is playing. Can also show visualisation, although this is turned off at the mo as almost all of the WMP visualisations look crap:


EQ screen, pretty self explanitory, wont be adding any frequency references as I never use them, dont know anyone who does infact, lol:


Basic 'List selection screen'. Figured I rarely if ever have video and audio files on the same playlist so i split them completely. We've got Auto Lists, custom compilations (my own playlists) and access to the media library:


Auto lists, give very quick access to recently played tracks, most popular tracks, and a simple way to create random playlists. - Only finished this bit recently so may still change some button functions:


This is the basic media library screen , allows you to enter criteria for the artist, album or genre:


Graphical keyboard for entering search criteria, searching is not word for word, so you dont have to waste time typing 'Ludwig van Beethoven' when 'wig' will do (not that you ever would of course)


Possible results for an Artist, Album or Genre Search are shown on the screen below, you can select as many or as few of the results as you like. You're then taken back to the main library screen as shown above with all the corresponding tracks. Searches are also cumulative, so from the library screen you could go back to lets say album and only select the album/s that you want, same goes for genre and artist. Final step is to play or enqueue all (or a selection of) the tracks:


Last pic shows the internal 'ICE' lighting controller. Controls for Neons and LED's are shown as well as spectrum analysis results (operation of internal LED's is based on spectrum analysis of currently playing audio)


I guess thats about is. The power controller is the next and final element that needs coding. As mentionned at the top, it might seem pretty sparse on features, but it does everything I need as simply as possible.

Comments welcome.

Jonny

P.s. Considered posting this in the front end section, but it all seemed a bit too professional in there, lol. Mods feel free to move it if you like.
Greeno2k8 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 05-12-2008, 11:57 PM   #2
Low Bitrate
 
Join Date: Dec 2006
Posts: 97
soloxp is an unknown quantity at this point
That is nice. How do I go about hooking this up to controll my AC in the car.
soloxp is offline   Reply With Quote
Old 05-13-2008, 01:00 PM   #3
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
thanks,

I'm using a USB input/output module connected to my car PC, it gives me a whole load of logic level digital I/O's. The outputs are connected through relay buffers to a load of relays that replicate the functions of the original dials/buttons in the car.

The digital inputs on the usb module are used to read back the status of what would have been the indicator lights on the various buttons, i.e. the system has feedback and knows whether the AC is actually on or the fog lights are on etc. So its not just blindly sending out commands.

The relay board fits quite nicely in the centre console behind where the dials/buttons used to be, effectively leaving a centre console with just a flip out touch screen, no buttons/dials at all.

I did have a circuit layout drawing showing how it worked, but lost it a while ago. Luckily not until after i'd built it, lol.

J
Greeno2k8 is offline   Reply With Quote
Old 05-14-2008, 02:10 AM   #4
Newbie
 
Join Date: Sep 2006
Location: SK
Posts: 28
DroStar is an unknown quantity at this point
Very very nice! What did you program it in and where did you find all the graphics?
DroStar is offline   Reply With Quote
Old 05-14-2008, 02:56 AM   #5
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
Thanks,

It's written in visual basic. All the graphics were drawn in AutoCAD (I use it a lot so find it much quicker than photoshop for outline drawing.)

Outlines were then copied over to photoshop and coloured.

Jonny
Greeno2k8 is offline   Reply With Quote
Old 05-14-2008, 05:30 PM   #6
Constant Bitrate
 
Borte's Avatar
 
Join Date: Jan 2006
Location: Norway
Posts: 114
Borte is on a distinguished road
This looks really nice! Are you planning on releasing the source on this?
__________________
Failure is not an option...
Borte is offline   Reply With Quote
Old 05-14-2008, 08:16 PM   #7
Newbie
 
Join Date: Sep 2006
Location: SK
Posts: 28
DroStar is an unknown quantity at this point
I'm jealous of your graphics skills. I want to someday do the same thing you did - make my own custom front end because my needs are specific. There are some good ideas there that I may have to borrow.
DroStar is offline   Reply With Quote
Old 05-15-2008, 12:14 AM   #8
FLAC
 
WuNgUn's Avatar
 
Join Date: Sep 2007
Posts: 1,202
WuNgUn is on a distinguished road
I want your HVAC setup!!!
Just the three dials...
Very nice work there

I just HAVE to go HVAC with my Centrafuse, because I have big plans for my HVAC console space....
Are you for hire? Want to make some $$?
Have experience with Phidgets or Fusionbrain?

I need servo control for the fan and vent adjuster, and PWM or motor control for the blower...
I plan on leaving the A/C, damper, defroster stock...

Last edited by WuNgUn; 05-15-2008 at 12:19 AM.
WuNgUn is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 05-15-2008, 12:35 PM   #9
Low Bitrate
 
vtecfelon23's Avatar
 
Join Date: Dec 2007
Location: Baltimore
Posts: 82
vtecfelon23 is an unknown quantity at this point
thats magnificent. do you have a work log for your car?
vtecfelon23 is offline   Reply With Quote
Old 05-15-2008, 04:31 PM   #10
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
Dro,

I wouldnt bee to concerned about the graphics, I'd never used photoshop before I started this, and the first screen (HVAC controls) was done within a day.

I started off by drawing the outline of the screen i wanted in autocad and then scanned in pictures of dials/buttons/the car from the owners manual and traced over them.




Then I copied and pasted them into photoshop and filled in the black lines with colour, then applied 'layer styles' to the shape to make them look raised/dropped/highlighted/shadowed etc:






Thats it, I'd never used skins before and didnt really understand how they worked so i just used image maps instead which I'd used before a few years ago, i'm not sure how others write their front ends at all tbh but for me, this method included a lot of elements that i had experience with.


I would certainly be happy to post sections of source code from the program. To be honest, i'm a novice programmer, my knowledge of visual basic is pretty 'basic' (sorry).
So to anyone who knows about programming, my code will almost certainly look basically overcomplicated and inefficient. However, It took a long time to get some of the media player functions working properly (media library access, searches, playlist building etc) and I'd be happy to share the code/methods.

WuNgUn, sorry i've never heard of Phidgets or Fusionbrain. I have a strong background in electronics so I took my HVAC controller 'to bits' and not necessarily figured out how it worked but figured out what signals it sent to the car for example when i pressed the AC button and what signals the car sent back.

Thankfully I drive a Korean car (bet ya dont hear that very often!) and the HVAC controller is very simple:

The buttons are all simple 12v or 5v switches with 12v return signals to indicate if for example the AC is on by lighting up the button, the temperature setting is just a potentiometer. The direction and power dials are just rotary switches.

So essentially the whole controller could be re-built with a load of relays that would respond to digital inputs from my PC via a USB IO board:

http://www.pc-control.co.uk/control_boards.htm
(I have no personal or financial connection to this site or its owners)

The boards come with dll files with a simple 'send out', 'receive in' access (no need to know anything about USB) that I can easily program with in visual basic.

So I end up with an electronic equivelant to the origianal controller.

I'm not sure how it would work with other cars. By all means, the most complicated of HVAC controllers could have their normal switches/buttons replaced by electronic, computer controlled switches very easily. However, reading back the status of the system could be more complicated. For example, my car won't allow the AC to be switched on unless the fan power is on. So If it wasn't able to read in the HVAC status from the car then my software would send a command to turn the AC on and would have no idea whether it actually was. The website listed above also sells boards with analog capabilities so in theory, i could install temperature sensors in my car and program my own climate control.

HVAC systems with an LCD display could prove very difficult to work with. Basically the simpler your HVAC system is, the better. I'd be happy to offer advice if you need it.

vtecfelon23, a lot has been done to the car and there's still a lot left to do. I'll post more info in the future.

Jonny
Greeno2k8 is offline   Reply With Quote
Old 05-16-2008, 07:16 AM   #11
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
Hey,

Just wanna point out that i wrote a long response to all the comments with a few pictures last night, but the forum told me that it wouldnt appear until a moderator had approved it. Can any mods out there help me out with this?

thanks
Greeno2k8 is offline   Reply With Quote
Old 05-16-2008, 10:09 AM   #12
It ain't easy being a green moderator
 
meddler's Avatar
 
Join Date: Aug 2002
Location: Steps out the front of Henson's workshop or Sydney
Posts: 2,558
meddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud ofmeddler has much to be proud of
post approved.
__________________
Never let the truth get in the way of a good story

Chat on the mp3car channel on IRC

Server: efnet Channel: #mp3car

No irc client installed? Go to http://chat.efnet.org/. In the channel drop down box select "other" and type in #mp3car.
meddler is offline   Reply With Quote
Old 07-28-2008, 05:21 PM   #13
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
Hi,

Just thought a recent update to my front-end was worth a post, It's a nitrous controller that takes care of opening the NOS bottle, reading the NOS pressure, energising the solenoid relay and energising the purge relay. The software can't fire the solenoids directly for the sake of safety, you still have to have your foot to the floor, i.e. W.O.T.

It's a pretty simple system at the moment, although i guess it could be implemented to a gradual NOS controller in the future:





Jonny
Greeno2k8 is offline   Reply With Quote
Old 07-28-2008, 06:02 PM   #14
Low Bitrate
 
Join Date: Jan 2008
Location: MD, USA
Posts: 84
Creative0Mind is an unknown quantity at this point
Very nice.
__________________
CarPC: Mini-MAC Coming Soon!

/////AlpineTalk
For the Alpine Enthusiasts in you!

FS:: Lexus ES350: Complete Rear Seats
Creative0Mind is offline   Reply With Quote
Old 07-29-2008, 03:00 PM   #15
Newbie
 
Join Date: May 2008
Posts: 51
Greeno2k8 is an unknown quantity at this point
Almost forgot,

I also finished the power controller a few weeks ago:



It can read the battery voltage and the current being used by all the non-standard equipment in the car. If the battery voltage drops too low for too long or the current being used is too high for the wiring/main fuse then it will:
  1. Lower the music volume
  2. Turn off the interior neons/LED's
  3. turn off the monitors (except the main touchscreen)
  4. turn off the sub amps
  5. etc
  6. etc
It warns you regularly that the voltage is low or current is too high and that it's taking measures to resolve it. It's last ditch action is to de-energise the main contactor (cuts power to all additional equipment in the car except the carPC and touchscreen), then it shuts itself down (after activating a little flashing LED to tell you that its shut down because of a power shortage).

Then its up to you to push start the car!

j

p.s. still havent decided if the gauge colours are too bright, might darken them a little

Last edited by Greeno2k8; 07-29-2008 at 03:09 PM.
Greeno2k8 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Good read on ground loops coffeejolts Car Audio 6 04-28-2008 02:30 PM
100% Plugin based Front End custardbomb Software & Software Development 19 10-07-2005 01:17 AM
This is an awesome front end, and here is why: WhiteRabbit NeoCar Media Center 47 08-27-2005 10:43 PM
I tried everything, can't get rid of this ground loop intense General Hardware Discussion 3 07-10-2005 09:58 AM
Front end needed for semi commercial venture Orange Bus Software & Software Development 10 04-28-2005 02:59 AM



All times are GMT -5. The time now is 09:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics