Author Topic: Murcielago Build - CdRsKuLL  (Read 188809 times)

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #195 on: April 01, 2014, 10:32:15 PM »
The one good thing I've found with lets say 'delaying my build' is that things are now available that didn't a couple of years ago! I've ordered some little relay boards for my arduino. These will control the mirror folding and rear spoiler without much fuss. .. will update when they arrive and I've wired them up. Tomorrow I'll finish off the rear end and make a start on my mirrors again.

Steve

peggyontherun

  • Extreme Owner
  • Hero Member
  • *
  • Posts: 718
  • Karma: +0/-0
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #196 on: April 02, 2014, 10:57:56 AM »
No don't get to use the lambo much its declared off the road as road tax over here is very high so I will just tax her for the summer months when the nice weather comes in. Your making great progress Steve keep them pictures coming
I Live my life a quater miles at a time.Nothing else matters Not the Morgage not the store not my team and all there bull****.For those ten seconds or less i'm free - Don Fast & Furious

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #197 on: April 02, 2014, 06:56:34 PM »
well they came and are very loud :-)

My car is now very horny ....



one step closer !

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #198 on: April 03, 2014, 08:19:28 PM »
half way through tonight.. Got a template cut out of a bit of corex which I'm going to draw up in inventor and and get my cnc to cut out when I get it up and running. I'll also add a lambo motif cnc'd out.



Should look a lot better out of the 3mm abs black stuff I've got.

I also coded up the software that will read the pulse from the speedo and control the batwings and spoiler.. untested but this is it so far..

What the code does is...

Waiting 1 minute after starting and if the car is moving it does the following;

under 55mph puts the batwings up
over 65mph puts the batwings down
standing still for over 30 seconds puts the batwings down
under 30mph puts the spoiler down
over 50mph puts the spoiler up


Code: [Select]
int relayPin1 = 7;                 // Spoiler Up
int relayPin2 = 8;                 // Spoiler Down
int relayPin3 = 9;                 // Batwings

const int hardwareCounterPin = 5;  // input pin connect speedo pulse to this
const int ledPin = 13;
const int samplePeriod = 1000;     // the sample period in milliseconds
unsigned int count;
float mph;
unsigned int imph;
int roundedMph;
int previousMph;
unsigned long startTime;
unsigned long pastTime;

boolean batwing = false;
boolean spoiler = false;

void setup()
{
  Serial.begin(9600);              // So we can monitor whats going on via USB
  pinMode(ledPin,OUTPUT);          // Just for the LED
  // hardware counter setup (see ATmega data sheet for details)
  TCCR1A=0;                        // reset timer/counter control register A
 
  // Lets make sure that the spoiler and batwings are down
  pinMode(relayPin1, OUTPUT);      // sets the digital pin as output
  pinMode(relayPin2, OUTPUT);      // sets the digital pin as output
  pinMode(relayPin3, OUTPUT);      // sets the digital pin as output
  digitalWrite(relayPin3, LOW);    // disconnects negative from batwings to put them down
  spoilerdown();                   // sets spoiler down (just incase anything funny happend)
  startTime = millis();
  pastTime = millis();
}

void loop()
{
  digitalWrite(ledPin, HIGH);
  // start the pulse counting for 1 seconds
  bitSet(TCCR1B ,CS12); // Counter Clock source is external pin
  bitSet(TCCR1B ,CS11); // Clock on rising edge
  delay(samplePeriod);
  digitalWrite(ledPin, LOW);
  // stop the counting
  TCCR1B = 0;
  count = TCNT1;
  TCNT1 = 0; // reset the hardware counter

  mph = (count/11.1)*10;
  imph = (unsigned int) mph;
  int x = imph / 10;
  int y = imph % 10;
  // Round to whole mile per hour 
  if(y >= 5){
    roundedMph = x + 1;
  }else{
    roundedMph = x;
  }

  if(x == 0){roundedMph = 0;} //anything below 1 mph show 0 mph
  if((roundedMph - previousMph) < 30){previousMph = roundedMph;} // just a little saftey.

//batwings
if (millis() > (startTime + 60000)){ //wait for a minute before operating the batwings after startup
  if (previousMph > 0){
    if (previousMph < 55){ if (batwing == false){digitalWrite(relayPin3, HIGH); Serial.println("Batwing UP"); batwing = true;}} // open batwings if less than 55mph
    if (previousMph > 65){ if (batwing == true){digitalWrite(relayPin3, LOW); Serial.println("Batwing DOWN"); batwing = false;)) // close batwings if more then 65mph so they dont blow off
    pastTime = millis();
  } else {
    if (millis() > (pastTime + 30000)){digitalWrite(relayPin3, LOW); Serial.println("Batwing DOWN"); batwing = false;} // close bat wings if stopped more than 30 seconds
  }
}
//spoiler
  if (previousMph < 30){ //Spoiler down at 30mph
      if (spoiler == true){spoilerdown();}
  }
  if (previousMph > 50){ //Spoiler up at 50mph
      if (spoiler == false){spoilerup();}
  }
  previousMph = roundedMph;
  Serial.println(roundedMph);
}

void spoilerup()
{
//make sure the relays are off
  digitalWrite(relayPin1, LOW);
  digitalWrite(relayPin2, LOW);
  delay(200);
  digitalWrite(relayPin1, HIGH);
  delay(4000); // spolier should now be up after 4 seconds
  digitalWrite(relayPin1, LOW);
  Serial.println("Spoiler UP");
  spoiler = true;
}

