Jump to content
joro1881

MSP430 university project

Recommended Posts

- MSP430G2553
- LCD - DEM16216SYH      // connected in 4bit mode
- DS18b20                         //connected in external supply, 1-wire protocol
- PTD                                //connected in 3 pins
- keyboard 3x4                  // connected in 4 pins 
- buzzer                             // connected in 2 pins

I have problems with my project principal, who don't really help me. I have no idea how to construct this project in software base. 
I really will appreciate some help, like advise about the approach. I have the hardware, I have idea how to connect it, I read about that, but the connection depends more or less from the software code. I am not so good to programming a microcontroller. I need some examples, which will work and i can learn from them and developed the whole project on my own. I found for start lib_ds18b20, I plan to connect the sensor + display to MSP430 and try run them with some code examples, may be. I will have work during the week, but next weekend I will spend it entirely to do this. 

post-36014-0-79858800-1391376066_thumb.png

Share this post


Link to post
Share on other sites

See my post in projects for an example using ds18B20. Not the most beautiful code, but does the job. The portions that deal with reading/controlling the ds18B20 will hopefully give you some guidance. I DO NOT recommend copying as presented. The types are not ideal, the low level functions should be inlined, and, for a single sensor, things can be streamlined by eliminating the channel bitmask.

 

I would also question how you connected the keypad. What are the resistors for? With your row and column connections sharing pins, what will happen if you press the '1' key?

 

If you borrow code or schematics, don't neglect to reference the source clearly. It is for your benefit, so you will know where to go if you need more information later, as well as good moral practice.

Share this post


Link to post
Share on other sites

Just a couple of quick observations of your circuit -
Your multiplexing of the keypad won't work - there is no way to detect 1, 5 & 9 buttons. With care you can share the keypad verticals or horizontals with the LCDs data lines.

The LCD module uses D4-D7 in 4 bit mode and D0-D3 should all be grounded.

The RTD connection doesn't look right either - hard to tell without device specifics, but whole way it is connected to the op-amp, and the way the + & - inputs of the op-amp go to the MSP430 don't look right for a device that is normally resistive.

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

I'd be more worried about the fact that you're on a University course that obviously involves microcontrollers and you say you aren't good at programming microcontrollers.

 

Everyone on here is very helpful and if you're stuck on something specific then it's a great place to get some advice. However, getting other people to do your work isn't really fair. I'd suggest you start with your textbooks. If your project principal isn't very helpful then I'd suggest asking him again. If he's really refusing to teach you then let the university know.

 

What does everyone else think? Am I being too harsh?

Share this post


Link to post
Share on other sites

@fred   :

 

no, not harsh; quite sage in fact.

 

'give a man a fish, he eats for a day; teach him to fish, he eats for life'

 

 

 

@joro

 

energia is very useful for developing code that works well.     but, we still don't know what that project should accomplish.

Share this post


Link to post
Share on other sites

Yea guys you are right, i didn't wrote here to search somebody to do my job. Exactly because I learn the university will not teach me, I must teach myself. I take few courses for programming with C# and now working, but only that project left from the university, however I will be active at the weekend and work on it, also i will check to the new users. 

So, I must start topic with specific question or issue, not so common. I am sorry may be i should move the topic to the new users.

Share this post


Link to post
Share on other sites

Yea guys you are right, i didn't wrote here to search somebody to do my job. Exactly because I learn the university will not teach me, I must teach myself. I take few courses for programming with C# and now working, but only that project left from the university, however I will be active at the weekend and work on it, also i will check to the new users. 

 

So, I must start topic with specific question or issue, not so common. I am sorry may be i should move the topic to the new users.

Welcome!

You are good for now. Keep us updated on your progress.

 

Also, have a look at Energia, as others have stated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×