Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 11 months ago.
Problems with SSI to read absolute encoder
Hi all,
I am very new to mbed and cpp in general so apologies for the beginner questions - I've done my best to find out answers online before asking!
I have a NUCLEO - F746ZG which I am using to measure the position of a Maxon 16 EASY Absolute encoder with the SSI interface.
I understand how the SSI system works and consequently have my Data, Vcc, GND & CLK pins connected to the nucleo board. Unfortunately I do not have access to an oscilloscope at the moment so the best I can do is output data to teraterm.
My full code can be found here;
[Repository '/users/SGLaws/code/1fyp-encodertest/' not found]
From teraterm I am not getting any interesting data - the data outputted is either 8191 (0b1111111111111), or 4095 (0b1000000000000).
At this point I am entirely bamboozled as to why I am not getting any data.
Note that I realise that the outputted data will be gray code so will not make a lot of logical sense in decimal form at the moment - once I get meaningful data I will worry about converting the data to binary.
Thank you very much in advance for any assistance!
Stephen
1 Answer
5 years, 8 months ago.
Hello,
I have more or less the same problems. I need 24 bits pack reading in the SSI port. But library only let me get 12 + 12 bits pack. That's not works. Because between executions time out of encoder is exceeded and the encoder send me 2 times the same information. Not 2 pack split in 2 parts.
Did you find any solution?