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.
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.
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.
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...
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.
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.
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?