Menu

Dircetion-LED

2017-08-18
2017-08-18
  • Andreas Exeler

    Andreas Exeler - 2017-08-18

    Hello Robert,
    the Direction-LED´s are bright at power up, but when the Stepper is running, the LED´s is no longer bright, almost not visible.
    I use the OLED with Rotary-Encoder.
    Is this normal?

    Thanks for support.

    Andreas

     
  • brownrb

    brownrb - 2017-08-18

    Hi Andreas
    Yes, this is normal. On power=up, the LEd are energised at the start of the setup() method and then turned off at the end of the setup() method - which can be anywhere from 1-3s. So good brightness.

    When stepping a motor, a pulse is sent to the stepper. This pulse is around 2 microseconds long. So the sequence is turn led on, send pulse of 2 us, turn led off - hence led is very short burst and not much brightness.

    Regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2017-08-19

    Hi Robert,
    thanks for the quick Info.
    One more question, The led also very dark when the Stepper moves eg. 1000 Steps, the Move-Time is about 2s, but no brightness. Can i solder a Condensator to strech the pulse for the LED, or can you programm a "Direction-Info" on the OLED?

    Best Regards
    Andreas

     
  • brownrb

    brownrb - 2017-08-19

    Hi Andreas
    You should not need to. I do not know how you connected your LED, using a series resistor? Or did you use a pre-wired LED? If you used a resistor it should be about 470 ohms? Or perhaps you used 12V LED instead of 5V LED for the direction buttons?

    In long moves it is equivalent to the LED being PWM'd, thus it should be bright. Remember it is being pulsed every 2uS with about a couple of milliseconds delay between pulses. This is equivelant to close to being ON, ie; full brightness. Hence, I suspect a resistor issue limiting current.

    For the OLED, if you have enabled the update position when moving checkbox on the extra settings page before connecting to the controller then you will see the position being updated on the OLED.

    I am reluctant to add more info the OLED, not because it cannot be done, but because any writing to the OLED during a move has a significant impact on speed - it takes a long time to write to the OLED display because it is an I2C device.

    Please let me know what you find.

    Regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2017-09-03

    Hello Robert,
    i will use some other LED for the direction, the OLED is OK as it is.
    So, it´s all OK. Thanks for your help.
    Best Regards
    Andreas

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.