For data logging type applications I've had great success with the OpenLOG. Just send it ASCII data over a UART line and it will write it to a .txt file on an microSD card.
For data logging type applications I've had great success with the OpenLOG. Just send it ASCII data over a UART line and it will write it to a .txt file on an microSD card.
Thanks!
Any sample PBP code?
for OpenLOG ?
Again, for simple datalogging type applications there's really no need for any sample code. Just send it ASCII data over a UART line and it will write it to a .txt file on a microSD card. It CAN do more than that if needed, I suggest you read the documentation. Sparkfun (who I believe created (and should have all the credit) the OpenLOG) have a tutorial but I'm sure you've found that already...
Their tutorial is quite weird.
I do need additional hardware or can hook it to say PIC16F886 directly?
Also, about Baudrate and other init options, it is not clear I need to do it each time on power up or just once?
No extra hardware needed.
The easiest way is to put a config.txt, containing your desired options, on the SD card. See the Configuration File section of the tutorial.
Thanks!
I never used serial transmission with PICs, so I need SEROUT/SERIN statements to be used, right?
Yes. SEROUT, SEROUT2 or HSEROUT/HSEROUT2 is what you want.
Bookmarks