Announcement

Collapse
No announcement yet.

RRDuino ARDUINO plugin for RR

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

  • RRDuino ARDUINO plugin for RR

    Arduino plugin

    Tested with an Arduino Uno

    You must install the .ino file into the Arduino with the Arduino IDE

    You must define the com port and baud rate settings into the .xml file

    Main screen
    Click image for larger version

Name:	duino.jpg
Views:	1
Size:	194.1 KB
ID:	2311445


    History:
    ******
    v0.0.4 23-9-2015
    - Add calculation on a duino LABEL (other is possible) (+, -, *, /, ^ and Modulo)
    With this feature, you can convert an analog value as LABEL by a calculation (Uno analog pins are A0 to A5 ,from 0 to 1024)
    examples:
    Code:
    DUINO_CALC;ADD;DUINO_AVALUE_1;0.01953125;2 	return the calcul on a label DUINO_AVALUE_1, DUINO_AVALUE_1 + 0.01953125 with 2 numbers after the dot
    DUINO_CALC;MIN;DUINO_AVALUE_1;0.01953125;2 	return the calcul on a label DUINO_AVALUE_1, DUINO_AVALUE_1 - 0.01953125 with 2 numbers after the dot
    DUINO_CALC;MUL;DUINO_AVALUE_1;0.01953125;2 	return the calcul on a label DUINO_AVALUE_1, DUINO_AVALUE_1 * 0.01953125 with 2 numbers after the dot
    DUINO_CALC;DIV;DUINO_AVALUE_1;0.01953125;2 	return the calcul on a label DUINO_AVALUE_1, DUINO_AVALUE_1 / 0.01953125 with 2 numbers after the dot
    DUINO_CALC;PWR;DUINO_AVALUE_1;3;2 		return the calcul on a label DUINO_AVALUE_1, DUINO_AVALUE_1 Power 3 with 2 numbers after the dot 
    DUINO_CALC;MOD;DUINO_AVALUE_1;2 		return the calcul on a label DUINO_AVALUE_1, DUINO_AVALUE_1 Modulo 2
    Particular example (read a voltage from 0 to 20V):
    Code:
      Vs = Vin * (R2 / (R1 + R2))
      Here R1 = 3300 ohms (3k3) and R2 = 1100 ohms (1k1), we get for Vin = 20v (maximum) :
      Vs = 20 * (1100 / (3300 + 1100)) = 20 * (1100 / 4400) = 20 * 0.25 = 5
      Vs = 5v for Vin = 20v, the maximum that can measure the Arduino's  converter  analog -> digital ( 5V supply of course) .
    
            +20V maxi
           -+-
            |
    ----.   # R1=3k3 = Orange Orange Red Gold
        |   |
      A1|---+
        |   |        
    Uno |   # R2=1k1 = Brown Brown Red Gold
        |   |        
        |   |        
        |  -+-       
        |  GND 
    
    NB: In this example, the LABEL will be DUINO_AVALUE_1
    Into the skin file:
    Code:
    L,148,311,87,24,255,0,0,16,"Arial:B","DUINO_CALC;MUL;DUINO_AVALUE_1;0.01953125;2|| V","CENTER",,"DS=2,2,0,0,0"
    
    where 0.01953125 = label value * (5.0 / 1024)) * 4.0 (!!! You can use dot or comma !!!)
    Click image for larger version

Name:	analog.jpg
Views:	1
Size:	200.2 KB
ID:	2311448

    v0.0.3 31-8-2015
    -Add read Digital input pins
    -Ckeck if com port is ready (Arduino connected or not)
    -Rewrite code

    v0.0.2 30-8-2015
    -Add read Analog input pins
    -Add servo possibility on digital pins

    v0.0.1 27-8-2015
    -Only DIGITAL output command accepted
    Attached Files
    0
    YES
    0%
    0
    NO
    0%
    0
    Last edited by pierrotm777; 09-23-2015, 12:12 PM.

  • #2
    I'll definitely try this in two months time when I'm back in the UK . Cheers

    Sent from my GT-I9505 using Tapatalk
    Vauxhall Astra SXi Car PC installed.

    Comment


    • #3
      Wow, what I need!

      Thank you.
      I was thinking about FusionBrain but your plug-in opens up possibilities

      Envoyé de mon Nexus 6 en utilisant Tapatalk

      Comment


      • #4
        Originally posted by Rollus.MkIII View Post
        Wow, what I need!

        Thank you.
        I was thinking about FusionBrain but your plug-in opens up possibilities

        Envoyé de mon Nexus 6 en utilisant Tapatalk
        Teint un Français ?
        Send me your return !!!

        I search a way for do an operation (calcul) from a label but EVAL don't run with labels , only in a command !!!

        Comment


        • #5
          New version with new feature, see first post please !!!

          Comment


          • #6
            Merci

            I will test in few weeks, my carPC isn't completly installed yet..

            Comment


            • #7
              Originally posted by Rollus.MkIII View Post
              Merci

              I will test in few weeks, my carPC isn't completly installed yet..
              I wait your comments !

              Comment


              • #8
                Right, I'm back in the UK now and keen to try this plugin. Is it just the UNO or can the NANO be used too?

                Regards,
                Dave
                Vauxhall Astra SXi Car PC installed.

                Comment


                • #9
                  Originally posted by Dave One View Post
                  Right, I'm back in the UK now and keen to try this plugin. Is it just the UNO or can the NANO be used too?

                  Regards,
                  Dave
                  Nano can be used also !

                  Comment

                  Working...
                  X