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 can Arduino communicate to SD card's database
  • 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 Not Answered
  • Replies 8 replies
  • Subscribers 393 subscribers
  • Views 2825 views
  • Users 0 members are here
  • sd/mmc
  • arduino
Related

can Arduino communicate to SD card's database

gunaseelan
gunaseelan over 11 years ago

Is there any library ,such that Arduino can communicate to SD card's database directly ??

  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 11 years ago +1
    What do you mean by SD card database ?? do you mean simply reading and writing to the card in various files on that card ? Please clarify Thanks
  • dougw
    dougw over 11 years ago +1
    If you have a powerful atduino it seems possible. Here is an example.... Adventures with Arduino Yun: Setting up the Yun to write pin data to an onboard database
Parents
  • dougw
    0 dougw over 11 years ago

    If you have a powerful atduino it seems possible.

    Here is an example....

     

    Adventures with Arduino Yun: Setting up the Yun to write pin data to an onboard database

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gunaseelan
    0 gunaseelan over 11 years ago in reply to dougw

    Hello Douglas ,

     

                          I have Arduino Uno and an interface of SD card ....with that is it possible ?

     

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to gunaseelan

    Simply put, probably not

     

    the suggestions above all leverage a Linux based extension to the board so the Arduino (ATMEGA328/2560 etc) is not managing the DB, it is simply sending commands to the Linux based system to do it remotely

     

    remotely being maybe an inch away to over the internet

     

    What you can do is have the data saved to a file on the SD card and have a PC/PI poll the Arduino for the data on a scheduled basis and load it into a database or even have the Arduino send it via wireless / ethernet / serial out to a listening device (Web server, PC, PI, Other) where it can be processed.

     

    at the end of the day, ask yourself, is the database actually necessary, what is your final output for a user, what are you trying to do with he data ?

     

    You simply have a separation between data collection and subsequent processing / viewing

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dougw
    0 dougw over 11 years ago in reply to gunaseelan

    As Peter points out people are not trying to jam full database functionality into arduino uno platforms because most applications can find better ways to meet their data needs.

    However, it is likely possible to implement a limited scale database on an arduino uno, as this CPU is more powerful than the original IBM PC, but you would might need to program your own database from scratch.

    There are many arduino examples of data collection to SD card with proper library support and even direct feed of data to external databases. If you need suggestions on how to solve or optimize your data requirements, you just need to specify what those requirements are - like how much data, what data rates, what processing is done on the data, how does the data need to be displayed, etc.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • dougw
    0 dougw over 11 years ago in reply to gunaseelan

    As Peter points out people are not trying to jam full database functionality into arduino uno platforms because most applications can find better ways to meet their data needs.

    However, it is likely possible to implement a limited scale database on an arduino uno, as this CPU is more powerful than the original IBM PC, but you would might need to program your own database from scratch.

    There are many arduino examples of data collection to SD card with proper library support and even direct feed of data to external databases. If you need suggestions on how to solve or optimize your data requirements, you just need to specify what those requirements are - like how much data, what data rates, what processing is done on the data, how does the data need to be displayed, etc.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to dougw

    Possible yes but not really viable as with such limited RAM even with a 2560, you would rapidly run out of space for real work. Collecting the data and even persisting it on an SD card for later processing is probably the best way to go as it minimizes the overhead on the sensor node and really it does not need to pretend to be a database.

     

    By the time you get enough RAM or storage to justify a DB then your probably already exceeding the price of a PI/RIOT/Other linux based system that could off load this for you and have room to be a master controller as well.

     

    I would definitely advise taking the distributed approach. IO/Sensing logging etc on a small cheap controller, then upload to a more capable board / PC for processing and display

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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