domingo, 7 de junio de 2015

Convertidor DC-DC 5V a 100V


#include <avr/interrupt.h>

// This is using the 16-bit timer.  10-bit pwm

void setup() {
  TCCR2B = TCCR2B & 0b11111000 | 0x01;
  pinMode (10, OUTPUT);
  pinMode (9, OUTPUT);

}

void loop()
{
 analogWrite(10,155);
 analogWrite(9,205);

}