Basically I need some guidance on how to do this codewise, which ardunio/microcontroller to buy that supports the alternation frequency (1000kHz) and is cheap.
digitalWrite(pin, 1); //turn on laserdelayMicroseconds(45); //waitdigitalWrite(pin, 0); //turn offdelayMicroseconds(5); //etc....
I'm trying to control the alternation output of two lasers. A working example - Laser 1 - on for 45us off for 5us then Laser 2 - on for 45us and off for 5us then Laser 1 back on for same times in as loop until I press stop.
PORTD |= (1<<4); //set bit 4, port DPORTD &= ~(1<<4); //clear bit 4, port D