[Help] Read magnetic encoder

Status
Not open for further replies.

shmulik

Member
Hello,
I have an absolute magnetic encoder (MB029+MBA029) that i want to buy (specific this model due to its small size and high resolution).
I want to read its position with a Teensy 3.2, and if its possible with no extra parts.
The encoder comes with 3 optional communication interfaces: (Datasheet P.17)
  1. Asynchronous serial RS422(UART)
  2. SSI
  3. BiSS-C

As i understand only the "Asynchronous serial RS422(UART)" can be used with Tensy with no other parts like communication converots.
In the datasheet there is an explanation about this pins and how to request the encoder position.
But i still have truble with how to wire both of them:
The encoder has 8 pins: (Datasheet P.16)
  • Vdd - 5V
  • GND
  • Temp sens 1 & 2
  • RX +
  • RX -
  • TX data out +
  • TX data out -

And there is an explanation which command do i send to get the info(pos/speed/temp/..) that i need (Datasheet P.18 bottom).

I dont understand where do i connect the RX+/- TX +/-
and which serial i send / read the indormation from the sensor.

Download the Datasheet


Best regards.
 
Looks like the RX and TX signals are symmetrical (thus the +/-), similar to RS485, which would imply the need for an extra transceiver IC to desymmetrize these signals.
 
Normally, for setting up a professional project, you would use the Sparkfun breakout for prototyping on breadboard until everything works well. Then, you’d design, test and (mass) produce your own circuit board where you solder the individual components and with a socket for the Teensy.
 
RS422 and RS485 are identical when it comes to set up 1:1 connections over short distances. The differences are that RS422 is exactly limited to that while RS485 allows up to 32 transmitters on one line and that RS485 allows link distances > 1km depending on the baud rate.

Thus, that spark fun board should normally do the job. It's worth trying it. I suggested the SN65HVD379 because it's one transceiver chip which I know and which is suitable for 3.3V operation with the Teensy. But as always, many routes lead to Rome.

התקדמות היא שילוב של מחקר תיאורטי וניסוי מעשי
 
Status
Not open for further replies.
Back
Top