Help with USB memory stick datalogger
Jemartin
Posts: 9
Hello,
So, I'm trying to get the USB memory stick datalogger(27937) to work with my propeller chip. Where to start...
So far Ive tried·a few different·objects from the obex·to communicate with it. Ive tried both UART and SPI drivers. So far none of them have gotten through to the USB stick.
With the DataloggerSPI_test set the way it looks the pin assignments are supposed to be·I just get the intro·message and the red light on indefinetly. With the In and out pins flipped I get the intro message and "No disk present. Please insert Disk." and the red light on.
With AutoDatalogger_test I always get:
"AutoDatalogger Test ...
Starting Test..."
with the alternating red and green lights.
Basically the same sort of thing from any object I try; it never gets past the initialization parts in the beginning.
I've also tried a few different USB sticks of various sizes from 32MB to 4GB big. Ive tried formatting the drives to both FAT32 or FAT(default) and also the allocation size at the default and also at 512 bytes(which one of the objects suggested).
One thing I am a bit worried about is that I may have tried running it with the pin assignments for·IN and·OUT flipped. It may have also been running with a SPI object and the datalogger's jumper on UART. I dont know if either of these situations (or any?)·can damage the datalogger?
As far as the hardware goes I didnt put it together, but I traced the circuits and I dont think that there are any resistors between the prop and the datalogger. I've read both ways; that it does or doesnt need any resistors. I havent tried to put any in because the circuits have been wired together until the datalogger so there isnt really an easy way to add resistors. Ive checked continuity between the prop and the pins on the datalogger and it all looks fine.
Thats everything I can think of right now. Im new to microcontrollers, so Im lost about what to do. I got it to read in data from adc's and I was hoping that·getting the USB working would go as easily.
Any help would be greatly appreciated.
So, I'm trying to get the USB memory stick datalogger(27937) to work with my propeller chip. Where to start...
So far Ive tried·a few different·objects from the obex·to communicate with it. Ive tried both UART and SPI drivers. So far none of them have gotten through to the USB stick.
With the DataloggerSPI_test set the way it looks the pin assignments are supposed to be·I just get the intro·message and the red light on indefinetly. With the In and out pins flipped I get the intro message and "No disk present. Please insert Disk." and the red light on.
With AutoDatalogger_test I always get:
"AutoDatalogger Test ...
Starting Test..."
with the alternating red and green lights.
Basically the same sort of thing from any object I try; it never gets past the initialization parts in the beginning.
I've also tried a few different USB sticks of various sizes from 32MB to 4GB big. Ive tried formatting the drives to both FAT32 or FAT(default) and also the allocation size at the default and also at 512 bytes(which one of the objects suggested).
One thing I am a bit worried about is that I may have tried running it with the pin assignments for·IN and·OUT flipped. It may have also been running with a SPI object and the datalogger's jumper on UART. I dont know if either of these situations (or any?)·can damage the datalogger?
As far as the hardware goes I didnt put it together, but I traced the circuits and I dont think that there are any resistors between the prop and the datalogger. I've read both ways; that it does or doesnt need any resistors. I havent tried to put any in because the circuits have been wired together until the datalogger so there isnt really an easy way to add resistors. Ive checked continuity between the prop and the pins on the datalogger and it all looks fine.
Thats everything I can think of right now. Im new to microcontrollers, so Im lost about what to do. I got it to read in data from adc's and I was hoping that·getting the USB working would go as easily.
Any help would be greatly appreciated.
Comments
Try the http://obex.parallax.com/objects/542/·DataLogger_UART object. I use this regularly these days in a {C328 camera / uOLED128 / MLX90614 / Datalogger} project without any problem.·It is practically bulletproof, but not wireing-proof. If it will not work at your site, please post the picture of your circuit, to find the problem.
Cheers,
Istvan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Intentionally Left Blank
Here are the pin assignments from a working Camera/MLX90614/uOLED/DataLogger project
and you can see the schematics in the 1st attachment. The other attachments show the actual connections.
@koze85
Thanks for using the driver. OK. Let's make a lite version. Let me know what are the basic features useful for your application and I can help by making a Lite version of the DatLogger UART object.
Cheers,
Istvan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Intentionally Left Blank
cessnapilot : I want to use datalogger with sensirion and a tvgraphics· driver to display daily temperatures and save them to the datalogger (record, time, temperature humidity) and transfer same values from a distant propeller with RF to the same csv file ( temperature2, humidity2)·, so i only need basic csv writing and reading lines. THANK YOU VERY MUCH! (It is a Uni project).
Go there and get BST for your platform. It has several options you can check for optimizing the compiled file, very simple to use and will chop off a lot of longs from your program. Use "Generic Safe Optimisations" and "Eliminate Unused Spin Methods"
You don't really have to use an obj. I use the Vinculum and VMUSIC firmware and it is fairly easy to make up your own read/write methods to accomplish what you want to do. Basically you just open a file to read or write, then write/read the data and close the file. You may be having an issue with which protocol to use for communication. I recommend ECS and HEX which is the default boot up ( at least on VMUSIC it is).
You can also use a 4port Full Duplex Serial object, which will allow you to use 4 different sets of i/o on one object, this will save you some room also. See the obj xchange for 4port serial. Make sure you are at the right baud.
I highly recommend you download the Vinculum manual and read it over.
Some examples you can use without an object:
Post Edited (Todd Chapman) : 6/5/2010 6:46:39 PM GMT