DIY Kick Open Tail-Gate On Maruti 800 Using Arduino


Thread Starter #1
Joined
Mar 28, 2010
Messages
85
Likes
140
Location
KOLLAM
After long time i logged in to TAI. This is my new DIY
you can find more details in the video link.

t r.jpg

Circuit Diagram
xfdcfd.jpg



Arduino Code.

Code:
const int trigPin = 11;
const int echoPin = 10;
const int relayPin = 13;


long duration;
int distance;
long distancemm;

void setup() {
// put your setup code here, to run once:
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(relayPin, OUTPUT);

}


void loop() {

digitalWrite(trigPin, LOW);
delayMicroseconds(0);

digitalWrite(trigPin, HIGH);
delayMicroseconds(0);
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);

distance= duration*0.034/2;
distancemm = distance*10+30;

//Control
if (distancemm <= 230)
{
for (int i=0; i <= 180; i++){
digitalWrite(relayPin, HIGH);
delay(10);
}

}
else if (distancemm >= 231)
{
digitalWrite(relayPin, LOW);
}
else
{

}


delay(10);
}
 
Joined
May 30, 2019
Messages
11
Likes
9
Location
Navi mumbai
After long time i logged in to TAI. This is my new DIY
you can find more details in the video link.

View attachment 276942
Circuit Diagram
View attachment 276943


Arduino Code.

Code:
const int trigPin = 11;
const int echoPin = 10;
const int relayPin = 13;


long duration;
int distance;
long distancemm;

void setup() {
// put your setup code here, to run once:
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(relayPin, OUTPUT);

}


void loop() {

digitalWrite(trigPin, LOW);
delayMicroseconds(0);

digitalWrite(trigPin, HIGH);
delayMicroseconds(0);
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);

distance= duration*0.034/2;
distancemm = distance*10+30;

//Control
if (distancemm <= 230)
{
for (int i=0; i <= 180; i++){
digitalWrite(relayPin, HIGH);
delay(10);
}

}
else if (distancemm >= 231)
{
digitalWrite(relayPin, LOW);
}
else
{

}


delay(10);
}
This is a very informative video, this clearly shows that such modern techniques are so doable, yet manufacturers skip these things. I will surely try this on my Alto K10 once its warranty is over.
Just wanted to know if you have made any changes to the stock struts and opening mechanism of the boot as it lifts off completely after getting unlocked?

Also what happens in case there is mud and other things thrown on the sensor during rainy day drives, will it respond to it also and open up?
 
Thread Starter #3
Joined
Mar 28, 2010
Messages
85
Likes
140
Location
KOLLAM
yeah i added an additional dicky shock for auto-opening. there is no way for mud splash over the unit,it wont respond to mud. you ccan try with waterproof IP67 ultrasonic sensor
 
Top Bottom