Announcement

Collapse
No announcement yet.

Progress Bar Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Hi Tim,

    That is awesome. Thank you for letting me know, very nice work

    Paul

    Comment


    • #32
      I've tried using this but can't get my qrudino code to compile. Using

      genie.WriteObject(GENIE_MAGIC_OBJECT, 0, 1);

      I get a compile error,
      GENIE_MAGIC_OBJECT' was not declared in this scope.

      I've tried using both versions of the arduino library (the regular one and the beta).

      Am I missing something obvious or should I be doing it another way to write to magic object ?

      Comment


      • #33
        Ok so I've been through and looked at the code for the librarys, as well as compared the output from GTX tool while writing to the magic object. It seems it is using object ID 22.

        So I have changed from using:
        genie.WriteObject(GENIE_MAGIC_OBJECT, 0, rpm);

        to

        genie.WriteObject(22, 0, rpm);

        Which compiles fine and also the display works, but only for the first 1000 rpm or the first smart gauge, after that the first smart gauge goes blank and gets a red X through it.

        However it works fine with GTX tool. Obviously something to do with the way I am sending the data it does not like.

        Edit:

        Alright, nevermind I got it working. I sniffed the serial comms to the display from the arduino after sending the genie.WriteObject(22, 0, rpm); command. And found that instead of sending 22, it was sending 16. (dec / hex mixup). So send the decimal equivalent of 22 hex which is 34 instead.

        So sending genie.WriteObject(34, 0, rpm); And the meter is now working correctly finally.
        Last edited by orac12; 8 December 2019, 12:54 PM.

        Comment


        • #34
          Hello

          I am trying to do something similar but the screen refreshing is too slow

          Can someone help to make it work?

          I have tried and with smart gauge but again is soo slow.

          I have one video.
          https://streamable.com/a5i2tu
          Attached Files
          Last edited by bill.lask; 16 July 2020, 10:38 PM.

          Comment


          • #35
            Hi,

            Welcome to the forum.

            That does seem a bit slow.

            Could you please send me the project so I can test it here.

            You can zip your project by clicking on File then Zip project and attache the zip here of if you prefer, you can email it to paul at 4dsystems dot com dot au

            Best regards

            Paul

            Comment


            • #36
              Hello

              I have attached the project

              I have attached and the project with smart gauge(is a little bit faster but still slow and flickering)

              Thank you
              Attached Files
              Last edited by bill.lask; 16 July 2020, 10:49 PM.

              Comment


              • #37
                Hi,

                Thanks for sending the project.

                The slowness is caused just by the size of image.

                There is a way to speed this up by splitting the gauge into smaller sections and write a bit of code to deal with large or small changes where more than 1 set of images may change. Please bear with me while I attempt to do this and you can try it for speed.

                Best regards

                Paul

                Comment


                • #38
                  Hi,

                  I have attached a modified project with the gauge split into smaller sections. It still requires some work to make sure that a large jump doesn't leave a drawn segment but I hope that you get the idea.

                  I enabled transparency in the first 4 segments in case you intended to have some gfx directly underneath.

                  I hope this helps

                  Best regards

                  Paul
                  Attached Files

                  Comment

                  Working...
                  X