how to configure PID of 35 rpm motor with photoelectric sensor, with motor has 1 obstacle 1 rotation
Perhaps read the pinned post 'How to get the most from the forum' first. Your post does not contain anything we can work with.
The ideal is for you to build something that almost works, then post all your code in code tags after doing a Tools/Auto Format then also post a photo of a hand drawn wiring diagram.
NOW someone can help.
That sounds like an interesting project that could be a lot of fun! However, please keep in mind that we are not a free design or code-writing service. We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with an explanation of what’s not working properly. There is also a for hire section if you want to pay for it.
- Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
- Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
- Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
- Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum.
@sonofcy is correct, I suggest you do as he has asked, you will get a much better answer.