TortureDildonics Test Board

So, after thinking about the last post, it seems like something I could throw together fairly quick, and put into one of my new "Favorite Enclosures Ever", these little tupperware type containers from Ichiban Kan.

IMG_0142

I can get 4 of these of $1.50, and they're just the right size for like, everything ever.

So, the board itself will just consist of an 2AAA Batteries, an ATTiny13 and a small transistor to deal with the power conversion. Outside of the usual passive components, that's it. The code so far is just:

#include <io.h>
int main()
{
    DDRB = 0xFF;
    PORTB = 0x00;
    TCCR0A = _BV(WGM01) | _BV(WGM00) | _BV(COM0A1);
    TCCR0B = _BV(CS00);
    OCR0A = 0x00; //Must figure out what to put here
    return 0;
}

So all I do is set up the PWM line and mark the port to output. Now comes the hard part: What functions to use, and what kinda timer to set them on...