View Poll Results: Do you think use it ?

Voters
0. You may not vote on this poll
  • YES

    0 0%
  • NO

    0 0%
Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By pierrotm777

Thread: RRDuino ARDUINO plugin for RR

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    3,108

    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
    Name:  duino.jpg
Views: 279
Size:  194.1 KB


    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 !!!)
    Name:  analog.jpg
Views: 204
Size:  200.2 KB

    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 Attached Files
    Last edited by pierrotm777; 09-23-2015 at 01:12 PM.

  2. #2
    Maximum Bitrate Dave One's Avatar
    Join Date
    Mar 2005
    Location
    Norfolk UK
    Posts
    605
    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.

  3. #3
    Newbie
    Join Date
    May 2011
    Posts
    12
    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

  4. #4
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    3,108
    Quote 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 !!!

  5. #5
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    3,108
    New version with new feature, see first post please !!!

  6. #6
    Newbie
    Join Date
    May 2011
    Posts
    12
    Merci

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

  7. #7
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    3,108
    Quote 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 !

  8. #8
    Maximum Bitrate Dave One's Avatar
    Join Date
    Mar 2005
    Location
    Norfolk UK
    Posts
    605
    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.

  9. #9
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    3,108
    Quote 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 !

Similar Threads

  1. Arduino PI?
    By Dave One in forum RR Plugins
    Replies: 4
    Last Post: 08-27-2015, 01:31 PM
  2. Can Arduino sensors be used with the FB v6?
    By Dave One in forum Fusion Brain
    Replies: 17
    Last Post: 10-20-2014, 06:05 AM
  3. Arduino Uno Kit
    By SNOtwistR in forum Classifieds
    Replies: 1
    Last Post: 02-07-2014, 10:08 PM
  4. Arduino as a touchscreen controller. Is it possible?
    By HiJackZX1 in forum General Hardware Discussion
    Replies: 2
    Last Post: 11-23-2012, 02:20 AM
  5. Arduino for OM - In progress
    By jmullan99 in forum OpenMobile
    Replies: 22
    Last Post: 03-13-2011, 05:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •