Jump to content
43oh

Apaseo

Members
  • Content Count

    25
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Apaseo

  1. Hello, I have been flying rc planes and helicopters for a while now, most of them I build from scratch. I was thinking that I could slap an altimeter to the planes to see how high they go, but I would like to build it myself. I would like to ask if anyone here thinks that this is a project that could be done with a cheap g2553 or equivalent, I have a BMP180 barometer, this could be used to measure the air pressure and thus we could get the altitude of the plane. Also, I would like to add some kind of memory like an SD card to log the altitude and time. Anyone have any comment
  2. It would be awesome if you could elaborate with the temp. sensor. That is actually what I am trying to do, I got a sample of an LM335, and I was hoping to get it working. Thanks
  3. Are you using mspgcc??
  4. That makes sense, I did not considered that the msp430 runs on 3.6v. And I had my multimeter hooked up wrong, so yes when the voltage reaches 3.6 the value on the LCD is 0x03FF. ----- One more thing, I am printing hex values to my LCD, and I have been trying to figure out how to display the decimal equivalent. For example, If I get 0x0939 I would like to be able to display 2361. Better yet, it would be awesome to be able to display 2.36 . I know that there is a way, but it has been a while since I worked with LCD's. Thanks
  5. Hello, I have an LCD working, and I also have an adc working to get voltage from a potentiometer. I am able to display adc values on the LCD, and they change when I change the value of the pot. But I am stuck with one thing, I know that it is a 10bit adc, which means it can only get 0x3FF different values of data. I have a DMM connected to the voltage from the pot, that same voltage is going to the adc on the msp340. Here are some of the values that I got: 5V--------->0x0000 4.5V------->0x009D 4V---------->0x0126 3.5V-------->0x01BD 3V---------->0x0249 2.5V--------&
  6. I have been using that, but it is not very accurate. Here is what I was using: BCSCTL1 |= DIVA_3; // ACLK/8 BCSCTL3 |= XCAP_3; BCSCTL1 = CAL_BC1_1MHZ; // Set DCO to 1MHz DCOCTL = CAL_DCO_1MHZ; Having the external crystal installed, along witht this code would create a 1ms delay when the function is called as __delay_cycles(1); And assuming this works, would I go the same about creating a 1-second delay? Could I just add "1,000,000" to the function? Thanks for the help. I wish I had an oscilloscope or a logic analyzer to look at the signals.
  7. Hello, I was wondering if someone could help me create or find a delay function. I was thinking a 1ms delay function could work. I would like to have this, so that I can have some timed prompts on an LCD that I have working. Below is a fraction of my main.c I hope you guys can help me. main(){ LcdClrDisp(); LcdMoveCursor(1,4); LcdDispStrg("It is"); //-->Delay Function Here LcdClrDisp(); LcdMoveCursor(2,4); LcdDispStrg("Working :)"); //-->Delay Function Here } Thanks
  8. Hello, I am using mspgcc to develop code and mspdebug to load to mcu. Now, I am trying to debug some code, and it seems to me that it is very hard to step through lines of code and set breakpoints on C code with mspdebug and console. I was wondering if there is a way to debug the mcu with some kind of debugging software with a UI such as the Hi-wave debugger. I would love to be able to develop my code using gVim and if possible also debug it with gVim. Thanks
  9. Just figured it out, I needed some libraries, and it compiled without errors, I was also able to test it. Thanks for the help.
  10. Thanks for all the help. Now I seem to be having some problems with installing mspdebug . When I try to build it from source I get some errors. Just to make sure my cygwin is fine, do you have dev tools installed? Are there other packages that may be needed or some that you might recommend? And if you could please give me some tips or comments on how to build mspdebug from source. Thank You
  11. I do think I got it. I was able to get a .elf file Now I will try the flasher stuff, I will report back when I get something. Thanks
  12. Im going to post what I have and how I have used it: I went to: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=MSPGCC_Wiki And downloaded the latest windows version here:http://sourceforge.net/projects/mspgcc/files/Windows/mingw32/ After downloading I extracted to my C:/mspgcc After extracting I added the path: C:\mspgcc\bin to my paths now to test if I had the files working I opened a command window (cmd) and typed msp430-gcc :msp430-gcc: fatal error: no input files compilation terminated. -->This means that path and files are there Now to test if it would
  13. Hello, I am trying to set up my computer so that I can compile my code with mspgcc using the command line. I downloaed mspgcc from: http://sourceforge.net/projects/mspgcc/files/Windows/mingw32/ Extracted it into mspgcc folder at C:/ Then I added to path. Now, when I tried to use it, it tells me (and I see) that there is no make.exe but there is msp430-gcc.exe, when I run this it tells me: msp430-gcc fatal error: no input files Does anyone have any idea or comments about this. All is welcomed. I prefer to work with the command line, Thanks
  14. Hello, I am thinking on starting a new project, a web controlled robot!!! I was wondering if anyone has any experience with using an (Arduino)Ethernet shield with the MSP launchpad?? My plan is to build something like this: http://www.lynxmotion.net/viewtopic.php?f=20&t=6343 Or if anyone has any other ideas for easy, cheap web interaction with the launchpad. I don't want to use a wifi shield, because I would like to add video streaming in the future and wifi shields are not very video friendly. Thanks
  15. Hello, I would like to build an RGB LED cube. I am engineering student and have experience with electronics. I already built a single color 5x5x5 LED cube with shift registers and I would like to make something bigger with RGB LED's. My plan is to build an 8x8x8 RGB LED cube. I have done some research and it seems that the Texas Instruments TLC5940 might be a good candidate to drive the LED's. Since I'm still a student and have little to no experience designing my own stuff I would like for ask for some guidance. I found a way to arrange the LED's, but Im not too sure that it will work with
  16. I'm using the 74hc164 shift register. The schematic I'm following is attached. I first started controlling all of the pins by writing 8 bits of data at a time to the shift registers. Then, I decided that I wanted to be able to send more than 8 bits of data a time to them. This is how i sent 8 bits at a time: int main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P1DIR |= (DATA + CLOCK); // Setup pins as outputs int Fisrt = 0x40; //Last register int Second = 0xff; //third register int Third = 0xff; //Second register int Fourth = 0xff; //
  17. Still asking for help. :cry: I tried what jsolarski suggested in post #6, but I still cant get it to work with only one command. Anyone willing to give me some more advise, on how to control 4 74hc164 multiplexers with an msp430 Thanks
  18. For developing my code I am using the latest version of code composer studio. I tried energia, but its too simple and doesn't have the debugging tools that code composer has. I also use CCS, because energia (arduino stuff), is not allowed at my school.
  19. Thanks for the links and examples. After going through them I was able to modify the code for the 74ls595 example. Now that I had one 74hc164 working I decided to kick it up a notch and cascade four of them. I came up with the following code: //*************************************************************************************** // MSP430 Driver for 74HC164 Shift Register // //Drives five(5) levels of LED's. Each level consists of a matrix of 25 LED's //------------5x5x5 LED Cube--------------- // MSP430g2553 // //Adapted from example by Andrew Morton posted at http://processors.wiki
  20. Hello, I am asking for your help. I want to be able to control a 74hc164 shift register using the launchpad with a msp430g2553. I found some, the one for the LCD, but I am not understanding it. I would like to receive some help to develop code, (or be provided some simple code) to control one 74hc164 shift register. Any help would be greatly appreciated. I need to use the 74hc164, because we have a bunch of them at school and I don't have the money to buy others. Thank You
  21. A note about the new files posted, I when I first tried them on my LCD ST7735R (JD-T1800) it would not work. So I spent some time debugging and came to the conclusion that the program is detecting my LCD as being the HX8340B. So to make it work, I made the following changes on main.c #ifdef SPFD54124B testSPFD54124B(); // N6101, N6085 #endif #ifdef PCF8833 testPCF8833(); // N6100 #endif #ifdef ST7735R testST7735R(); // JD-T1800 #endif #ifdef HX8340B //testHX8340B(); // /*<-------Notice that this command is commented out*/ testST7735R(); /*I added the command of the ST7735R here so
  22. Hey man, don't know if this is the right place to ask, but are there different libraries to make the LCD work with the stellaris launchpad? Thanks
  23. Yes, Its a kit. Attached is a picture of the bottom. Also, I am able to program it with the code provided here: http://forum.43oh.com/topic/1758-color-lcd-booster-pack/page__st__20 --> Post #24. Thank You
  24. After downloading all of the files and putting them in a project,my LCD is not displaying what is shown in the video. I have tried adding delays as mentioned in post #9. All I get is a white screen. I have JD-T1800 v2. Any help is appreciated. Thanks
×
×
  • Create New...