Car Doors Check Control using a OPEL TID Display

Hello everyone, I am working out a schedule to use TID as developed in threads Opel TID Display - #135 by sipeti
What occurs to me is the following, I made the sketch, and on the test bench, it works perfectly. However, when connecting to the 12V of the car, it simply freezes, the Arduino does not respond to any command.
Even using a stabilized source, the same thing happens. But when I turn on any other source, the system works normally.
Here's the code I'm using.

#include "TID12_10.h"
TID MyTid(3,4,5); //D5->SCL, D6->MRQ, D7->SDA
int capo = 2; //Capo dianteiro
int botao1 = 7; //Porta 01
int botao2 = 8; //Porta 02
int botao3 = 9; //Porta 04
int botao4 = 10; //Porta 05
int botao5 = 11; //Porta Malas
int botao6 = 12; //Luz do ABS
int info = 13; //Liga transistor que comuta os fios do TID, ou o sinal que apaga a tela do TID para aparecer as informações
int sinalTID = 6;

void setup() {
MyTid.space1_init(0,0); //(first position,last position) (i. e. just the first digit)
MyTid.space2_init(0,9); //use digit 2 to 10
MyTid.clear_space(1);
MyTid.clear_space(2);
digitalWrite(sinalTID, HIGH);

pinMode(botao1, INPUT_PULLUP);
pinMode(botao2, INPUT_PULLUP);
pinMode(botao3, INPUT_PULLUP);
pinMode(botao4, INPUT_PULLUP);
pinMode(botao5, INPUT_PULLUP);
pinMode(botao6, INPUT_PULLUP);
pinMode(capo, INPUT_PULLUP);
pinMode(info, OUTPUT);

}
void loop() {
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
  digitalWrite(info, LOW);}

if (digitalRead(botao1) == LOW)
MyTid.display_message("PORTA DIANTEIRA ESQUERDA ABERTA  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
MyTid.display_message("   CHECK  ",8,2);// (speed,position)
delay(0);
}else{
MyTid.clear_space(2);}

if (digitalRead(botao2) == LOW)
MyTid.display_message("PORTA DIANTEIRA DIREITA ABERTA  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
MyTid.clear_space(2);}

if (digitalRead(botao3) == LOW)
MyTid.display_message("PORTA TRASEIRA ESQUERDA ABERTA  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
MyTid.clear_space(2);}

if (digitalRead(botao4) == LOW)
MyTid.display_message("PORTA TRASEIRA DIREITA ABERTA  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
MyTid.clear_space(2);}

if (digitalRead(botao5) == LOW)
MyTid.display_message("PORTA MALAS ABERTO  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
MyTid.clear_space(2);}

if (digitalRead(botao6) == LOW)
MyTid.display_message("AVARIA NOS FREIOS ABS  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
MyTid.clear_space(2);}

if (digitalRead(capo) == LOW)
MyTid.display_message("CAPO ABERTO - VERIFICAR !+!+!+!  ",8,2);// (speed,position)
if (!digitalRead(botao1) || !digitalRead(botao2) || !digitalRead(botao3) || !digitalRead(botao4) || !digitalRead(botao5) || !digitalRead(botao6) || !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
MyTid.clear_space(2);}


  if (!digitalRead(botao1) && !digitalRead(botao2) && !digitalRead(botao3) && !digitalRead(botao4) && !digitalRead(botao5) && !digitalRead(botao6) && !digitalRead(capo)){
digitalWrite(info, HIGH);
delay(0);
}else{
  digitalWrite(info, LOW);}


}

Post an annotated schematic, it sounds like it is a problem in the hardware. Frizzy drawings do not contain the needed information. Be sure to show all connections and notate any lines over 10". Also post links to technical information on the hardware items, links to amazon are useless, they are sales not technical. The same for Aliexpress.

@classicoscastro

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

Sorry for this, and thanks for move!


show the Wire diagrama of conections.

7,0V might be a bit too low. Try 7,5V or 8V.
As long as you do not supply other devices from the Ardiuno 5V and the current flowing through the onboard voltage-regulator is kept small you can supply the Vin-pin with 8V or 9V. Even 12V would be possible on the Vin-pin

best regards Stefan

