element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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 Arduino Project just not fully working looking for help.
  • 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 Verified Answer
  • Replies 34 replies
  • Answers 2 answers
  • Subscribers 420 subscribers
  • Views 4694 views
  • Users 0 members are here
  • uno
  • arduino
Related

Arduino Project just not fully working looking for help.

mntlvr.66
mntlvr.66 over 12 years ago

Hello

I am trying to build a Distance measuring device using an Arduino UNO with a I2C LCD and Wiznet 5100 Ethernet shield and SD all combined.

I have succeeded in the W5100 part but when I add the I2C LCD library and the Wire library for the LCD,the SD part of the Ethernet  shield no longer works properly , as far as the web page is concerned. I am using "ajax" and my SD to display a dial on the web page but the part that fails, with no error codes of any kind is the web page dial. The dial will not load from the SD card. I know that I am trying to use 2 SPI devices along with a I2c device but loading the wire and the LiquidCrystal_I2C libraries and then trying the program the display has no data and neither does the web page as far as the dial goes.

Can anyone give me some insight as to why the SRF05 and the W5100 and SD and LCD don't get along. If I rem out the Wire and the I2C libraries the web page works just fine.

I have attached 2 files for my project, 1 is the code and the other is the htm file for the gauge.

 

I have uploaded the working sketch as far as the Ethernet and SD is concerned but This is only part of what I want. I would like to add the I2c LCD with its libraries and still have the Ethernet part still work.

Probably the best way to see what issue I am having is to bread board this project for youself and see if you can make it work with Ethernet card and SD card and I2C LCD. If you get it to work like I am trying then please let me know.

Thanks for I can use the help on this one.

 

Problem now solved.

Thanks much for all the insights.

 

Message was edited by:Bob Warren

  • Sign in to reply
  • Cancel

Top Replies

  • e14 Contributor
    e14 Contributor over 12 years ago +1
    I think this thread is a lesson to all of use really. Back in the day when programming on 286 based PC's with 640Kb RAM, the memory problem was forever an issue. My suggestion is to always use the "example…
Parents
  • e14 Contributor
    0 e14 Contributor over 12 years ago

    I think this thread is a lesson to all of use really. Back in the day when programming on 286 based PC's with 640Kb RAM, the memory problem was forever an issue. My suggestion is to always use the "example" libraries as just that - examples. I think my approach to this project would be to create bare-bones libraries from the examples for each item connected to the Arduino i.e. the end result libraries only do what you require as a maximum - no bells and whistles. It may be a bit of a pain to start with but pays dividends when trying to get the solution working as a whole as you have no doubt found. Besides, just imagine how much your personal knowledge and programming skills will improve!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • e14 Contributor
    0 e14 Contributor over 12 years ago

    I think this thread is a lesson to all of use really. Back in the day when programming on 286 based PC's with 640Kb RAM, the memory problem was forever an issue. My suggestion is to always use the "example" libraries as just that - examples. I think my approach to this project would be to create bare-bones libraries from the examples for each item connected to the Arduino i.e. the end result libraries only do what you require as a maximum - no bells and whistles. It may be a bit of a pain to start with but pays dividends when trying to get the solution working as a whole as you have no doubt found. Besides, just imagine how much your personal knowledge and programming skills will improve!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago in reply to e14 Contributor

    Does re-enforce the issue about what you develop on vs what your deploying to, in this case you can use bloated libraries for development on a Mega2560 but then trim the fat to deploy to a lesser mega 328 (Uno) assuming it is close and your not using all the IO. A 2560 allows additional debug while in that phase, I have been in situations where even adding the free_Ram() function was the cause of me blowing the stack, going to the 2560 alowed all the checks to be completed and issues resolved before final deployment to a 328

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 12 years ago in reply to e14 Contributor

    michael

    You are quite right, unfortunately the Arduino IDE tells you how much memory your sketch uses.

    This leads you into a false assumption that you are fine.

     

    Because the platform is so easy to use, many 'non-programmers' use it, and will get caught out.

    I was the same, now I'm aware it could be an issue, and how to get around it.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mntlvr.66
    0 mntlvr.66 over 12 years ago in reply to mcb1

    Mark/Peter/Michael

    I thank all of you for the in sites to my issue. I am going to try this out on a mega 2560 as soon as I get some time.

    I will also trim the libraries I am using and see if that helps.

    Again ,thank you for your valuable time in trying to help me solve an issue that I would have probably not discovered for myself as quickly as you did.

    Bob image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago in reply to mntlvr.66

    I don't know if you noticed but I did also provide my code, you may have to view the thread in the main view, it does not show if your simply looking in your inbox

     

    ie click this http://www.element14.com/community/thread/33961/l/arduino-project-just-not-fully-working-looking-for-help

     

    good luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • mntlvr.66
    0 mntlvr.66 over 12 years ago in reply to Robert Peter Oakes

    Peter

    You are correct along with Mark.

    The problem was memory, so I cleaned up some libaries and some of my code and built this project on a mega 2560 along with a serial 16x02 LCD and a SRF-05, but a SR04, will work also.

    I have had the project running now for several hours. All is well. I think I will try sometime later to see if I can get this down to where a UNO will work correctly.

    Again Thanks

     

    Bob Warren  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago in reply to mntlvr.66

    nice to know it all worked for you

     

    Good luck

    • 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube