Menu

I2C LCD1602 Not displaying the second screen and Process Aborted Error when doing the TPoint calabration

2018-04-22
2018-04-23
  • Igor Hodoba

    Igor Hodoba - 2018-04-22

    Hi Robert,
    First of all I would like to thank you very much for the most wonderful project. It is owesome!!!
    I have build the focuser for my Explore Scientific ED80 based on the L298N shield using the Arduino Uno device. I have enabled temperature probe and this is displaying the corect temperature and position within the TheSkyX Pro using the ASCOM driver. I do not use any other options. There is only one minor issue with TheSkyX here, when plate solving (Tpoint run), i get an infrequent error of "Process Aborted" but if I select to continue with the run it works ok. Just wondering if you know what this is as its not apparent when I run my Moonlight Focuser on the Esprit 150 in both Moonlight and ASCOM configuration. My mount is Paramount MyT.
    Also problem two is of greater significance, I cannot enable the second screen on the IC2 LCD1602 . The first screen displays ok, all of the parameters are there and it updates all of the fields.
    I had a look at this part of the code but can't edentify anything wrong. Should I be looking elsewhere for the problem?, code below:

    ifdef LCDDISPLAY

    // see if the display needs updating
    long newdisplaytimestampNotMoving = millis();
    if ( ((newdisplaytimestampNotMoving - olddisplaytimestampNotMoving) > myfocuser.updatedisplayintervalNotMoving) || (newdisplaytimestampNotMoving < olddisplaytimestampNotMoving) )
    {
      olddisplaytimestampNotMoving = newdisplaytimestampNotMoving;    // update the timestamp
      lcd.clear();
      if ( MYLCDTYPE == LCD1602 )
      {
        if ( LCD1602Screen == 1 )
          displaylcdpage1();
        else
          displaylcdpage2();
      }
      else
      {
        displaylcd2004();     // update the LCD 2204 display
      }
    }
    

    Many thanks and best regards,
    Igor Hodoba,
    Sydney Australia

     
    • brownrb

      brownrb - 2018-04-23

      Recent updates to the SKyX are causing issues.
      The next firmware release should, along with the new ascom driver, fix this.

      The portion of the code you refer to is in Firmware 265.
      You need to make these changes

        if ( MYLCDTYPE == LCD1602 )
        {
          if ( LCD1602Screen == 1 )
          {
            displaylcdpage1();
            LCD1602Screen = 2;
          }
          else
          {
            displaylcdpage2();
            LCD1602Screen = 1;
          }
        }
      
        Firmware 268 will be avaialble soon
      
       
  • Igor Hodoba

    Igor Hodoba - 2018-04-23

    Hi Robert
    Many thanks for a quick reply. The problem with the I2C LCD1602 display has been fixed with the code that you had provided. I shall wait for the TheSkyX fix.
    Best Regards,
    Igor

     

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.