laser hi, do you have code for laser behavior, for exemple choosing when it is on and off.
and do you have suggestion of laser and laser controller under 3$ .
thanks,
I prefer simpler answer.
laser hi, do you have code for laser behavior, for exemple choosing when it is on and off.
and do you have suggestion of laser and laser controller under 3$ .
thanks,
I prefer simpler answer.
Search ebay for "Arduino Laser Module" - this will turn up dozens of sellers with cheap red laser modules with 0.1" pin header for easy connection.
The connections couldn't be simpler - power, ground, and one wire to any GPIO pin. Turn the laser on by writing a 1, turn it off by writing a 0. You can use a PWM pin if you want.
hi, thank you it seem simple. is there exemple of codes for a precise way for the one an zeros, to be exactly in a precise time . for exemple 0,0001 sec. 'on' 0,0004 seconds 'off 0,0005 'on' , 0,00010 'off'
what should i check in the description of the laser to know the precision of the clock. or the delay for a successive 'on' and 'off' .
thanks,
Those cheap laser modules do not have any timing. It is just a laser. When the pin is high, it's on, when the pin is low, it's off.
If you want pulses of specific length, you'll need to do that in your Arduino code.
ex, 0.0001 second pulse (100 microseconds)
digitalWrite(laserpin,1);
delayMicroseconds(100);
digitalWrite(laserpin,0);
hi , thanks, i will see what i can do with that.