Also what part of make the PWM frequency higher do you not understand?
AWOL:
You could change the millisecond delay to something shorter.
Maybe a few tens of microseconds?
That would be great. How do you do that? I've only ever heard of the delay() function.
There's a really useful reference section over at the main site.
Grumpy_Mike:
Also what part of make the PWM frequency higher do you not understand?
The problem with PWM is, as I explained earlier, if you use analogOut(laserPin, 10); for example, its on for 10 clicks but off for 245 clicks! That's a big problem
No you do not understand.
You use a PWM value of 128 BUT you change the PWM FREQUENCY!!!
Grumpy_Mike:
No you do not understand.
You use a PWM value of 128 BUT you change the PWM FREQUENCY!!!
ooooooohh..
This works:
void loop()
{
delayMicroseconds(100);
PORTD += B10000000;
}
If the value is too small it becomes a solid line. Probably because the wave isn't very square. Fixing that though is over my head.