⚡ Descuentos en cursos en video - Lleva tu aprendizaje técnico al siguiente nivel y aprovecha precios especiales antes de que termine la oferta. 🔥 Aprovechar oferta ahora 🔥
Microcontrollers and digital systems

My pic sequence resets at any time

junior259
junior259
103
hace 5 años
hace 5 años
Good afternoon....!!! Friends, I have a problem with a circuit that I have assembled with a 16f628a pic, it happens that in protoboard everything is fine, but once I ride a card ... the sequence that lasts on average 1 hour is reset at any time, coincidentally this happens when a solenoid valve is activated, I would like to know if it is perhaps due to a rebound effect due to the load generated by the solenoid coil ... or why this happens to me ... and what I could do to correct ... I do the control with bc558 transistors, the relays are 5 volts and I have an independent source of 12 for solenoid control ... one turns on only once, the second solenoid turns on and off 4 times in the sequence ... and at any time just when the sequence is activated ... Thanks for the help...
sergiouasd
sergiouasd
3.527
hace 5 años

good, you must maintain the 5v power of the pic with a regulator only for it and the relays of another regulator, since the generated voltage pulses can affect the pic.

Responder
ricbevi
ricbevi
17.055
hace 5 años
hace 5 años
In these types of failures, the power supply, the uncoupling of the power supply and the inputs of the PIC, the PCB itself, with generous GND MASS PLANS not only lines, etc., are very involved. Try to see if you can solve it by deactivating (if you have it activated) the PWRTE, place a capacitor between the power pins of the 100nF PIC (14 and 5) and you can place a 100nF capacitor between the relay contacts that switches the solenoids series with a resistance of 47Ω x 1W. The capacitor preferably made of polyester and 630V insulation. Regards. Ric. In the image the network is badly connected because in the schematic it is connected in this way so that the pins on the PCB that I was doing with the relay that I had but goes between the output (NA) and the common one would coincide.
junior259
junior259
103
hace 5 años

Thanks for the info, sorry for the delay, I could find the solution on the web, my problem was that I had not considered the "snober network" the circuit of the capacitor and resistance, with that my problem was solved, I appreciate the help ... Thank you

Responder
ricbevi
ricbevi
17.055
hace 5 años

Whenever there are switching and microcontroller inductances, it is of good practice to avoid precisely what happened to you, the implementation of a Snubber network is why I recommended it and showed it in the image (R30 / C20). Regards .. Ric.

Responder
Armando almarales
hace 5 años
hace 5 años
Hello, that is a typical failure in microcontrollers, it goes without saying that PIC16 are very prone to those failures. Some solutions: 1.- Place a snubber network https://es.wikipedia.org/wiki/Circuitos_de_ayuda_a_la_conmutaci%C3%B3n_de_transistores 2.- Isolate stages with Optocouplers (PC817, 4N25) 3.- Use stable sources, the new type buck (dc-dc converters) based on LM2956 are very stable and can give you 3Amps without problems. 4.- Finally, change the microphone if you have the possibility, you can use instead a PIC16F15325 that is newer and more stable.
junior259
junior259
103
hace 5 años

Thanks for the help ... It was the absence of the snuber network ...

Responder
Reparaciones similares solucionadas

¿Conoces una solución?

¡Aprende a reparar con estos cursos YoReparo!

4.93
(14)

Curso Reparación de Equipos de Audio de Alta Fidelidad

Maximiliano Resch
$ 60 USD
$ 20 USD
4.94
(16)

Curso Refrigeración Comercial Aplicado a Diagnóstico y Reparación

Ing. Georga Melgarejo
$ 40 USD
$ 13 USD
4.64
(11)

Curso Electrónica para Reparación de Placas

Santiago Cediel
$ 29 USD
$ 11 USD
¿Tienes una mejor respuesta a este tema? ¿Quieres hacerle una pregunta a nuestra comunidad y sus expertos?
Regístrate gratis