Get the SoR Robotics Android App on Android Market for FREE. See this forum post for details.
0 Members and 1 Guest are viewing this topic.
[...] The whole cylinder would freely rotate until the point aims at the light source. I don't care that it would only rotate 180 degrees.
[...] I don't have any experience with arduino. In fact, I don't even have one yet. I ordered it, along with the servos, a day or two ago and am patiently waiting for the packages. Any input would be appreciated.
im also not sure if i'll have enough power. i have a dueminalove hooked up via usb to a usb wall wart. the only things drawing power are a NES controller, two Hitec 311 servos, and a cheap red laser. if necessary, i can hook up some AA batteries directly to the servos, though i'm not sure if i should use 3 or 4 (4.5V or 6V) and i have no voltage regulators.
oh, and do you think there will be enough power for the laser? its a cheap red one. i also have a green "<5mW" but i wouldnt feel very comfortable using that one (it was $60!)
can i use a pwm analog output pin on an arduino duemilanove and use analogwrite(pin,200) ? or any other pwm value
so.....I have only a very specific PWM range in which I can safely power the laser?
if so, how would I go about finding it? i assume it would be a value which yields 4.5V (3 button cells). pwm values go up to 255 which corresponds to 5V. therefore 230 should put out 4.5V , right?
btw I apologize if some of my questions aren't very clear, I'm just a high school kid who recently took this up as a hobby. going to major in electrical engineering in college starting next year
i just want the beam to light up. i only wanted pwm because i dont want to send 5V through a 3 button-cell LASER (4.5V), as that may burn it out, but as you said, 5V would still be sent through it.
through your previous suggestion, a transistor would work,
but i dont have any. All I have are five 100ohm resistors, five 1K resistors, five 10K resistors, a 1K potentiometer, and a 10K potentiometer. Unfortunately I don't have access to components, and anything ordered online would take forever to arrive.
cant i control the LASER by connecting it to a digital output pin on an arduino?i can just code a button to turn the output of the pin (5V) on/off