Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Apaseo last won the day on April 12 2015

Apaseo had the most liked content!

About Apaseo

  • Rank

Profile Information

  • Gender
    Not Telling
  • Location
    The Pacific North Wet
  • Interests
    Go Hawks!!!
  1. Apaseo

    Altimeter questions.

    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 comments, suggestions, or other MCU's that may be up to the challenge? Thanks
  2. Apaseo

    ADC and Voltage measurement

    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. Apaseo

    Makefile Help

    Are you using mspgcc??
  4. Apaseo

    ADC and Voltage measurement

    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. Apaseo

    ADC and Voltage measurement

    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-------->0x02DF 2V---------->0x036B 1.5V-------->0x3FD~(F) -----> Anything below 1.5v is not detected by the adc. Does anyone know of a way to get the adc to read the full range of the 5v? Thanks
  6. Apaseo

    1ms Delay function or Similar help

    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 actually compile anything I downloaded this examples: hello_world.c from: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Example:hello_world and Makefile from: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Example:Makefile Put them on a folder and navigate to the folder on the console, then typed: msp430-gcc hello_world.c And got back: c:\test>msp430-gcc hello_world.c c:/mspgcc/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: cannot open linker script file memory.x: No such file or directory collect2: ld returned 1 exit status And that is where I'm stuck. This is from cygwin: Mypc ~ $ which mymake /usr/bin/mymake Mypc ~ $ which msp430-gcc /cygdrive/c/mspgcc/bin/msp430-gcc I would like to get the command line compiling working, because I don't like CCS and would prefer to do my text editing on gVim or Sublime. Thanks
  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 the TLC5940: My main goal is to drive the LED's with as little pins as possible. My main questions are: Does driving 8 panels of RGB LED's like the one mentioned seem feasible? Would you happen to know of a different solution to arrange the LEDs? Are there other chips that could work as a solution to this? MAXIM Integrated has chips that charlieplex 64 leds with 9 pins(MAX6950), could I use some of these chips as drivers? http://www.maximintegrated.com/datasheet/index.mvp/id/3195 Any comments or help is appreciated. Thanks