My current Arduino is being used for my Bluetooth Nerf Gun project that I made just for fun, so I had to use an emulator. I have used Servos before, but I've never used LDR (Light Dependent Resistors)/Photoresistors before, so I wanted to experiment with them for a while.

I started by trying to just change the Servo value to the analog photoresistor input, but then I realised I would get much better performance if I mapped the resistance values to 0-180 (the range of values for the servo), which made it much smoother.

Built With

Share this project:

Updates