How to avoid unwanted blocks with Arduino


How to avoid unwanted blocks with Arduino

One of the worst things that can happen to us after so much work to write a sketch, is to see our Arduino crash unexpectedly for no understandable reason. There are many reasons for this to happen, but the one due to switching inductive loads is quite common.
There is an easy way to avoid this problem, and that is to use photocouplers. An optocoupler integrates a LED diode and a photosensor (transistor or triac) into the chip.
This simple coupling allows us to obtain galvanic isolation between Arduino and our load, be it a relay, a motor, or a 220v load.
In addition, divide the two worlds is good in order to prevent disturbances from reaching the Arduino, they also safeguard us from the possibility of taking dangerous electrical discharges when we are driving a load connected to the power network, in which case we will use an optocoupler with a triac output and not a transistor.
There are ready-made cards that mount optocouplers that make it easier for us.
The same technique is recommended not only for the outputs to relays and motors, but also for the inputs, to be sure that the disturbances are confined outside the walls of the Arduino.

Luciano Pautasso

If you enjoyed reading this little guide, click on an advertising banner. You will help us pay for the server.




Cerca 


Categorie Articoli

Ultimi articoli

Arduino_crashes   APRI 

Arduino_si_blocca   APRI 

Arduino_e_Trenino   APRI 

millis_no_overflow   APRI 

millis   APRI 

Arduino_millis_no_Overflow   APRI 

millis   APRI 

Impara-Giocando   APRI 

Corso-di-elettrotecnica-ed-elettronica-3-volumi   APRI 

Libro-tutto-sull-audio---inglese   APRI 

Libro-ELETTRONICA-FONDAMENTALE   APRI 

Il-timer-NE555   APRI 

Audio-Handbook   APRI 

bottiglia-solare-per-illuminare-le-case   APRI 

Calcolare-la-rata-di-un-prestito   APRI 

I-Distillatori-solari   APRI 

Camino-Solare-per-raffrescare-le-case   APRI 

pcb   APRI 

Essiccatori-solari   APRI 

Come-difendersi-dagli-allegati-pericolosi-nelle-email   APRI 

KEEPASS-un-posto-sicuro-per-le-nostre-PASSWORD   APRI 

Video-marketing-il-futuro-del-digital   APRI 

I-3-trend-estivi-del-2020-scopri-i-tagli-che-ti-stanno-meglio   APRI 

Model-Train-Remote-Control   APRI 

Telecomando-per-Trenini   APRI 

La-luna-ed-il-suo-influsso-in-agricoltura   APRI 

Come-rendere-tecnologico-il-tuo-ufficio   APRI 

Come-ristrutturare-casa-dal-punto-di-vista-ecologico   APRI 

Come-fare-i-biglietti-easyjet-online   APRI 

4-imperdibili-castelli-della-Baviera   APRI