There is no specific inspiration, I just thought of a device that controls some sort of giant knife that cuts things horizontally by a potentiometer and for safety purpose, it wont work in the dark and when it does work there will be an RGB LED which will light with code color according to a range of angles of the servo motor.
I used it to design the circuit and schematic
I used it to code the Arduino
I used these Physical components:
1 Servo motor
3 resistors 220 ohm
1 RGB LED
1 Potentiometer
1 LDR sensor
Jumpers
1 Arduino Uno
1 Breadboard
I used Fritzing to draw the circuit and the schematic, to make sure everything is fine.
and then I searched for the code and it is a combination of different projects.
I used the physical components I have mentioned before and connected them by following the circuit schematic as shown in the video.
Here is the final result. :))))))))))))
at first, I wanted to use this instead of the module, so I searched about the connection and testing and I found this
https://maker.pro/arduino/tutorial/how-to-use-an-ldr-sensor-with-arduino
but when I was trying to test it, it keeps gives me 0 as the intensity of light, I guess it is something that's regarding the 10 k ohm resistor that I don't have.