element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum reading Arduino csv data in app inventor
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 11 replies
  • Answers 1 answer
  • Subscribers 391 subscribers
  • Views 2153 views
  • Users 0 members are here
Related

reading Arduino csv data in app inventor

alacosta
alacosta over 10 years ago

Hope someone can help / advise me.

I have an Arduino program reading 5 different temperature settings as a csv file   this is set as csv to be monitored in a Windows PC program.

 

set as :-

 

// prints values to serial port  / PC Graphics Program
 
          Serial.print (water);
          Serial.print (",");
          Serial.print (WavMinn);
          Serial.print (",");
          Serial.print (panel);
          Serial.print (",");
          Serial.print (PavMinn);
          Serial.print (",");
          Serial.print (air);
          Serial.println ("");

I am new to App inventor , have mastered Bluetooth connection but now at a total loss of how to display  this data  on my phone (Android ) the more I try to find a way the more I get confused !!!

 

what I would like is to be displayed as :-

 

Solar Temperature  Monitor

Label    Data

Label    Data

Label    Data

Label    Data

Label    Data

 

Any advice on the App Inventor  reading a csv  data, setup or sample program would be greatly appreciated

  • Sign in to reply
  • Cancel

Top Replies

  • alacosta
    alacosta over 10 years ago in reply to neilk +2
    Hi Neil just to update and let you see the on going development from your advice. Have now been able to develop this further and will be adding more features in the future Data now life ... note todays…
  • neilk
    neilk over 10 years ago in reply to alacosta +1 suggested
    Hi John I think this will get you on the right track. First, a little Arduino sketch to deliver CSV data similar to what you want to do I don't bother connecting anything tp the Analog input pin - just…
  • alacosta
    alacosta over 10 years ago in reply to neilk +1
    Hi Neil thank you greatly for your input on this,, has given me a clearer picture re blocks in Ap 2 I will play with this over the next few days and let you know the outcome. For me all one big learning…
Parents
  • neilk
    0 neilk over 10 years ago

    Hi alacosta Sorry I haven't managed to reply to your comment on my blog, but I was intending to ask you to post this as a new question. Thanks for doing that image

     

    A bit more background would be helpful:

    1. Are the data items integer or floating point?
    2. How often do you want to update the display?
    3. What have you tried so far in App Inventor - screen shots of the code blocks.

     

    I'm pretty sure a solution can be found.

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • alacosta
    0 alacosta over 10 years ago in reply to neilk

    Hi Neil,

     

    First thank you for responding and sorry originally posted in the wrong area ( all new to me ! )

    At  the moment the Arduino  system is set to send date to  PC data graphic program which required it to be in CSV format  but if need to be changed to be able to be read via App Inventor that is not a problem.

     

    1. all the data values are integer temperature  readings.

    2. Display update ideally auto say every minute or  either by clicking a " Read Button "

    3. As I said in my query this is all new to me !  keep checking on  Google etc but  end  up not knowing where to start.

     

    What I would like is basic pointers of code blocks ..... have mastered basic BT connection !

     

    Advice on this would be greatly appreciated

     

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 10 years ago in reply to alacosta

    Hi John

     

    I think this will get you on the right track. First, a little Arduino sketch to deliver CSV data similar to what you want to do

    I don't bother connecting anything tp the Analog input pin - just let it float, it changes randomly. The 4 outputs are made different by dividing by 2,3 and 4.

     

    // Transmit CSV data to serial output for Bluetooth - Android demo
    //
    // Neil Kenyon
    // 27 July 2015
    //
    const int potPin = A0; 
    
    
    void setup()
    {
      pinMode(potPin, INPUT);
      Serial.begin(9600);
    }
    void loop()
    {
      int potVal = analogRead(potPin); 
      Serial.print("Value 1 = " );      
      Serial.print(potVal);
      Serial.print(",");           
      Serial.print("Value 2 = " );      
      Serial.print(potVal/2);       
      Serial.print(",");           
      Serial.print("Value 3 = " );      
      Serial.print(potVal/3);
      Serial.print(",");           
      Serial.print("Value 4 = " );      
      Serial.println(potVal/4);
      delay(2000);                   
    }

     

    Here is a screen shot of the code block I created to read the 4 data items in CSV and display them: I assume you are connecting your Android device happily via Bluetooth to your Arduino.

     

    image

    As you can see, the incoming data is converted into an indexed list and each item is then selected and displayed in its own label.

     

    The clock timer should be set at less than the delay time in the Arduino sketch - I used 1800 mS here and 2000 in the Arduino sketch.

    It seemed to work fine for me.

     

    I just noticed you wanted 5 data Items - I will let you modify to meet your precise requirememts image

     

    Hope this works for you.

     

    Don't be afraid to ask more questions.

     

    Neil

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • alacosta
    0 alacosta over 10 years ago in reply to neilk

    Hi Neil

     

    thank you greatly for your input on this,, has given me a clearer  picture re blocks in Ap 2

     

    I will play with this over the next few days and let you know the outcome.

     

    For me all one big learning curve often needs a door to be opened to see the light image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 10 years ago in reply to alacosta

    Hi John - you are very welcome.

     

    I look forward to an update image

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • alacosta
    0 alacosta over 10 years ago in reply to neilk

    Hi Neil

    just to update and let you see the on going development  from your advice.

     

    Have now been able to develop this further and will be adding more features in the future

     

    Data now life   ... note todays air Temp

     

    again thank you

    Johnimage

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 10 years ago in reply to alacosta

    Hi John

     

    Thanks for the feedback image looks very impressive - need a spell check on TEMPERATURES..........: image

     

     

    I assume the Water & Panel at the bottom of the display are App Inventor Sliders? Nice use of them.

     

    Glad I was able to help.

     

    Keep up the excellent work and continue to keep up us updated.

     

    Best wishes

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • alacosta
    0 alacosta over 10 years ago in reply to neilk

    Hi Neil

    as a follow on to  previous query, worked on your slider  blog (3 ) all worked  but I need to control 3 sliders to control in Arduino.

     

    have tried extending your initial guide but failing ... basic help / guidance be appreciated

     

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 10 years ago in reply to alacosta

    Hi John

     

    Glad my slider blog was some help image

     

    Probably a good idea if you re-post this question in the slider blog thread and include your App Inventor slider code and the relevant part of your Arduino sketch. I think I developed a 3 slider App which controlled a Tri-colour LED connected to an Arduino. I'll try and find it while you re-post, with your code.

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • neilk
    0 neilk over 10 years ago in reply to alacosta

    Hi John

     

    Glad my slider blog was some help image

     

    Probably a good idea if you re-post this question in the slider blog thread and include your App Inventor slider code and the relevant part of your Arduino sketch. I think I developed a 3 slider App which controlled a Tri-colour LED connected to an Arduino. I'll try and find it while you re-post, with your code.

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube