Announcement

Collapse
No announcement yet.

Declaring cool gauges on arduino ide

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

  • #31
    Also - you need to realise that, when you send from your Arduino, to get the needle on -90, you have to send the value 0, and to get the needle on +90, you need to send 180.
    This is because the data will be going from 0 to 180, to achieve your -90 to +90 range.
    So you will likely need to use a map type function, to translate your -90 and +90 range, to be 0 to 180.

    You can see this is the case when you use the GTX tool in Workshop4.

    Regards
    James

    Comment


    • #32
      My data when printed on the serial monitor displays a range of values from -90 to 90 and displays a value around 0 when the sensor is not moved,but the same 0 value data displays -99 on the gauges.
      Can I still change it from the arduuino setup and see the values changing accordingly?

      Comment


      • #33
        Hi Ahmit,

        As I mentioned in my last post, you need to map it.
        The serial monitor is just displaying the data, it has nothing to do with how the coolgauge reacts to that data.

        The coolgauge in your case will react from a number from 0-180, not -90 to 90.

        So, before you send the data to your coolgauge, you need to map it, with the map function

        http://arduino.cc/en/Reference/Map

        Regards
        James

        Comment


        • #34
          Oh oh I get it now! Aite thank you!

          Comment

          Working...
          X