Coder Social home page Coder Social logo

Comments (4)

Maaarsl avatar Maaarsl commented on July 24, 2024

I bought a stronger 12V 4A power supply and a new KY-040 rotary encoder (since I thought the first one might be faulty). Now the display shows "Err1" immediately after I press the "move down" button during the calibration.

I found Issue #97 while searching for similar issues and increased the WATCHDOG_TIMEOUT to 15000 while testing (the motor is still attached to the table), now the motor is moving again and the Arduino won't reboot after I release the buttons but I am still not able to finish the calibration successfully. Here is what happens:

  1. Display is flashing with dashes, set desk to lowest position
  2. Pressed "tilde" until message '-rst' shows
  3. Set desk to highest position (display is showing 0000 the entire time and is not counting up)
  4. Pressed "tilde" until message '-rst' shows
  5. Display isn't flashing anymore and displays "0000", nothing happens if I press a button

aenniw commented this on Issue #97:

also could you try to compile with HALF_STEP as some of the KY-040 seems to skip steps...

Could you provide some logs if possible? compile with __DEBUG__

Where do I have to define HALF_STEP? I searched for HALF_STEP inside the entire repository and didn't find it.
How do I get logs after compiling it with __DEBUG__?

from arduino.

github-actions avatar github-actions commented on July 24, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from arduino.

Maaarsl avatar Maaarsl commented on July 24, 2024

I am still having the same issue. I connected the rotary encoder to a Arduino Mega and created a simple sketch to verify the rotary encoder is working. The rotary encoder does work (see picture below) so I think it is a software issue.

IMG_1259

Right after that I found the HALF_STEP constant inside Rotary.h and changed it from this:

// Enable this to emit codes twice per step.
// #define HALF_STEP

to this:

// Enable this to emit codes twice per step.
#define HALF_STEP

But even with watchdog disabled the movement stops instantly and the display shows Err 1. If I deactivate HALF_STEP again (watchdog is also disabled) I can move the table but I won't be able to complete the calibration process (like described above).

from arduino.

Maaarsl avatar Maaarsl commented on July 24, 2024

"Remove stale label or comment or this will be closed in 5 days"... 🙄

from arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.