i have lpd3806 encoder and nema34 step motor with cwd860 driver. And i have to do steering wheel system using with them. It will be autonom.
encoder and nema34 connected each other, whenever nema34 spins , encoder spin at the same time.
So, i have to write arduino code that when nema34 spins right or left ( like wheels right or left) i have to get feedback from encoder to give message to the can bus network.I just want whenever nema34 spins ,get feedback from encoder.
How can i code like this ? Some examples?
there are a few things to learn about how to use this forum.
This forum can be a great source of help. If it really will be a great source of help depends on your behaviour.
You can increase the probability to receive answers a lot if you make it easy for other users to help you.
This means: if you use additional components provide links to the datasheets of all your components.
Show own effort by posting links that you have found through googling with example-codes.
With your first posting - at least to me - you gave the impression that you want to have a maximum of effort from other users with a minimal own effort.
I'm very sure that you are able yourself to type the words "Arduino code CAN-Bus" into google