Generador regulado en Arduino para baño de ultrasonidos con radiador Lazhevna. Parte 1



Internet está lleno de artículos con esquemas push-pull, e incluso aquí en Habré , pero a la gente no le gusta coger un soldador, y mucho menos un osciloscopio.



Describiré el circuito ensamblado en módulos estándar para el reproductor arduino.



De los dispositivos, solo se necesita un probador (sí, incluso un DT-830), también se necesita un soldador, pero literalmente para 6 puntos: conecte el emisor y el transformador.



¡Atención! El artículo contiene escenas de violencia contra la electrónica yblasfemia ,

— , — welcome !



, , ? — L298N:





, , , .



, 20 3 , .



, 50-60 40, !



— - ( 0-3), , ;-)



, "".



, :





:



  1. 50-60W 28/40
  2. Step-UP 100/150
  3. — — Atmega328P — Uno, Pro mini, Nano .., , ;-)


— :





, — , ( ).



, , .



-, ;-)





, 2(3) , , .



, ( ), -:





, step-up L298N.



? ( ), .



"" +-500 .



:





, (5VEN), .



( ) — .



, , , .



- , ( ~200V) .



step-up ( 12, 14)



, "" .



:



byte TP = 0b10101010; // Every other port receives the inverted signal

void setup() {

DDRC = 0b11111111; // Set all analog ports to be outputs

// Initialize Timer1

noInterrupts(); // Disable interrupts

TCCR1A = 0;

TCCR1B = 0;

TCNT1 = 0;

//OCR1A = 200; // Set compare register (16MHz / 200 = 80kHz square wave -> 40kHz full wave)

OCR1A = 285; // Set compare register (16MHz / 285 = 56kHz square wave -> 28kHz full wave)

TCCR1B |= (1 << WGM12); // CTC mode

TCCR1B |= (1 << CS10); // Set prescaler to 1 ==> no prescaling

TIMSK1 |= (1 << OCIE1A); // Enable compare timer interrupt

interrupts(); // Enable interrupts

}

ISR(TIMER1_COMPA_vect) {

PORTC = TP; // Send the value of TP to the outputs

TP = ~TP; // Invert TP for the next run

}

void loop() {

// Nothing left to do here :)

}


"OCR1A = 285;" 28, — +-15 .



, ( ) :



— , ( ) — — , ( — ) (, 2/3 — ) ( ~36)



, , , , .



, "" .



, OCR1A — .



step-up ( 48 ).



, , .



, , , , :





, , , — 101.



"", 27500 28000.



, , .



— , " ".



UPD!



, " ", ;-)



110, :



, , (50 45), :



, , :



, , HamsterTime,





, ,

— , :





( ) .



!



,




All Articles