Jump to content
43oh

fuel theft detection using msp430g2553


Recommended Posts

I want a help in my project fuel theft detection using uc msp430g2553.I am using level sensor (used in motorbikes), GSM to send message,and LCD to display . I have interfaced LCD and GSM individually. I don't know how to take input from sensor control GSM and LCD according to that.Can somebody help me. Thanks in advance.

Link to post
Share on other sites

First thing would be more detail on the sensor and more detail about what you are trying to do. What do you mean 'control GSM and LCD according to' the sensor? Are you trying to display a fuel level? Are you trying to send an alarm message?

 

To get you started, I'm going to guess the sensor is resistive with float, as they are quite common, or potentiometer with float, but there are other options. If it is, then the easiest way to read it is set up a voltage divider, one end to ground, the other to your processor supply, and the wiper to one of the analog capable inputs, and read the analog value using the ADC. The sample for reading the internal temperature of the MSP430 (see the LP documentation) is a good starting point for using the ADC, and there are a number of examples here in the archives, as well as lots of examples in the TI lit and around the web.

Link to post
Share on other sites

First thing would be more detail on the sensor and more detail about what you are trying to do. What do you mean 'control GSM and LCD according to' the sensor? Are you trying to display a fuel level? Are you trying to send an alarm message?

 

To get you started, I'm going to guess the sensor is resistive with float, as they are quite common, or potentiometer with float, but there are other options. If it is, then the easiest way to read it is set up a voltage divider, one end to ground, the other to your processor supply, and the wiper to one of the analog capable inputs, and read the analog value using the ADC. The sample for reading the internal temperature of the MSP430 (see the LP documentation) is a good starting point for using the ADC, and there are a number of examples here in the archives, as well as lots of examples in the TI lit and around the web.

My sensing unit is float type connected with potentiometer. Now i want to send a message and display comment ("level has gone below") if the level goes below a particular level. Also can u send me the links to study about this.

Link to post
Share on other sites

My sensing unit is float type connected with potentiometer. Now i want to send a message and display comment ("level has gone below") if the level goes below a particular level. Also can u send me the links to study about this.My sensor is like this shown in image.It is having two wire only. 

For-cfmoto-spring-CF650-Motorcycle-Acces

Link to post
Share on other sites

Two wire: rheostat (variable resistor), not a potentiometer. You will need an external resistor to make up a voltage divider. I would suggest uing one that i approximately equal to the full range resistance of the sensor.

 

I can outline the code as:

 

Read sensor using ADC

If reading is less than threshold, do whatever you need it to do

 

Not a complicated structure.

 

 

A starting point for the ADC is http://www.ti.com/lit/ml/slap115/slap115.pdf and http://coder-tronics.com/msp430-adc-tutorial/

 

There are a lot of others, including a number of university sites (BYU, Cornell) that have archived information.

Link to post
Share on other sites

Two wire: rheostat (variable resistor), not a potentiometer. You will need an external resistor to make up a voltage divider. I would suggest uing one that i approximately equal to the full range resistance of the sensor.

 

I can outline the code as:

 

Read sensor using ADC

If reading is less than threshold, do whatever you need it to do

 

Not a complicated structure.

 

 

A starting point for the ADC is http://www.ti.com/lit/ml/slap115/slap115.pdf and http://coder-tronics.com/msp430-adc-tutorial/

 

There are a lot of others, including a number of university sites (BYU, Cornell) that have archived information.

I have found the code of msp430g2253.Can i run the code of msp430g2253 to msp430g2553 uc .If not then what are the alternatives? or can u provide me an example with code to use the ADC?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...