martes, 28 de mayo de 2019

electro-stimulator


Muscular Electrostimulation

BackGround

The application of an electrical current escapes from depolarizing the membrane of the muscular or nervous fiber and artificially produces its excitation.

Figure 1: Principle of selective stimulation of the denervated musculature 

It is a technique that involves applying an electric shock directed at a particular muscle, to produce a controlled contraction. It is a therapeutic means, since it controls the work of the muscular fibers with an aim: to repair damaged tissues, to avoid degenerations and / or to avoid traumatisms.
Electrotherapy, employing low-volt, low-frequency impulse currents, has become an accepted practice in the physiotherapy departments. The biological reactions produced by low-volt currents have resulted in the adoption of this therapy in the management of many diseases affecting muscles and nerves. The technique is used for the treatment of paralysis with totally or partially degenerated muscles, for the treatment of pain, muscular spasm and peripheral circulatory disturbances, and for several other applications. Different types of waveforms are used for carrying out specific treatments.The most commonly used pulse waveforms are discussed below. 

Figure 2: Different types of waveforms





Galvanic Current: When a steady flow of direct current is passed through a tissue, its effect is primarily chemical. It causes the movement of ions and their collection at the skin areas lying immediately beneath the electrodes. The effect is manifested most clearly in a bright red coloration which is an expression of hyperaemia (increased blood flow). Galvanic current is also called direct current, galvanism, continuous current or constant current.

Faradic Current: Faradic current is a sequence of pulses with a defined shape and current intensity. The pulse duration is about 1 minute with a triangular waveform and an interval duration of about 20 minutes. Faradic current acts upon muscle tissue and upon the motor nerves to produce muscle contractions. There is no ion transfer and consequently, no chemical effect. This may be used for the treatment of muscle weakness after lengthy immobilization and of disuse atrophy.

Surging Current: If the peak current intensity applied to the patient increases and decreases rhythmically, and the rate of increase and decrease of the peak amplitude is slow, the resulting shape of the current waveform is called a surging current. The main field of application of the Faradic surge current is in the treatment of functional paralysis. The surge rate is usually from 6-60 surges per minute in most of the instruments. The ratio of interval to the duration of the surging is also adjustable so that graded exercise may be administered. This type of current is usually required for the treatment of spasm and pain.

Exponentially Progressive Current: This current is useful for the treatment of severe paralysis. The main advantage of this method lies in the possibility of providing selective stimulation (Fig. 1) for the treatment of the paralysed muscles. This means that the surrounding healthy tissues even in the immediate neighbourhood of the diseased muscles are not stimulated. The slope of the exponential pulse is kept variable.

Analgesic currents stimulation sensitive afferent nerve fibers. Excitomotor currents stimulation of motor efferent fibers.

The type of frequency selected is the key to indicate to the body what type of fiber to activate essentially:

Table 1: Frequency types and their effects



TENS (Transcutaneous Electrical Nerve Stimulation)


Figure 3: Analgesic electrotherapy application


Depolarization of the peripheral sensory nerves to cause, fundamentally, pain reduction.Electrotherapy by TENS modality presents different modalities such as:
  • Conventional or high frequency
  • Low frequency
  • Low frequency in trains or gusts
  • Brief or intense
High frequency: Place the electrodes directly on the area painful or also on nervous path, trigger points, acupuncture points, dermatome, contralateral limb. Tickling sensation.

Low frequency: On a muscle of the myotome belonging to the same metamera as the origin of the pain or at the motor point of the muscle. Visible muscular contraction (without movement).

Precautions:
• Proper preservation of electrodes.
• Wet and well rinsed pads
• Good electro-leather contact
• Good skin condition (erosions and wounds)

