Schematic Review Please?

Hello.

I am working on a project to replace the Bosch Alarm Siren in my car. I have attached the schematic for the device and would appreciate any feedback, corrections or comments. I have a wired prototype working in the car now, but it has shown that fly leads and push connectors are not the answer in an automotive environment.

The project takes automotive voltage (~14.8 max) to power the device and the lock and alarm signals are at the same level. I am using simple resistor dividers to reduce the signals to ~<5 volts for input into the Nano Every. VIN is through a buck convertor at 12VDC. The amplifier is turned on via a 5V gate MOSFET by supplying ground (N channel). The audio amp is using a TDA2030AL-TB51-T amp to provide the required volume. The Nano provides the tones to the amp through 2 outputs. One runs through a pot for reduced volume for the car lock/unlock tone and a second for loud tone for the theft alarm. The Nano is put to sleep after 10 minutes of no activity. External interrupt 0 wakes the Nano through the lock or alarm signal applied to D2.

Before I order the PCBs I was looking for a second pair of eyes to review the overall schematic to see if I have missed anything.

Thanks in advance.

Schematic_Car Alarm 1V3_2022-09-13.pdf (250.9 KB)

Car Alarm 1V8 main cpp.pdf (78.0 KB)

The switch circuit looks a little funny to me... Why are there two resistors acting as a voltage divider here?
image

The voltage being supplied is >12 VDC (automotive charging circuit). So, I need to reduce the voltage to a Nano friendly level. The test switch will be used to test the wakeup interrupt and can also be used to trigger the locking tone so that the volume level can be set. It feeds both D2 for Interrupt 0 and when the Nano is awake D12 to cause the lock tone to sound.

Thanks for such a quick reply!!!

I'm not worried about you using a voltage divider - quite good that you are. But it just looks odd having one half connected to the switch. The voltage will only go through it when you hit the switch, never apart from that.

Hi,
Ever considered an opto-coupler to give both circuits isolation from ignition noise/spikes?

Tom... :smiley: :+1: :coffee: :australia:

1 Like

You should post code in tags in the forum, not as a link to a .pdf

Its a nice schematic and I see why you posted it as a link rather than an image.

FOr me it would be better if you divided it up into functional sections with a description. So eg

image

Without knowing what you expect the circuit to do its hard to know if it will match your expectations.

This is my thinking

1 Like

Generally, the car is not running when signals for the lock/unlock and theft alarm are triggered.

Good thought though!

How modern is this car? Some modern cars automatically lock and unlock when someone gets in and out. Be careful with that.

Newbie here, I'm not sure what you mean by:

"You should post code in tags in the forum, not as a link to a .pdf"

I am using EasyEDA for the schm and I'm not sure I can break into functional sections.

Appreciate the comments!

2005 Crossfire, so no worries!

1 Like

KiCAD is easier to use, and you can break it into functional sections.

Code tags:
image

Niiiiiice!!!

Thanks, I'll take a look at that. Does it generate Gerber files for PCB production?

Yes, and a BOM, and 3d models of the PCB.

An example:
production.zip (47.5 KB)

1 Like

Gerber view came up fine. I'll take a look at the program. Thanks.

Bedtime here almost 2AM.

Later...

1 Like

Hi,
Looking at your schematic, you are doing a lot of diode logic.
Why not have each of the signals from your vehicle go straight to the Nano via potential dividers and let the software do all the logic?
It would make for a less busy PCB and cut down on components.

Tom.... :smiley: :+1: :coffee: :australia:

1 Like

I've been kicking that around. I only have 2 inputs coming from the car and I want to send them both to pin 2 for Int0 wakeup and still prevent back feed from one to the other signal. As, I think about it, I can run one signal to Int0 (D2) and the other to D3 (int1) and wakeup on either. Not sure that is possible but worth a look.

The Diodes on the audio side are probably not needed as the prototype is running without them and working fine

Thanks for the feedback.

Steve

Hi,
Do you need to use interrupts?
Won't polling be fast enough?

Tom.... :smiley: :+1: :coffee: :australia:

1 Like