</>
I am having a problem since I cannot test my SD CARD module as I dont have a card reader (the one that you attach on your computer type of port) , I am afraid that I dont have enough time to buy that equipment since our defense is scheduled on friday. I want to ask you guys questions if data will still log on my sd card module even though my arduino is only connected through a power source and not on laptop?
Recommendations.
Read: How to get the best out of this forum
Use </> tags to post sketcks or printouts;
Post your scheme. Can be done freehand;
What products are you using in your project?
Your question is a little confused.
You have an SD card reader module. Right?
It is properly connected to an Arduino. Broker
It has an SD card plugged into it. Right?
You want to read the data from this Sd card using an external source to feed the arduino. Right?
RV mineirin
If it works when you're providing laptop power, it should work with another power source too, as long as it can provide sufficient current. I usually use a USB phone charger for standalone Arduino projects.
Yes, I have an SD card reader module. To explain my problem a bit further, I have 3 sensors (2 soil moisture sensor and a DHT22), my problem is that, I do not know if it is still acquiring the data from my sensors if my arduino is only connected to my 9v power source, and not to a laptop.
edit:
I need my sd card module to still record the data from my sensors even though my arduino is not connected on my laptop because I will be planning to use it on the soil, leave it for quite some time to record the soil quality.
Will it work even though it is not connected on my laptop? I am planning to leave my system (along with the sd card module) to gather some data on my soil for overnight and I dont want to leave my laptop with it as I will be acquiring some data outside of our house. pardon for my grammar as it is not my first language.
I don't see why it wouldn't work - the Arduino just needs power, it doesn't care where it comes from.
You could prove it to yourself though. Run your code with not laptop power for long enough to get some data recorded on the SD card. Then write another program that reads the SD card data and sends it out of the serial port. Run it with the Laptop connected and see what data you've got.
Depends on the Arduino that you use. If you e.g. use a 32U4 based board and you use while(!Serial), your program will hang there forever. 328P based boards or Mega will not suffer from that.
You are worrying too much, it's only Wednesday, and the best solution to your problem is to suck it and see. About the only reason for having an SD at all is that your gear is not connected to your PC, or may not be. In short, what you propose is reasonable and indeed normal. What is also normal that you are clearly not doing is including some SD reader code. There is a filedump routine in the SD examples which is all you need to check that your SD is working OK, and indeed should be included in your code for use at leisure when laptop, or other device, is connected - much better than winkling the card out.
All the above presupposes that by "9v power source" you actually mean a source of power, and not a 9v PP3 battery.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.