Your "schematic" (about as useful as a frizzy) is lacking in a lot of details. I see no signal conditioning for the 12V system. I see no reverse battery connection. A lot of other things are missing as well. Your OPEL TID is powered by magic. Where did you put this in the car. How do you know you have just 12V? What does the manufacturer specification the electrical system and what to design for?

All of the "unimportant" details you did not add to the drawing are necessary. You are working with a very nasty electrical system with a lot of conducted and radiated noise with humongous power spikes. If your curious look up the AEC-Q100 & 200 series of specifications.

Sorry, I figured such a good forum of knowledge discussions, at the very least the people here would know that TID doesn't work with magic.
Sorry, I figured such a good forum of knowledge discussions, at the very least the people here would know that TID doesn't work with magic.

For power I am using a step-down voltage regulator, as shown in the attached photo.
The "Magic" that I don't understand is the system working on the bench and in the car even with it off, it doesn't work.
Below is a video of the system in operation on the bench.

On the Arduino-Forum users with all knowledge-levels inlcuding zero-knowledge are asking questions.

We only know about you what you have posted. Without any information about your knowledge-level the lack of information is replaced by assumptions.

So the assumption is: does not know very much about electronics.
Your wiring diagram that shows that you have connected switches from a 12V system directly to the arduino is interpreted again as

Does not know very much.

So you really should

best regards Stefan

1 Like

Sorry everyone. Get wire diagram.


In this situation, in a bench it's works correctly, but in a car, not run, with car engine off or run.

an Arduino Nano uses the Atmega328P microcontroller.

The Atmega328P-microcontroller has no
internal input_pulldown-resistors

what do you want to express with writing
image
??
.
.
.
Did you really check through conductivity-"beeping" with a digital multimeter
that your door-contacts-wires make a connection
open end of the door-contact gets connected to car ground when door closed?

Did you cross-check that arduino-nano that you have inside your car
if this arduino-nano is still functioning?

Did you check if the exact same code is running on the arduino inside your car and the one on the testbench?
Are you using the same arduino-nano on testbench and inside the car?

If your door-switches act somehow different than just connecting to car ground
there is a high chance that a too high voltage gets connected to the Arduino-pins that will destroy the arduino

P.S. If you talk non-english in the video and post this video in the english speaking forum
this is useless.
I do not understand but I'm able to recognise
italian
spanish/portugese
french,
eastern languages like russian, slowakia etc.
northern europe like swedish, danish, finnland etc.
oriental
I'm unsure is this spanish/portugese?

I'm mistake.
In you look PULLDOWN, read PULLUP.

I'm mistake, sorry, in you read PULLDOWN, read PULLUP.

Yes, the conductivity is ok. And the door switch run ground contact.

Yes, this Arduino keep running after test in a car. In car, freeze, In a separated battery, run normaly, and in a bench run to.

In this video only show the arduino run in a electrical bench. No important Audio.

Is this Portuguese, from Brazil.

to narrow down the problem why it is not functioning in your car.

what happens if you connect one of the input D6 with a push-button that you connect to arduino-ground and D6?

what happens if you connect one of the input D6 with a push-button that you connect to car-ground and D6?

Did you check if you really have conductivity between

  • car-ground and arduino-ground
  • car-ground and ground of DC-DC-converter

what do you observe in detail that makes you conclude your arduino freezes?

Do you have a heartbeat-blinking LED that blinks all the time and this blinking stops?
When exactly does the blinking stop?
right from powering up or later ?
at which point exactly?

Did you run a total simple testcode to check if this simple testcode keeps on running?

did you add serial printing to your code to make visible where in your code the arduino freezes?

D6 i'm use for a signal to erase date of Opel Tid. It's running OK. I'm don't connect ground direct a D6.

Yes, this conection is OK.

Observe its only stop run when a connect ground in D8 for example, don't send a message to OPEL TID. It's not run in all moment conected in a car, with engine car off or running.

I dont make this.

additionally

could you please write down all your answers in portugese and then let do google-translate do the translation to english!

If we go on on such a bad quality communication it is very unlikely to solve your problems

While you are at it redraw the schematic properly and as asked as you wired it showing all hardware. I work on way to many designs to keep track of your or other what if, same as, except, ...etc. Following what you are doing and lack of response. I ment, etc is becoming an exercise in futility.

A question you have not addressed what else is on the switches, are they dedicated just to your project or do they light lamps etc? Until the hardware is correct the software will not work properly if at all.

Working!

Thank's for all comments.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.