Arduino to MySQL

Discussion in 'General Programming Discussion' started by Mu.Pathma, Feb 23, 2014.

  1. Mu.Pathma

    Mu.Pathma New Member

    Joined:
    Jan 26, 2014
    Messages:
    3
    Likes Received:
    0
    Hi,

    I need to get read data from MqSQL to Serial Port.
    Thought this can be done using Arduino, but I could not locate any example.

    Can anyone shade some light for me on this.

    Mu.Pathma
     
  2. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    You can install PHP on the UDOO (there is some tutorial) and then you can read the arduino sensors from PHP using the pilot.ino sketch, here:

    php-arduino-bridge-any-other-script-t650.html

    You may find some example of sending data to a remote server and writing it to mysql tables in the git repository.

    Have fun,

    Francesco
     
  3. extream96

    extream96 New Member

    Joined:
    Jun 27, 2014
    Messages:
    48
    Likes Received:
    0
    You can comunicate with the php through the serial, exist a php library for settings the serial parameters, and with the php you can use MYSQL query to use the database.
    You can install php with tasksel, and phpmyadmin like in normal pc.
     

Share This Page