Menu

LCD turns off

SGL
2020-09-14
2020-09-16
  • SGL

    SGL - 2020-09-14

    Hi,
    Everything worked fine until version 294 but since version 299, LCD turns off sometimes few seconds after disconnecting from the windows app (ver. 2.4.5.1).
    (The Firmware is DRV8825HW203_299 and LCD is LCD1602)

    When restarting the app, I tried this:
    1/
    In the menu: Extra Settings -> Contrôller Display -> Enable LCD is still checked. If I click on the checked box, the LCD starts again (and naturally checkbox stay checked)

    OR
    2/ in the Settings tab: LCD Enabled is unchecked. I click in the checkbox and the LCD starts again.

    Another strange effect: after disconnecting from the app, sometimes the value of Focuser Position changes about few steps.

    Following my intuition, I tried with and without the Reset Prevention Circuit but it has no effect.

    I'll try tomorrow to (re)do a clean install after have properly cleared the EEPROM and I come back soon with news.

    Sébastien

     
  • brownrb

    brownrb - 2020-09-15

    A log file is always a good idea as it can help pin point issues.

    "version 299, LCD turns off sometimes few seconds after disconnecting from the windows app (ver. 2.4.5.1)."
    Any chance if a video showing the disconnect and lcd going blank issue. No commands are sent when the app disconnects, it just closes the connection. Is it causing a reboot or as you said, lcd just stops for a few seconds?

    I am not sure its the firmware. The code for the display is basically unaltered in both versions : I have just compared them, certainly does not appear to be anything different,

    It could however be in the Windows Application, as that has under gone some extensive rewrites.

    "Another strange effect: after disconnecting from the app, sometimes the value of Focuser Position changes about few steps."
    That I have not seen or has been reported so far. What sort of power supply are you using? It is fully regulated and clean 12V? I am thinking perhaps of a noisy power supply or a ground potential problem. Is the 12V ground also wired to the DRV8825 ground and the Arduino ground? Do you have any loose connections on the STEP, DIR and EN lines of the DRV8825?

    From a firmware point of view that should not happen. The position can only change as a result of a command. So something must be triggering it. Do you have a PCB or did you create your own, I would certainly check the large capacitor across VMOT and GND of the DRV8825, is this the correct value and is it close to the DRV8825 chip.

    The firmware changes between 294 and 299 would not account for this behaviour you are experiencing.

     
  • brownrb

    brownrb - 2020-09-15

    v294 in case you deleted it

     
  • SGL

    SGL - 2020-09-15

    Hi Robert,
    I think I found the problem. I made the PCB with a stripboard but I use an arduino pro mini 3.3v. As it don't have an usb connection, I wired a FTDI adapter delivering 5v on 3.3v by a jumper and it was set on 5v. Switching the supply to 3.3v and deactivating the LCD (powered on 5v) seems to solve the problem.
    For security I have reflashed the firmware and no more problems, even when disconnecting from the app.
    I will then replace the arduino with a 5v one.
    I joined the last logfile just for information.

    Thanks for your help Robert, and for your time spent on this project

     

    Last edit: SGL 2020-09-15
  • brownrb

    brownrb - 2020-09-16

    reminds me of one the "Tremors" movies when Bert said "critical need information" after he said he ran out of ammo killing the graboids.

    I do recommend certain components for a reason, in order to let others build a project without issues. I was not aware that you were using a different component which would affect the operation as well as me giving wrong advice nased on the assumptionm that you were using recommended project components.

    I am glad you figured it out.

    Regards
    Robert

     

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.