OpenUC2 Online Tool - Turn on responses

Hi @benedictdied ,

We’re testing the encoders with the web tester (openUC2 WebSERIAL Demonstration) and the motors move with the encoder commands (AS 5311 linear encoder for real-time feedback loop | openUC2 Documentation). Unfortunately they move only in one direction, even when using both positive and negative position values:

{
“task”: “/linearencoder_act”,
“moveP”: {
“steppers”: [
{
“stepperid”: 2,
“position”: 5000, # tried +/- 5000 and both move in one direction
“isabs”: 1, # tried also relative with 0.
“cp”: 100,
“ci”: 0.0,
“cd”: 10
}
]
}
}

I wanted to debug the response of the esp32, but somehow I’m not getting any answer from the board. Do you know how to set it, so that we can get the answers from the tasks? We would like to get the response of:

{
“task”: “/linearencoder_get”,
“linencoder”: {
“posval”: 1,
“id”: 1
}
}


{
“task”: “/linearencoder_get”,
“linencoder”: {
“posval”: 1,
“id”: 1
}
}

Best regards!

Hey @mstingl thanks for letting me know. So the firmware from the website youseetoo.github.io is a stripped-down version which should run stably, where all additional debugging messages are turned off. The encoders are in a more-less experimental stage I would say, hence they are not fully tested yet. the last time I was working on them was a few month ago, hence I would recommend you to setup the build environment and get the firmware compiled with debugging information turned on. This should be relatively straightforward. I have added some documentation on how to do it here: UC2-ESP Firmware for the openUC2 UC2e electronics | openUC2 Documentation

The process is relatively straightforward:

  1. Install Platformio
  2. Clone Repo
  3. Adjust settings
  4. Compile upload

Let me know if this works for you. We would need another hackathon to get the encoder fully working. It’s not on my top priority list right now, sorry. :wink: