need code one servo and one dc moter (L298n)
aruino
- There are servo examples (sweep and know) in the IDE. You can start with that.
- You can find examples for the L298 on the web. Try them till you have one working.
- For the nRF24 you can look at this tutorial; I'm sure that you can find more on the web.
All the above just with one individual component, don't try to combine them while getting the experience.
Once you have it all working and understand it, merge them into one sketch.
That sounds like you purchased some parts and do not know how to use them! 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 preliminary code, then post it along with an explanation of what’s working and whats not working properly.
- 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.
You also need power supplies for the units. An Arduino is not a power supply, especially for any thing like a motor. A servo has a motor.
You’re right
I am beginner I purchased only part I don’t have knowledge how to use
The best thing you can do is get a copy of the Arduino Cookbook and read it. Do some of the projects if they interest you. You will also find out the L298N is an old, inefficient obsolete part. It will drop about 3V before going to your motor.
Thanx