frozencarbonite 4 Posted January 3, 2011 Share Posted January 3, 2011 Hi, I have been using the Arduino for some time now but recently bought an MSP430 Launchpad and want to start learning to program it. I would like see some basic examples similar to those included in the Arduino IDE. I would prefer that they are small and not part of a larger project. For starters personally I really would like to see a small example program that reads the analog value of a 10k pot and increases or decreases the delay of a flashing LED. I would also like to see some code that shows how to configure an existing button on the board to start the LED flashing when pressed. The code I just mentioned should be separate snippets and only focus on the main concept so the latter would use a fixed delay amount instead of combing it with the analog read example. I think it is better for beginners like me if you not get too carried away and make a more complex example. I know it's temping to make the analog input pot example dim an LED with PWM but I think PWM should be a separate example. Let us students put what we need together If anyone can help me here or point me to the right site I would appreciate it. Quote Link to post Share on other sites
cde 334 Posted January 3, 2011 Share Posted January 3, 2011 http://processors.wiki.ti.com/index.php ... _Community frozencarbonite 1 Quote Link to post Share on other sites
simpleavr 399 Posted January 3, 2011 Share Posted January 3, 2011 i found that trying the sample ti codes benefits me the most, most examples are less than 50 lines of code and well commented. i tried almost all examples and start combining some to see how things work. http://www.ti.com/lit/zip/slac463 http://www.ti.com/lit/zip/slac467 this family guide is also a must to read. http://www.ti.com/lit/pdf/slau144 frozencarbonite 1 Quote Link to post Share on other sites
gatesphere 45 Posted January 4, 2011 Share Posted January 4, 2011 All of my projects are rather simple. Check them out at my blog: http://blog.suspended-chord.info/ plug> frozencarbonite 1 Quote Link to post Share on other sites
frozencarbonite 4 Posted January 4, 2011 Author Share Posted January 4, 2011 Hey thanks everyone your links are really helpful. CDE, I found your link very interesting especially the "Tutorials that include theory/schematics/code/pictures" section which has a subheading of "Analog Interfacing" and "Potentiometer Input" This is exactly what I wanted but alas no article for that yet : ( I'm sure you guys are busy but it would be great if someone would make those pages soon. I think the analog section is quite important Thanks again for the pointers, This is a great forum :!: Quote Link to post Share on other sites
frozencarbonite 4 Posted January 7, 2011 Author Share Posted January 7, 2011 Hi again, Thought I would share some links I found very helpful as a beginner I went through this C++ tutorial a while back and it has greatly helped me understand how to code basic programs for a variety of platforms like the arduino, Microsoft Visual C++ and now the MSP430 Launchpad. I think if you are a total newcomer you should start by completing this tutorial: http://cplusplus.com/doc/tutorial/ Particularly I keep going to this page as a good reference of what is going on when looking at examples for sometimes the simplest things are not explained: http://cplusplus.com/doc/tutorial/operators/ Here is a great explanation of how I/O works on the Launchpad and what got my head out of arduino land: http://andrewroycarter.com/?s=msp430 Follow that up with this and memorizing the important bitwise operators: http://en.wikipedia.org/wiki/Bitwise_operator Cde's link seems very promising for newcomers but needs fleshed out especially the analog section: http://processors.wiki.ti.com/index.php ... _Community and then the more advanced projects and blogs Oh and of course 43oh forum :!: The community here seems very knowledgeable and helpful find what info you need rather than pouring over the fragmented bits of info strewn across the web. Thanks again gatesphere, jsolarski, cde and 1 other 4 Quote Link to post Share on other sites
NJC 17 Posted January 9, 2011 Share Posted January 9, 2011 My blog has a few good posts for beginners and shows how to use a few peripherals which might be a good reference in addition to all the great links already posted in this thread. http://www.msp430launchpad.com/2010/07/ ... oject.html - this post shows how to use buttons with the LaunchPad. There are a bunch of other newer posts which involve the ADC in the chip that comes with the LaunchPad. Hope thats some help. frozencarbonite 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.