Take data and draw graph

Discussion in 'General Programming Discussion' started by msener, Jan 26, 2015.

  1. msener

    msener New Member

    Joined:
    Dec 1, 2014
    Messages:
    6
    Likes Received:
    0
    Hi everyone,

    I want to take some analog values and I want to draw those values on graphs instantly.
    While analog values comes, graphs appear on the screen.

    How can I make this?
    Can you help me?
     
  2. fetcher

    fetcher Member

    Joined:
    Mar 9, 2014
    Messages:
    166
    Likes Received:
    20
    You'll need two programs -- a very simple Arduino sketch to run on the SAM3X, reading desired analog pins with analogRead and reporting them with Serial.print in a constant loop, then another on the i.MX6 side to take this stream of textual serial data (coming in on /dev/ttymxc3) and draw your graphs from that. Any necessary scaling, calibration, etc. could be handled by either CPU, as you prefer.
     

Share This Page