eagle1109
Full Member level 6
- Joined
- Nov 20, 2014
- Messages
- 393
- Helped
- 4
- Reputation
- 10
- Reaction score
- 7
- Trophy points
- 1,298
- Location
- Saudi Arabia
- Activity points
- 5,956
LTC4360-1 LTC4360-2 Datasheet and Product Info | Analog Devices
The LTC4360 overvoltage protection controller safeguards 2.5V to 5.5V systems from power supply overvoltage. It is designed for portable devices with multiple power supply options including wall adaptors, car battery adaptors and USB ports. The LTC4360 controls an external N-channel MOSFET in...www.analog.com
What are you currently using as a power supply? What is the current drawn by your development boards
A couple of points to note:
- 7805 devices need a significantly higher input voltage than the 5V output but can also get hot as the current increases (they dissipate the voltage drop as heat so the voltage drop times the current can get to a reasonable figure)
I learned that LDOs are the role now when it comes to voltage regulators. so my question now is lm7805 considered to be old technology and obsolete ?- depending on the input voltage, look for a LDO regulator or buck converter instead
- adapters of the type you show can have a lot of noise on the supply from the switch-mode circuit. You really need to make sure that your board has a lot of bypass capacitors on it, especially around the MCU (and I must admit that I can't quickly see any in your photo)
unless there are other components on the other side of the board I would expect it to be unreliable.
I also can't see much point in an opto-isolated relay as both provide isolation anyway.
yes there's no diode. is that the reason to have an opto-isolator ? and which is best ? a diode or an opto-isolator ?The relay doesn't appear to have a diode across its coil so it might spike unwanted voltages on to the supply rails.
going back to the schematic, I think yes it's for variable PWM.What is the purpose of the potentiometer (top of the picture) any why is it used with PWM?
yeah, it's our first attempt in college, not my design, it's from one of our colleagues, that he actually helped me a lot with this design.At first glance it looks a beautifully laid out but seriously badly designed board.
Yeah, this is what I got from our colleague. He just sent me this.Its difficult to read the labels on the signals but there are certainly some serious errors in the schematic.
1. You absolutely MUST add decoupling capacitors across the supply. C3 alone is not enough and we can't see it anyway. Use several combinations of 100nF ceramic and 10uF electrolytics in parallel, including one pair as close as possible across the VSS and VDD pins of the MCU. Without the capacitors there will be a lot of noise on the supply lines and a poor return path for the internal oscillator currents.
2. Add a diode across the relay coil with its cathode end towards VCC. This is because when the coil turns off it, the collapsing magnetic field creates a high voltage that could damage the driver transistor and possibly other components too. The diode will not conduct except for when it is absorbing the voltage spike.
3. R32 in the open collector section will burn out if the pins are linked and it is set to low resistance. Open collector should not have a current source from VCC at all but if you wire it like it is, you must at least make sure the current is limited. Think what would happen if you set R32 to zero resistance (turned all the way to the end) and you made the transistor conduct, it would short out the supply lines.
4. You have no protection against an MCU pin being driven low and closing one of the push buttons to VCC. Connecting supply directly to a pin driven low will likely burn out the internal driver transistors.
5. There is absolutely no point in using an opto-coupler in that way. The idea behind them is that the input side is isolated from the output side so feeding them from the same supply lines is pointless. Either use the transistor and the relay -or- use the optocoupler but not both at the same time.
yes you're right the board has no lines for PICkit power. the power is external all the time and I'm unchecking power from target tool.You have mentioned the PicKit - can you explain how you are using that wth this board?
With a board like this you should be powering it with the external PSU and using the PicKit ONLY for programming. There is not way that the PicKit can be used to provide power to the board at any time so you need to make sure that the IDE that is connected to the PicKit is set to use target power only.
Susan
I would suggest at least adding a diode and extra capacitors as suggested. You can wire them on the back of the board between the existing component pins, not ideal but it works.
Brian.
how to do that ?Use several combinations of 100nF ceramic and 10uF electrolytics in parallel
I can see C3 isn't fitted at all, its a wonder it ever works!
Fit 10uF in C3 position.
Flip the board over and solder 100nF capacitors with short wires directly across pins 11 & 12 and across pins 31 & 32. You can use the solder pads of the socket to connect to.
Similarly, flip the board over and solder a diode directly across the solder pads of the relay coil. A small signal diode like a 1N914/1N4148 will do.
Yep I resized the photosSomething puzzles me: I have never seen a PIC16F877A in a skinnydip package and none of the data sheets show it either. Are you sure it really is that device or is the photograph resized to make it look narrower?
C3 and the others across VSS and VDD are what we call 'decoupling' capacitors.
I will explain why they are so important:
The current drawn by the MCU appears to be quite low, just a few mA and that is what a test meter would show. However, it isn't constant, there are thousands of transistors in the MCU and each time one turns on or off it draws a spike of current. The spike is caused by the need to charge up or discharge the internal capacitance of the circuits and in some cases many (possibly hundreds) of transistors will switch simultaneously. As they do, their combined current for a few nS can be quite high. A meter wouldn't have time to react and would only show the average value, not the peaks. Because of the resistance and inductance of the wiring back to the power supply, a spike in current will cause a significant drop in voltage at the MCU, it may be several volts. Again because a meter can only react slowly it doesn't see the brief drops but the rest of the circuitry inside the MCU certainly will.
ok got thatIt could be fixed by mounting the MCU and power supply very close together, maybe lass than 10mm apart but that obviously isn't a practical solution. Instead we mount decoupling capacitors as close as possible to the device drawing the spikes of current. The capacitors store charge from the supply and release it when the voltage starts to drop and being very close to the load they do it without the losses of the supply wiring. Think of them as little rechargeable batteries mounted right where their power is needed. That's why I recommended them wired directly across the VSS and VDD pins of the MCU with short wiring length.
At first it might seem sensible to use a capacitor with a large value so it would have more power stored and therefore work better. In a perfect World that is exactly what we would do but unfortunately most capacitors, especially electrolytic ones, while being good at storing lots of charge are not so good at releasing it rapidly. Ceramic capacitors are very good at releasing charge rapidly but are physically big when large values are needed. Using both types in parallel gives the ability to store and release large amounts of charge at high speed. Typically 10uF electrolytic and 100nF ceramic are wired across the supply and so as one becomes less good at high speeds, the other takes over and becomes more effective.
Brian.
Quite likely but beware of the scope probes themselves introducing noise as well.so without decoupling capacitors, could I connect and oscilloscope between Vdd and Vss, and then I might observe the fluctuations on the Vdd pin ?
Yes, but mostly these two forums are the most common forums for me when it comes to electronics and best ones for me too.FYI there is a parallel discussion occurring at https://www.microchip.com/forums/m1159671.aspx but that seems to be more about designing a new board than getting this board to remain useful.
Just cross-referencing these so the OP doesn't get too many overlapping and/or contradictory suggestions.
Susan
yep I did that just now.Some observations:
1. C6 & C7 values are FAR too high, something like 22pF would be more appropriate.
2. add capacitors (about 1uF) between the input pins of the regulators and their GND pins. Physically they should be a close to the regulator as possible.
3. I would suggest adding a switch from the MCLR pin to ground to allow it to be manually reset.
4. Be careful connecting 'VCC' directly to 'V_USB'. VCC has to be higher than 5V for the AMS1117-5.0 to work but connecting it directly to the USB socket could damage anything plugged in to it.
5. my choice of value for R1 would be 100 Ohms, it should work with 1K but it would be safer to use a lower value so the logic low level is nearer 0V when a switch is closed.
Brian.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?