Lpd3806 encoder with nema34

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?

Hi "legendary28", welcome to the forum.

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

best regards Stefan

Sensor – LPD3806 – Optical Rotary Encoder with example code

coryjfowler/MCP_CAN_lib/examples/CAN_send/CAN_send.ino example

my suggestion:

  1. study and try example codes seperately
  2. apply knowledge learnt to combine codes and try new code.

if you still have issues please then share here and we can always try to help! :slight_smile:

hope that helps...

is an encoder going to provide any additional information that counting steps will not?

both and encoder and stepper motor are relative and need a calibration point to reset their position

i have read of high reliability situations (e.g. aviation) that use an encoder to verify the stepper motor position

why not report the stepper motor position after each step or commanded # of steps?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.