hi,
i am using mspexp430g2 launchpad. i connected ADXL335 sensor to that. i wrote a program for it but i don't know how to observe its output whether sensor is working in given direction or not???.... any advice would help me...
thanxx
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,
i am using mspexp430g2 launchpad. i connected ADXL335 sensor to that. i wrote a program for it but i don't know how to observe its output whether sensor is working in given direction or not???.... any advice would help me...
thanxx
Well, this question is so generic that I can't even name the number of possible answers, let alone picking one.
What information do you want to know? The exact sensor value or the direction of its change or whether it exceeds a certain limit?
For the last one, you can set a port pin high or low and either use an LED to show the state (on/off) or a logic analyzer or scope. For the first one, you can turn the value into a character string and send it through serial port to a PC.
the possibilities are endless. Between these two extremes, everything is possible. And depends on your requirements and capabilities (and coding skills)
hi ,
i am just asking how can i observe accelerations values in x and y directions??
which interface could provide me that???
Rohit Tiwari said:i am just asking how can i observe accelerations values in x and y directions??
which interface could provide me that???
Now sou surely learned about numbers and time at school, and then learned how to read a watch. Yet the question you asked refers to a just as generic task - with the difference that it is not taught at school.
First, there is no library that will allow you to read sensor data from any possible sensor through any possible interface and presents it to you. No generic interface or API where you just say 'look, here is the sensor 'xyz', present me the data I want to know". There's still a price set for creating the first "Tricorder".
However, all information you need is in the datasheets of the MSP and the sensor. The sensor datasheet tells you what electrical interface it provides, how to request the sensor data through this interface, and what the sensor data means. This is engineer's 101. Neither specific to MSP not difficult. That's why I told you this is a generic question.
Or in other words: answering your question in full detail would be doing your job for you, creating a complete solution from scratch. And, sorry, that's not the purpose of this forum nor is it my job.
If you are part through the project and encounter problems you cannot solve on your own by studying the datasheets or the MSPs users guide, and provide information about what you already have done and where you failed, I (and others) will be happy to support you.
But to technically answer your questions:
By taking a 2-axis acceleration sensor and interpreting it's values.Rohit Tiwari said:how can i observe accelerations values in x and y directions??
The interface that the sensor provides - as laid out in its datasheet.Rohit Tiwari said:which interface could provide me that?
**Attention** This is a public forum