void spoilerdown()
{
//make sure the relays are off
  digitalWrite(relayPin1, LOW);
  digitalWrite(relayPin2, LOW);
  delay(200);
  digitalWrite(relayPin2, HIGH);
  delay(4500); // spolier should now be down after 4 seconds
  digitalWrite(relayPin2, LOW);
  Serial.println("Spoiler DOWN");
  spoiler = false;
}

Will load it up later and give it a test :-)

I've also finished off my rear grille by fitting some led bulbs and securing my rear camera :-)

still lots to do!

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #199 on: April 03, 2014, 10:26:55 PM »
hmm decisions..

Think I'm looking at the original MR2 interior light as it's the thinnest of the ones I have. I will still need to shave some plastic off the back but it will fit. The sun visors will need setting back a little in the recess.



Just tried the roof interior and it fits :-) just need to work out the best way to fit it. I would prefer to make it removal.. I might hide some fixing behing the sun visors at the front securing into the crossbar.. anyone any ideas? it's either that or just stikaflex it in place.

done for the night.. feet up time.

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #200 on: April 05, 2014, 04:49:39 PM »
Well...

Just want to say a big

THANK YOU

to ferrari360jd as that's who's prep and painting my car as well as other bits and bobs.

I also managed to see his pride and joy and I've got to say ir's very.. very nice. The job he's done is brilliant, hat's off to you sir!!

So.. my car's gone on a little jolly and will hopefully returning in a shiny new coat. 

He's got a few jobs to do before mine so don't expect many updated until then.

Thanks

Steve

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #201 on: April 09, 2014, 07:59:23 PM »
Well, since my car's gone awol I thought rather than just sitting twiddling my thumbs I'd crack on with some other bits. :-)

I've now mounted my sun visors and cut out and fitted the interior light, just need to secure it, pic's to follow. I've also made a start on my fake engine, got some paint today so thought I would give it a go. I'm going for a bit of a weathered look on the engine as the couple I've seen look false purely because they are too clean!.. lol

again, some pic's to follow and a trip to the scrap yard required for some engine bits maybe.

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #202 on: April 09, 2014, 10:18:28 PM »
well, this is what I've done so far :-) very happy with the weathered look.. I have however misplaced one of the grey / black things  ::)

« Last Edit: April 09, 2014, 10:33:42 PM by CdRsKuLL »

ferrari360jd

  • Extreme Owner
  • Hero Member
  • *
  • Posts: 1762
  • Karma: +0/-0
    • View Profile
Re: Murcielago Build - CdRsKuLL
« Reply #203 on: April 10, 2014, 12:35:39 PM »
That's a great start Steve looking gud, jd

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #204 on: April 17, 2014, 11:48:57 PM »
Thanks fella appreciate it. I've not had a GOOD look for it yet as it will defo be somewhere in the house!  I've not done that much the last few days, been busy with the kids. I have however, bolted the three big bit's together to make a solid unit. I'm waiting for my cnc bits which should be tomorrow I hope so I can cut out the lettering / engine strips so I can then paint them.

I think I'll get some box section and feed it down the air intake tubes to secure it all. Will have to see.

cheers

Steve

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #205 on: April 21, 2014, 09:15:29 PM »
that's really really nice Drew :-) Hope mine turns out the same. Should get my cnc bits tomorrow I hope so I can get cracking. First job is to build that back up and get it working.

I've not done much this last week (not good).. I'm still in two minds if to cut up my Lambo dash and mould it into the current one. After seeing JD's dash it certainly looks impressive.

I've got some engine management lights on which from reading points to the alternator, this could be simply a loose connection but will need it sorting out.

Going to be sending the centre piece to be carbon dipped next week I think, will post some pic's when I get it back.

Steve

Drew355

  • Administrator
  • Hero Member
  • *****
  • Posts: 942
  • Karma: +0/-0
    • View Profile
Re: Murcielago Build - CdRsKuLL
« Reply #206 on: April 30, 2014, 04:13:22 PM »
Thanks mate, i was pretty pleased with the results.
If you need to try any bits off my turbo'd one to eliminate problems, just let me know. I think I need to restart my build thread to put my new pics in and stop hijacking yours sorry!

I will PM you now re the dash.

aak1203

  • Extreme Owner
  • Full Member
  • *
  • Posts: 132
  • Karma: +0/-0
    • View Profile
Re: Murcielago Build - CdRsKuLL
« Reply #207 on: April 30, 2014, 08:17:46 PM »
what colour are you going for?

CdRsKuLL

  • Fat dude
  • Administrator
  • Hero Member
  • *****
  • Posts: 1556
  • Karma: +0/-0
    • MSN Messenger - cdrskull@msn.com
    • View Profile
    • Email
Re: Murcielago Build - CdRsKuLL
« Reply #208 on: May 01, 2014, 08:42:37 PM »
hey fella.. looking at white at the moment :-)

ferrari360jd

  • Extreme Owner
  • Hero Member
  • *
  • Posts: 1762
  • Karma: +0/-0
    • View Profile
Re: Murcielago Build - CdRsKuLL
« Reply #209 on: May 02, 2014, 04:38:30 PM »
Hey Steve I thought you wanted it pink with yellow dots ,I've already got the paint lol

 

Advert