Contraindications TENS:
• Pacemakers, stimulators (Parkinson's, incontinence)
• Anesthesia or hypoesthesia of the skin.
• Lack of patient cooperation (elderly, children)
• Neoplasms.
• Infections and acute inflammatory processes.
• Precordial zone, carotid sinus, larynx.
• Pregnancy (relative contraindication).
• Gynecological pathologies (metrorrhagia), in applications ABS.
• Epilepsy (relative contraindication).
• Osteosynthesis and metallic stents (non-compensated pulses).

Desing






The design of the electro stimulator is composed of a LM555 timer which will allow us to generate square pulses at different frequencies by the capacitor located in the threshold and potentiometer located in the Discharge, using the equation

And so with the help of this formula and putting a capacitor of 100µF and an R1 100Ω is calculated The value Of the potentiometer to obtain frequencies between 6Hz and 100Hz, and thus it was obtained that the potentiometer should be of 1kΩ getting

Already obtained the frequencies we proceed to manipulate the intensity of operation, this was made daring of a optocoupler, which in turn allowed to make protection to the patient because it performs an isolation of lands, to regulate the intensity It is made by a potentiometer located in the collector of the phototransistor that composes to the optocoupler, for the isolation is done locating the negative part of the diode towards the ground of the circuit and the transmitter of the phototransistor to another Earth, obtaining So the following convention.

Frequency
CORREINTE
6Hz
0.05 mA
100Hz
27th


Results 


In figure four and five, the output signal generated by the circuit implemented with a 555 circuit can be observed. The output frequencies are between 6 and 104 Hertz. To increase the amplitude of the generated signal, an optoacolator powered with 15 volts is used. In this way, a variable current between 0.05 and 0.27 mA is generated. When the signal is amplified with the optocoupler, a small frizzing occurs in the negative part of the signal, as shown in figure 6.
Figure 4:  Signal out of 555.
Figure 5: Signal out of 555.



Figure 6: Signal out optocoupler. ,

Because there was a bad coupling of impedances, when the output signal of the optocoupler was induced to the patient the signal deformed a little, the signal went from being measured to becoming a triangular signal, although this change only occurred at high frequencies, this is due to the impedance of the patient that responds to the change in the frequency of the induced signal. As a solution for the coupling of impedances between the generator circuit of the signal Tens and the patient, a reducer transformer can be used, in addition, to generate an optimal impedance coupling, a circuit of protection to the patient is also being generated. In the implanted circuit an optocoupler was used for the protection of the patient, which is an optimal circuit to generate the protection of the patient, but it is not optimal to generate the coupling of impedances between the patient and the circuit. As the signal is deforming, it was losing its pain treatment properties, so when it reached high frequencies the patient felt itching or tingling.
Figure 7:Figure 8: Output signal with pateint.

Figure 8: Output signal with pateint.


Figure 9: Figure 8: Output signal with pateint.


Conclusions


The signal generated, which is a continuous square wave for treatment of pain through TENS electro-stimulation, is deformed when the circuit is connected to the patient and frequencies greater than 50 Hz are configured, this deformation is possibly generated by the impedance of the patient, for To solve this type of problems, a coupling of impedances between the circuit and the patient must be carried out, for this a transformer can be used, such that the patient is totally isolated from the circuit.


Bibliography

  • Webster, J. G.(2006). Encyclodedia of Medical devices and instrumentation. John Wiley & sons, Inc.Khandpur, R.S. 2014. Handbook Of Biomedical Instrumentation, Third Edition. India. McGraw Hill Education.
  • Barbara H. Estridge, Anna P. Reynolds, Norma J. Walters (2000). Basic Medical Laboratory Techniques. Cengage Learning.





domingo, 12 de mayo de 2019

DEFIBRILLATOR AND PACEMAKERS

DEFIBRILLATOR AND PACEMAKERS


BackGrounds

PACEMAKER

It is a small device operated with batteries. Notice when the heart is beating irregularly or very slowly. This is the correct message.


Figure 1: Transcutaneous pacemaker

Resultado de imagen para marcapasos externo
Figure 2: External Pacemaker
External pacemakers are employed to restart the normal rhythm of the heart in cases of cardiac standstill, in situations where short-term pacing is considered adequate, while the patient is in the intensive care unit or is awaiting implantation of a permanent pacemaker. Frequently, external pacemakers are used for patients recovering from cardiac surgery to correct temporary conduction disturbances resulting from the surgery. As the patient recovers, normal conduction returns and the use of pacemakers is discontinued.

The pacing impulse is applied through metal electrodes placed on the surface of the body. Electrode jelly is used for better contact and to avoid burning of the skin underneath. An external pacemaker may apply up to 80-mA pulses through 50-cm electrode on the chest. This procedure is painful and therefore is used only in an emergency or a temporary situation. The pulses may be delivered:
  • Continuously: When it is felt that the heart rate is below the pre-set value. The impulse frequency is independent of the electrical activity of the heart.

Figure 3: Continuous Pulse
  • On demand R: synchronous wave stimulation. Normally, the pacemaker does not work, but it is activated when the heart rate falls below the normal or preset value. In such a situation, a beat-to-beat examination of the time interval between two R waves is performed. When this interval exceeds the preset value, the pacemaker becomes operational.
There are three types of pacemakers based on the type of output waveform  These are:
Voltage Pacemakers: Voltage pacemakers are those in which the current in the circuit is determined by the available voltage during the entire duration of the impulse. The voltage output from the pacemaker remains constant and changes of resistance in the circuit will influence only the current.
Figure 4: Voltage Pacemaker

Current Pacemakers
: In current pacemakers, throughout the impulse, the current in the circuit is determined by the internal resistance of the pacemaker.
Figure 5: constant current type pacemaker
Current Limited Voltage Pacemakers: This is primarily a voltage circuit, but the maximum current in the circuit is limited, preventing too large a current impulse to circulate when there is a low resistance in the electrode circuit. With these pacemakers, during the first part of the impulse, the current in the circuit is determined by the internal resistance of the pacemaker (constant current type) but during the second part of the impulse, the current in the circuit is determined by the voltage available (constant voltage version).


By download
Single phase: it has a current that is carried out in only one direction, which means a high dose of shock in three shocks of 200, 300 and 360 joules.
Biphasic: these are more advanced defibrillators. This means that they need up to 40% less energy and consequently produce less myocardial damage. It is a double current, because it changes polarity during the crash, with an administration of three shocks of 150. They are more efficient defibrillators and have lower energy expenditure.

Figure 7: Defibrillation by download


Type of user
Manuals: must be used by qualified personnel due to their complex functions. Only trained health personnel are authorized to use it in Europe.
Automatic: these types of defibrillators apply the discharge without prior notice, which is very dangerous for the person assisting the victim. They are increasingly disused by this aspect, but their DEA terminology is still used, since they were the only external defibrillators used in the past.
Semiautomatics: these are types of defibrillators for public use, which warn at the time of discharge and indicate that you have to separate from the patient by pressing the button that will activate the defibrillation. They are devices that require little training by the user. The device indicates the steps to be followed through sound and visual instructions.

INTERNAL DESFIBRILLATOR

Internal defibrillator or DAI (implantable cardioverter defibrillator), is the one that is implanted in the person, There are several types of DAI:

Monocameral DAI: acts only in a cardiac chamber with a pulse generator and an electrode in the right ventricle.

Bicameral DAI: acts in two chambers of the heart with a pulse generator and two electrodes, one the right ventricle and one in the right atrium.

tricameral DAI: acts in three chambers to treat ventricular arrhythmias and heart failure.

Figure 8: Internal Desfibrillator



Desing

In Figure 9 we observe the electrical circuit diagram used to perform an asynchronous pacemaker at 60 hertz and a defibrillator with two different discharge levels. To generate the pulse, the Arduino Uno board was used, a logical one (5 volts) was generated for 40 milliseconds and a logical zero (0 volts) for 960 milliseconds. At the output of pin two of the arduino a voltage divider was coupled with a potentiometer and a fixed resistance, in this way the amount of voltage supplied to the patient is varied. To simulate the patient a wave generator is used, the simulated ECG signal enters a non-inverting adder amplifier circuit with gain one, together with the generated pulse that comes from the Arduino Uno board. To create the different discharge values for the defibrillator, capacitors connected to a diode in series were used, so when loading and unloading, different load values were generated, since depending on where the selector was located, the patient received more or less voltage, that is to say, the more capacitors I had in series, the more charge they evicted, therefore, the more charge they released. Finally, to select the mode, a three-position selector is used to choose the mode: pacemaker, defroster or off.

Fugure 9: Electrical diagram of the pacemaker and the defibrillator.


Results

After carrying out the previous theoretical consultation of the operation of a pacemaker and a defibrillator, it was carried out its implementation which consisted of two parts. The first one is the pacemaker, which had an operation that consisted of an asynchronous one, that is, the stimulation is done at a constant frequency in this design was made at a frequency of 60 ppm which is equivalent to a frequency of 1 Hz because the pathology that was wanted to regulate are bradycardia, the pulse was sent by a microcontroller, Arduino each pulse has a duration of 40ms this is to what is established in the manuals, later to generate the pulse as shown in figure 1 psterior to this was done to show the pulse on the ECG signal obtained from the generator at a frequency of 500mHz as shown in figure 2.

figure 1,2

the second part was to perform the defibrillator which consists of making a discharge to different jouls, these charges were made by loading and unloading a capacitor and a discharge time calculated by means of the equation 1
t = R * C
t = 10k * 4,7uF
t = 40ms
this means that the discharge time is 40 ms as recommended in the bibliography, the charges were 12.8V and 13V
loading to nd unloading was done manually with the help of a push button. The results can be seen in figure 3 and 4.
figure 3
figure 4

Conclusions

An asynchronous pacemaker can bring different problems such as uncoordination between ventricles and atria, waste of the battery, blood flow does not depend on exercise, among others. Even in some patients it can cause fibrillation, for this reason only used externally because they are used when they are in a medical center and its use is transient.
Ventricular fibrillation (VF) is the initial rhythm in up to 90% of adult CRPs, the only effective treatment of VF is defibrillation.
It can be concluded that a defibrillator is currently very important because it can reverse some deadly damage to the heart for this reason today it is looking to improve it, that is why it is important to understand its operating principle when the time comes to manipulate it, let's know how.


BIBLIOGRAPHY

Lifetime; types of defibrillators, (2017), taken online from: https://www.desfibrilador.com/desfibrilador/tipos-de-desfibriladores/, consulted: 05/12/2019.
Webster, J. G. (2006). Encyclodex of Medical devices and instrumentation. John Wiley & sons, Inc.
Daneri, P. (2007). Electromedicine Diagnostic and Intensive Care Equipment. Editorial HASA.


miércoles, 24 de abril de 2019

HEMODIALYSIS MACHINE


Hemodialysis Machine Simulation






Hemodialysis is an option to treat kidney failure, it eliminates harmful wastes that prevent maintaining the proper balance of chemicals in the body.

 The hemodialysis is performed by a small surgical intervention in the non-dominant arm or in which it has better veins, for this the connection of the machine with the patient is made, which consists of a hydraulic system and a mechanical system, the hydraulic system consists of in the extraction of blood from the artery, the blood enters a blood pump where an anticoagulant agent is added, for example heparin, then, the blood goes to the dialysis filter where the blood purification is carried out and connects with the mechanical system, in the same dialysis filter the blood is mixed with the water and the dialysis solution coming from the machine for a better purification of the blood. The waste is expelled by the drainage of the machine and the filtered blood is returned to the patient through the vein, in this simulated system, when any of the liquids is finished, the system is turned off.











lunes, 22 de abril de 2019

INCUBATOR

INCUBATOR 

Related image
figure 1: neonatal incubator 


BackGrounds


A neonatal incubator is a medical device used mainly to generate an environment in which different variables important for the development of newborns [1, 2].

The need for neonatal incubators arose due to the constant deliveries of premature babies, who, without an adequate means simulating their mother's womb, run the risk of not dying [1-3].

At present, neonatal incubators can be found in practically all hospitals and clinics; these are increasingly safe and easy to control by medical personnel.
Each one of the mechanical and physical components that they form the incubator, as well as the sensors that measure the different variables must be synchronized and in perfect functioning so that the microenvironment of neonate will not be disturbed. Two fundamental components of a neonatal incubator are the dome and the chassis.

 The dome is essential to maintain the necessary means for the newborn. Porsu part, the chassis contains the source of power and sensors that alert in case of failure, for the protection of the newborn.
The cover or dome is responsible for isolating the baby and creating a barrier between the external environment and the microenvironment generated by the incubator; This means that it protects it from situations such as drafts, low temperatures, among others. The cover must meet certain special characteristics; It should allow the visibility of the baby and be made of a material that does not react with oxygen, to avoid corrosion in cases where oxygen therapy is necessary. Generally, an acrylic material containing a certain percentage of polypropylene and other polymers is used, and
approximately 6mm thick, enough to isolate the external environment of the microenvironment of the incubator. The standard measurements of an incubator are 90cm long, 40cm wide and 45cm high [4].

The chassis is the metal base of the incubator. In it are the different sensors and the source of power, and on it is located the mattress holder. It must be constructed with a resistant material that supports the weight of the neonate and the dome, in addition to being highly heat resistant, so that it does not deform easily due to the temperatures that are registered both inside the incubator and in the chassis [3].

Principles of Operation

Most incubators provide heat to babies through the flow of hot air, this heat is transferred mainly by convection. The heating and humidification systems are located below the incubator compartment. The circulation of the air is achieved thanks to a fan or a turbine that takes it from the outside and passes it through a heating element and a temperature measuring device, then passes over a water tank used to moisten the air (if it is required) before pushing it into the camera where the patient is.

TEMPERATURE :
Likewise, incubators have a heating element or heat unit that is activated by an electrical signal, which is proportional to the difference between the measured temperature and the reference value pre-established by the operator [5].

It is defined as the range of environmental temperature, in which the metabolic rate (oxygen consumption) is minimal and thermoregulation is achieved without vasomotor control.

Within this range, the RN is in equilibrium with the environment. The normal body temperature of the newborn implies the recording of the temperature when the state of thermoneutrality is achieved, even when the definitions of normal temperature vary.



The current recommendations of the American Academy of Pediatrics and the American College of Gynecology and Obstetrics are 36.5 and 37.5 ° C for axillary and rectal temperatures respectively; for abdominal skin temperature is 36 to 36.5 ° C.


HUMIDITY:
In the premature, the amount of heat that can be lost by the mechanism of evaporation is particularly important. This occurs in the form of insensible water losses and is known as PTEA. The contribution of the PTEA to the thermal stability of the RN is complex and depends on many factors. The anatomical characteristics predispose it to these losses, but the most significant factor in this process is the relative humidity of the surrounding air. Within the physiology of the RN, what is more important is the increase in the permeability of the skin, due to its thinness and immaturity. 

Desing

figure 6: Dimer electric circuit


figure 7: Electric Circuit

Figure 7 shows the electrical diagram that was used to sense and display the temperature and humidity, to control the speed or power of the fans and to generate the alarms (visual and audible) corresponding to temperature and humidity outside the ranges normal The incubator consists of three fans, an internal fan that circulates the steam and hot air, and two external fans, one extractor and another that enters fresh air from the external environment. The speed of the fans depended on the error that existed between the sensed value and the value entered by the keyboard. To generate hot air we used a dry resistance that reached 100 ° c, and generate water vapor using a submersible resistance, both are fed with 110v A.C. To control the temperature, only the fans were needed, to control the submersible resistance it was necessary to use a dimmer (figure seven) as well.

ResultsAfter making the code and the model, we related a corresponding PWM value of the fans with a temperature and humidity value taken by default, giving the following tables (table 1,2):


Table 1: Humidity Characterization Table


Table 2: Temperature Characterization Table

The points that were obtained after characterizing the motor were related in a linear manner:

figure 2: Temperature Characterization

figure 3:  Humidity Characterization

to maintain the temperature and humidity to the desired value entered by means of a keyboard, it is programmed by means of an error control between the difference of the temperature and humidity sensed and the temperature and humidity that one wants to obtain in the system, so if the difference it is zero the PWM of the fans is very low and if the difference is 1 or greater than 1 the PWM of the fans increases to control temperature or humidity, depending on the mode in which it is.

four alarms were programmed consisting of high and low temperature, high and low humidity, when an alarm is activated either by high temperature or by high humidity the fans are activated with the maximum of PWM that is to say with the value of 255, so that the temperature or humidity decrease as quickly as possible and return to the set value. When the low temperature or humidity alarm is activated, the speed of the fans decreases so that the heat of the dry resistance concentrates more and the temperature increases, when the variables stabilize the PWM returns to its set value.

The completely finished model can be seen in (figure four). To control the incubator, an alphanumeric keyboard is used, to display the information an LCD screen was used, located on the breadboard but not on the model. When the incubator is connected, the screen shows a selection or start menu (figure five), from this menu the user will select the operating mode of the incubator either by temperature or humidity and enter the corresponding value between a range of 35 - 39 degrees for temperature and 45-85% for humidity, depending on the operating mode selected, the other variable behaves constantly, maintaining a set value of 50% for humidity and 37 ° c for temperature.




figure 4: Finished Model

figure 5: Start Menu and display of variables

Conclusions 

The current incubators must have the capacity to warm the newborn by means of modern control systems that prevent thermal oscillations of the machine and, therefore, the child. They should also have the alarm systems of excessive and low heating of the appliance and the child as well as cooling, detection of power and operation failures. have the ability to provide the desired humidity and the ability to easily clean both the accessories and all parts of the apparatus.


an important aspect is the easy access to child without the need to disturb him and the possibility monitoring.

In the construction of a real incubator, the quality standards are much higher, but the approach with the prototype developed establishes important bases to reach a team that meets the clinical standards.


BIBLIOGRAPHY

[1] Castrillón B., Ajito E., Barrios A., Solórzano E., Tarrillo J. Burbuja Artificial Neonatal (BAN). II Congreso Colombiano de Bioingeniería e Ingeniería Biomédica, Bogotá,

[2] Bayona D., García M., Sandoval J., Reyes F. Diseño e Implementación de una biomáquina para niños prematuros. II Congreso Colombiano de Bioingeniería e Ingeniería Biomédica, Bogotá

 [3] Zaragoza I., Gómez Y., Cabrera A. Diseño y construcción de un prototipo de incubadora controlado por lógica difusa. Memorias II Congreso Latinoamericano de Ingeniería Biomédica, 2001.

[4] Food and Drug Administration. Neonatal and neonatal transport incubators–Premarket notifications (1998)

[5] Pardell, X. (2019). Incubadora Neonatal - Apuntes de Electromedicina Xavier Pardell. Retrieved from https://www.pardell.es/incubadora-neonatal.html

[6] Zamorano-Jiménez, C., Cordero-González, G., Flores-Ortega, J., Baptista-González, H., & Fernández-Carrocera, L. (2019). Control térmico en el recién nacido pretérmino. Retrieved from http://www.scielo.org.mx/scielo.php?script=sci_arttext&pid=S0187-53372012000100007