Author Topic: FAULTS IN SCHEMATIC  (Read 1631 times)

0 Members and 1 Guest are viewing this topic.

Offline gsingh11Topic starter

  • Contributor
  • Posts: 26
  • Country: ca
FAULTS IN SCHEMATIC
« on: February 03, 2023, 04:30:26 pm »
Hi, I just made a new schematic for my upcoming project. i am looking for any mistakes in it. if you find any errors please let me know so I can improve it.[img][/img
 

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2938
  • Country: us
Re: FAULTS IN SCHEMATIC
« Reply #1 on: February 03, 2023, 05:18:46 pm »
The diode on the solenoid valve (D7 or is it D?) is backwards.
Jon
 

Online mariush

  • Super Contributor
  • ***
  • Posts: 5247
  • Country: ro
  • .
Re: FAULTS IN SCHEMATIC
« Reply #2 on: February 03, 2023, 05:25:56 pm »
You're using LM2596S-12 on schematic which makes it sound like it's a fixed output voltage 12v version, but it seems like it's for 5v because power goes to the Arduino.

But it also goes to the relays - G8N-1U is a 5.5v max part... don't know why you don't use 12v relays.


It's really debatable that you need a switching regulator to produce 5v, because that sensor HC-SR04 consumes maybe up to 15mA , the Arduino a few mA, and the leds connected to the Arduino maybe 7-10mA each (due to the two 330 ohm resistors) ... so I don't see your project needing more than 100mA on 5v (edit: if we don't include the relays) and in that case a linear regulator would be almost as efficient as that LM2596 regulator.
edit : if we include the relays, those probably consume around 40-50mA when engaged, so let's add another 100mA worst case scenario, so at most 200mA
   
12v - 5v at 100mA or so with a linear regulator will be around 40% efficiency, with LM2596 will be around 75% efficiency but at several times the cost.
If you want efficiency (90% and higher) get a better switcher IC that runs at higher frequencies and has inductors and everything "optimized" for 100-250mA.

TIP120 is a npn darlington transistor, 5A , with hFe minimum 1000mA ...  it's overkill for a relay that consumes 50mA or so while turned on.
You could have easily used something like FCX491 (hFe 300+) or FMMT491 (hFe 100+) or even MMBT555x which has a hFe of around 50, and just use higher base current like 5mA or so, which is something Arduino can do, for example just go down to around 100-470 ohm instead of 1 kohm

Seems like you have plenty of pins on the atmega ... maybe it would be simpler and easier to just have one led per pin and if you want to lower power consumption you can always loop and pwm them to reduce power consumption.

I didn't check if you actually wired that LM2596s correctly - assume you're gonna buy one of those ready made units from ebay which will have fake / cloned chips and not proper lm2596s
 

Offline fourfathom

  • Super Contributor
  • ***
  • Posts: 2175
  • Country: us
Re: FAULTS IN SCHEMATIC
« Reply #3 on: February 03, 2023, 05:29:12 pm »
It also appears that the relays K1 and K2 are not correctly wired to the pump and solenoid.  I see no ground connection, just the +12V.
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 
The following users thanked this post: tooki, Damianos

Offline GigaJoe

  • Frequent Contributor
  • **
  • Posts: 625
  • Country: ca
Re: FAULTS IN SCHEMATIC
« Reply #4 on: February 05, 2023, 11:17:22 pm »
i may assume 12V would be from wall plug like 1A 12V
means add caps for 12V  filtering

5V linear for arduino , it was mention , and 12V relay ,  for emiter base recommended shunt resistor in a few K,  consider that digital low maybe sufficient to open relay transistor, means you need a diode or resistor divider for increasing level when it trigger .   you may consider TTL logic mosfet as a switch (IRL510 , IRL3803).

modern led diodes usually work at 1ma ,  means high 5V over 330 ohm around 15ma ;   consider a few Khom resistors for led

consider fail safe circuit if by errors pump started but solenoid not, or whatever ( no idea of logic)  if Arduino or anything misbehave ( like an additional TLL logic)

consider fail safe for 12V an 5V like zeners if voltage increase for some reasons, (lighting spike)

consider an initial state of ports when arduino just started , and unknown status of ports, you may need RC to delay command to management transistors.

consider a second mechanical switch for full \ empty as a failsafe if you sonar misbehave.

 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 16980
  • Country: fr
Re: FAULTS IN SCHEMATIC
« Reply #5 on: February 05, 2023, 11:50:32 pm »
It hurt my neck. ::)
 
The following users thanked this post: pcprogrammer

Offline Damianos

  • Frequent Contributor
  • **
  • Posts: 268
  • Country: gr
Re: FAULTS IN SCHEMATIC
« Reply #6 on: February 06, 2023, 10:19:43 am »
Additionally to what is already mentioned, the 12V relays will not work properly on 5V, if they work at all.

EDIT: it is already mentioned here https://www.eevblog.com/forum/projects/faults-in-schematic/msg4679473/#msg4679473
« Last Edit: February 06, 2023, 10:23:15 am by Damianos »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf