Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB

Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB (https://www.ft86club.com/forums/index.php)
-   Tracking / Autocross / HPDE / Drifting (https://www.ft86club.com/forums/forumdisplay.php?f=39)
-   -   Pedal Dance Device (https://www.ft86club.com/forums/showthread.php?t=55373)

robot 01-10-2014 01:07 AM

Pedal Dance Device
 
I could build this and I might. It's just not something I'd sell because of the liability...

-Wire microcontroller to the brake pedal switch, ignition, and the ebrake switch (brake switches would use 12v relays of course).
-Wire it to an on-off switch for convenience.
-Program the microcontroller to switch the brake and ebrake switches on in the correct order a few seconds after ignition.
-?
-profit

You really don't need a microcontroller to do this btw. I'm sure their are cheaper ways, they are probably just beyond my expertise.

Arduino c/c++ that should be close:
Code:

const int ebrakepin = 8;
const int brakepin = 9;

void setup() {
  pinMode(ebrakepin, OUTPUT);
  pinMode(brakepin, OUTPUT);
  delay(5000);
  digitalWrite(ebrakepin, LOW);
  digitalWrite(brakepin, LOW);
}

void loop(){
  digitalWrite(ebrakepin, HIGH);
  delay(10);
  digitalWrite(ebrakepin, LOW);
  delay(10);
  digitalWrite(ebrakepin, HIGH);
  delay(10);
  digitalWrite(ebrakepin, LOW);
  delay(10);
  digitalWrite(ebrakepin, HIGH);
 
  delay(100);
 
  digitalWrite(brakepin, HIGH);
  delay(10);
  digitalWrite(brakepin, LOW);
  delay(10);
  digitalWrite(brakepin, HIGH);
  delay(10);
  digitalWrite(brakepin, LOW);
  delay(10);
  digitalWrite(brakepin, HIGH);
 
  delay(100);
 
  digitalWrite(ebrakepin, LOW);
  delay(10);
  digitalWrite(ebrakepin, HIGH);
  delay(10);
  digitalWrite(ebrakepin, LOW);
  delay(10);
  digitalWrite(ebrakepin, HIGH);
  delay(10);
  digitalWrite(ebrakepin, LOW);
  delay(10);
  digitalWrite(ebrakepin, HIGH);
 
  delay(100);
 
  digitalWrite(brakepin, LOW);
  delay(10);
  digitalWrite(brakepin, HIGH);
  delay(10);
  digitalWrite(brakepin, LOW);
  delay(10);
  digitalWrite(brakepin, HIGH);
 
  delay(100);
  digitalWrite(ebrakepin,LOW);
  digitalWrite(brakepin,LOW);
}


mla163 01-10-2014 08:53 AM

Doesn't the car have to be warm? That may add an element of difficulty

robot 01-10-2014 09:14 AM

Quote:

Originally Posted by mla163 (Post 1443369)
Doesn't the car have to be warm? That may add an element of difficulty

True. I would imagine id just do that part myself.

7thgear 01-10-2014 09:26 AM

http://assets0.ordienetworks.com/ima...mwa1o1_400.gif


All times are GMT -4. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.


Garage vBulletin Plugins by Drive Thru Online, Inc.