Portable Trash Detector (Fried my board 5 times HELP :( )

Hello there.
Can somebody tell me if there is something wrong with my wiring?

So basically I use lithium battery 16340 connected 3 in series which produce 12V 1300mAh.
The output of the batt is connected to input of mini360 Buck Converter. The output of the buck converter will power the nano board via 5v pin(not from vin).

My project will use arduino nano v3.
I use two 12V sensor. One is CR18-8dn(capacitive) and the other one is PR18-8dn(inductive).
other components are in the schematic below.

Can you please tell me what causes my board dead?

If the sensors produce 12V signals, then the voltage dividers are applying 6V to the A0 and A1 inputs, possibly burning out the processor chip.

The schematic shows no current limiting resistors in series with the LEDs, possibly burning out the digital pins that drive them.

The 5V pin is an OUTPUT pin, use the VIN pin instead.
Also as someone else mentioned, you likely have too high a voltage on one or more of your other pins.

You can't power with 5v on Vin, it's correct to use 5v pin.

2 Likes

Yes, IIRC VIN is a higher voltage, but 5V is marked on the diagram I just looked at as OUTPUT.
In any case, the fact he has applied up to 12V on his pins is no doubt the cause of his grief.

Your LED's all need a resistor in series, in the range of 500 to 2000. Anywhere in this range will be OK just 500 ohms brighter, 2000 ohms dimmer.

Your Mini360 DC-DC has the "Out - " labeled as the +5v output.
Is this just a schematic error?

If you power your nano through Vin pin at 7-12V you can use 5v pin as regulated 5v output. But it's totally correct to power your nano through 5V pin at 5v.

But 6V input from sensors could damage your arduino.

Resistor you need for sure, to protect your led and your pins..
But from where you got these numbers without any datasheet provided? I have no reason to think that for example 250ohm resistor is incorrect.
For green and blue even half of it...

In that case why not mark in as in/out.
As far as LED resistors, more like 200 ohms, but why guess, just use a LED calculator. Here is one LINK

Since the OP is just starting off, I suggest it's better to keep the LED current low. As long as they can see the LED's they can troubleshoot their project. If when all is done they want to brighten the LEDs they can revisit the resistor values.

1 Like

  • Always Show us good images of your ‘actual’ wiring.

this maybe the reason actually before supplying from 12v, i used to test sensor individually from 9v battery.
the led is alright i already put 100 to 200 resistor to them individually.

my bad is just a schematic error

why is that wrong?
what is the correct way to wire them

Beyond your circuit difficulties, I'm curious about your project.

What type of trash are you monitoring?
The sensors look like they have a sensing distance of ~8mm (~1/3 inch). Does that work with irregular shaped trash?

Cheers
Paul.