Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!

Smoke n' Mirrors

Catapulting the DeLorean from '88 to the future... in style.

AdvancedWork in progress2,201
Smoke n' Mirrors

Things used in this project

Hardware components

chipKIT Uno32 Microcontroller
×1
LED strip
×1
3D printed Delorean center console
×1
CHAR-BROIL UNIVERSAL FIT ELECTRONIC IGNITION
×2
Dorman Conduct-Tite! - Toggle Switch
×1
Isopropyl Alcohol (99%) 16 FL oz.
×5
Relay (generic)
×3
Wires
×1
Resistors
×1
H Bridge
×1
Honda Civic Windshield Washer Pump/Motor
×1
Windshield Washer Spray Nozzel
×2

Story

Read more

Code

FlamingDeLorean.ino

C/C++
Codes for the alcohol sprayer relay, alcohol igniter relay, and interior light effects!
int button =11;
int val = 0;
//GROUND RIGHT  10
//BLUE  RIGHT 9
// RED RIGHT 2

//GROUND LEFT 3
//BLUE LEFT 5
//RED LEFT 4 


//BUTTON IN 11
void setup() {
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, INPUT);
  pinMode(8,OUTPUT);
  pinMode(7,OUTPUT);
  pinMode(6,OUTPUT);

}

// the loop function runs over and over again forever
void loop() {
	//Write pins high for LED common Cathode
digitalWrite(3, HIGH);
digitalWrite(10, HIGH);
//Get button position
  val = digitalRead(11);
  //write anode low for blue LEDS
digitalWrite(4, LOW);
digitalWrite(5, LOW);  
 //If button is pressed
    if (val  == HIGH) {
    	//write anode high to turn off blue
   digitalWrite(9, HIGH);
   digitalWrite(5, HIGH);  	
   //write red anode low to turn on then Flash LEDS
  digitalWrite(2, LOW);
  digitalWrite(4, LOW);  
  //trigger flame effects
  digitalWrite(8, HIGH); 
  digitalWrite(7, HIGH); 
  digitalWrite(6, HIGH); 
  //digitalWrite(5, LOW);// turn the LED on (HIGH is the voltage level)
  delay(50);  
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(4, HIGH);    // turn the LED off by making the voltage LOW
  delay(50);
    
    } else {
    	//turn off all effects
digitalWrite(8, LOW);
digitalWrite(7, LOW);
digitalWrite(6, LOW); 
digitalWrite(9, LOW);
digitalWrite(4, LOW);
    }
    }

Credits

Cody Van Cleve
1 project • 1 follower
Contact
Frank Ross
2 projects • 3 followers
Student at Arizona State University Polytechnic School
Contact
Erik Person
1 project • 1 follower
Contact
caleb carlson
1 project • 1 follower
Contact
Josh Kosar
2 projects • 3 followers
Contact
Carly Thalman
1 project • 1 follower
Contact
Deep Patel
1 project • 3 followers
i dont know what to do
Contact
Patrick Phillips
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.