
P!-Ro
Members-
Content Count
21 -
Joined
-
Last visited
-
Days Won
1
P!-Ro last won the day on April 11 2011
P!-Ro had the most liked content!
About P!-Ro
-
Rank
Member
-
4-bit LCD Code for 16x1 LCD (have the LCD's for sale too)
P!-Ro replied to P!-Ro's topic in Code vault
Perhaps... Guess I better get used to making more efficient code :? -
4-bit LCD Code for 16x1 LCD (have the LCD's for sale too)
P!-Ro replied to P!-Ro's topic in Code vault
Well, I found my self stuck the past couple days. I added functionality for displaying decimal numbers, and, just like the previous code, I set it up so the decimal numbers could jump past it's 8x2 segment gap. However, while debugging it, any time the code functioned to display numbers I noticed that the global variable for telling me character position and when to jump to address 40 would remain at 1 even when told to increment. After deleting another variable today as I tried to convert the code to number showing only I found that everything suddenly worked, which means I had too much ram b -
Can't flash the MSP430 with Launchpad - stuck at step 0 :(
P!-Ro replied to schweini's topic in Development Kits
When you make a new ccs project you need to make sure you select the correct chip you are using, such as the 2211 or 2231. Also, you must realize that the 2211 doesn't have a built in thermometer, so using the 2231 demo code on it won't work right. -
First you need to buy that 4 or 8 or 16mhz crystal, because the msp doesn't have one built in. Have you done this yet?
-
Think you missed having a speaker? Or is this to be a perfect replacement for a dog? If not then you can add an sd card to the prop and have some pre-recorded barks, with them made in small parts so the dog can mix them up depending on mood.
-
Can't flash the MSP430 with Launchpad - stuck at step 0 :(
P!-Ro replied to schweini's topic in Development Kits
If you haven't already, then get all the basics out of the way. Try using a different cable, a different usb port, and, if all else fails, a different computer. If it's still not working then you have a problem with your launchpad BTW, if it helps you to know, the launchpad won't communicate to the computer if the msp340 is fried. If you think you may have allowed one of the connections on the bottom to be shorted by a wire or other metallic object, then replace it with the msp340g2211 that came with your kit. -
I think it needs a good way to sense it's environment. How about some ir sensors, with the data shared on the bus? And maybe some photoresistors tinted different colors pick up mostly one color each. This should be a cheap way of getting many sensors working together on your neural network.
-
Well, I still would until I fit an alternator on it. But I suppose I need to get working on it again first, and not only is my battery for it very corroded but the ups you see attached in the picture is bad so I can't use it to charge. Alas, money... @zeke--a relay requires power or the spark plug is shorted, it will eventually have breaks that will automatically engage with multiple microcontrollers capable of engaging it with backup power, and I'm wanting to create a plow-like break that has a motor that must be powered on to hold it up. @wasson-- what kinds of tasks are you thinking
-
Well, it sure is a bit bigger. I was planning to use 2 props and a few smaller microcontrollers such as the msp. My primary focus was on hardware however, while it seems the primary focus of your robot is on brains. Guess that makes us alike but opposites?
-
4-bit LCD Code for 16x1 LCD (have the LCD's for sale too)
P!-Ro replied to P!-Ro's topic in Code vault
Code update: Why not have a scrolling text demo? /*Scrolling Demo for 16x1 LCD written by Derrick Huestis (P!-Ro) v1.4 * * This code will drive a 16x1 * lcd with memory set up in two * 8 caracter blocks. * * It is my first C program, so * let me know if it has problems! * * pinout: * lcdpin1----ground LCD Ground * lcdpin2----5v Supply Voltage * lcdpin3----ground Contrast Adjustment * lcdpin4----P1.7 Data/Instruction select * lcdpin5----ground Read/Write * lcdpin6----P1.6 Enable * lcdpin7----ground Unused pins for 8 bit mode * lcdpin8----ground * lcdpin9----gr -
4-bit LCD Code for 16x1 LCD (have the LCD's for sale too)
P!-Ro replied to P!-Ro's topic in Code vault
That's funny GeekDoc, I wish I learned this stuff before I was almost out As for searching for chips, I'll probably post a small list soon enough. I'm more focused on making my code easy-to-use and functional right now. Not only will I need it for what I plan to submit into this Month's contest, but I'm also hoping it will help anyone else hoping to use an MSP with a parallel LCD. I'm planning to make a version after this set to work well with the 16x2 lcd's as well (I don't have one, but I may be able to find one) and I would also like to look into making a routine that uses a bit regis -
This is a neat project, I'm excited to see where you get! If you would like to use a regular lcd instead of pulsing that pedometer then you can try out the code I've been working on here: viewtopic.php?f=10&t=725 I'm also very tempted to write some code for the obex that would allow the Prop and MSP to communicate to each other. If you don't beat me to it then I suppose I'll let you know when I get it done. This project really does remind me of another robotics project I put on hold a while back though...two years into it and I found myself too broke and resourceless to continue o
-
Use a multimeter to check the current draw of the relay. If it is under 200mA, which it probably is, you could just use a simple npn3904 transistor. You can buy one for over a dollar at radio shack, or you can stalk up dirt cheap from here: http://www.taydaelectronics.com/servlet ... 904/Detail When I order they usually take a little over a week to the U.S., so keep that in mind if you are in a hurry. You will need to look at the datasheet for it to know which pins are which (be careful, if set it up wrong you may accidentally drive the relay from the I/O which will destroy it) but if you
-
The Parallax Propeller can drive both a monitor and vga. Perhaps some code could be written so the MSP could tell the prop what to write? This is done in a similar way with other micros such as the Arduino, so why not with an msp?
-
4-bit LCD Code for 16x1 LCD (have the LCD's for sale too)
P!-Ro replied to P!-Ro's topic in Code vault
Since I couldn't help myself I decided to stay up late improving the code (yeah, I know, it's a school night...) I figured out how to use the functions, I think I was just trying to declare them in the wrong spot. Here is the much-improved and less space-consuming code: /*LCD Demo written by Derrick Huestis (P!-Ro) v1.2 * * This code will drive a 16x1 * lcd with memory set up in two * 8 caracter blocks. * * It is my first C program, so * let me know if it has problems! * * pinout: * lcdpin1----ground LCD Ground * lcdpin2----5v Supply Voltage * lcdpin3----ground Contrast Adj