Jump to content

Search the Community

Showing results for tags 'launchpad'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 152 results

  1. CsCrazy

    MSP430 Launchpad RTTTL-player

    Hi all! Yesterday I finished with my little project, which was to play ring-tones in rtttl-format (Ring-Tone Text Transfer Language) with MSP430G2231. I thought that some of you might be interested about the project and about the code. Code is "built" from arduino sketch which involves Tone Library and the sketch acts as a interpreter for the rtttl "code", but also the code is partly made of 'msp430 LaunchPad Music' made by Bob Somers. So this is a kind of a ported code. Here's how it works. Main part of the rtttl-player (as the CCS project is named) is the play_rtttl(*song) function, which reads the song in RTTTL-format. After the function has decoded each note, the note's frequency is selected from the lookup table and it's length is calculated. These two values (note-freqyency in timer ticks, note-length in ms) are then forwarded to PlaySingleTone(...)-function, which sets up the timer and a delay which they together produce a notable sound from the speaker. Speaker might be any low-power speaker (since MSP430G2231 doesn't have much kick to drive larger speakers) or a piezo-speaker, as in my case i used a piezo-speaker. Speaker can be connected to any of the pins in mcu, since timer A causes only interrupt when capture/compare register value is detected. Inside the interrupt the port pin is toggled. You can see or preferrably hear how this little bug plays a MacGyver theme, here's a link to my youtube video: So with the msp430g2231 chip you can play about 45 sec long song (of course it depends on the song and it's tone lengths). Couple of things which were problems during the project: 1. Sounds were at the beginning very wrong, they had different frequency of what it should have been (it hearded like the sounds were inverted each note). This was due to defines in the code. Because this was originally an arduino skecth, the defined note-values (like #define NOTE_C4 <number>) were direct frequencies in Hz and I didn't think of this at first and I just inserted these values into timer. So it was obviously a wrong method. 2. In Tone.c -file I forgot to remove TAIE interrupt (which in this code is not needed) and I didn't have interrupt handler so the player produced only one note and then it was resetting itself. This was very obvious when it was detected. So here it is. Thank you for your interest. Hopefully this is useful for somebody, for me it was really fun thing to do and the interesting part was the parser code (play_rtttl) function. In the attachment you can find the project-files for CCSv5 and below is a picture of my speaker setup: RtttlPlayer.zip Edit: Added schematics for the current code. msp430g2231-RTTTL-Player.pdf
  2. I was wondering, does anybody know of a good msp430 compiler like IAR for mobile devices? If not, I have some ideas if anybody is up for making one. Physically connecting to the phone is out of the question, so it would have to be bluetooth. An msp (preprogrammed) with a bluetooth transceiver may just be all that's needed to program another msp via spi-bi-wire, and possibly throw in an rx/tx port to transfer data back through the Bluetooth, just like the launchpad does with USB. Just tossing ideas out.
  3. sirri

    Launchpad in Fritzing?

    Hello, I guess there is no TI Launchpad component in Fritzing software.. I know that svg file of launchpad has been made. http://www.43oh.com/2011/07/launchpad-svg-for-fritzing/ However does anyone know how to use this svg in Fritzing? Thanks, Sirri edit: No one is using this good free program ?? : /
  4. xtjacob

    Infrared Distance Sensor

    I'm trying to build a distance sensor using an IR Led, and a TSOP receiver that is run by my stellaris launchpad. However, I am not sure how to produce the 38KHz that is needed to drive the transmitter, and I'm unsure about how to run the transmitter, and read the receiver at the same time. Any help is appreciated!
  5. I bought some addressable RGB Leds from Dealextreme and instead of the expected WS2801 chip, they came with TLS3008 drivers (8bit control for each colour, single wire, different protocol from WS2811 too). It took some time with the osciloscope to get the timing right but this now works perfect. This is in C rahter than assembly but I can get a decent update rate. I do not work with the full 50 Leds as there is not enough RAM in the chip I use (2231) but I tried looping the code to work with the full length, that worked ok except on one set of Leds which was sometimes lagging, I think that this is due to the extra time used by the loop when returning. If all the RGB data is in a table there should be no issue. I will check this when I have a better chip. I am making a kind of light organ - vu meter mix with a short string of 6 Leds and the update on the audio is faster than I need. This is compiled with IAR. Any comments and improvements welcome! H3rv3 // TLS3008 based 6 RGB LEDs string test application for MSP430 // Based on DonJuanito99 for arduino //THIS IS THE WORKING CODE // includes #include "msp430g2231.h" #include "intrinsics.h" // defines #define PULSEUS1 33 // Manchester half period in clock cycles (2.5us) to 1 #define PULSEUS0 22 // Manchester half period in clock cycles (2.5us) to 0 #define PULSEUS2 9 // used for end of command last 0 delay #define EOSYNCDELAYMS 50750 // Pause duration at end of SYNC frame (3.5ms) #define EORESETMS 29000 // Pause duration at end of RESET frame (2ms) #define EOFDELAYMS 5000 // Pause duration at end of each frame (of 50 LEDs RGB data) (0.35ms) #define UP 0x00 #define DOWN 0x01 #define HOLD 0x02 // variables //all reds //unsigned char RGBTable [18]={0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00}; //one color each //unsigned char RGBTable [18]={0xFF,0x00,0x00,0x0F,0x00,0x0F,0x00,0x00,0xFF,0x00,0x0F,0x0F,0x00,0xff,0x00,0x0f,0x0F,0x00}; //all off unsigned char RGBTable [18]; int i; int bc; char led_red = 1; char led_green = 255; char led_blue = 1; char red = UP; char blue = HOLD; char green = DOWN; // routines void reset(void); // sends reset frame void sync(void); // sends sync frame void frame_start(void); // sends emty data frame (last bit, out of procedure delay) void updateRGB (void); // sends the data to the leds void bitc(char); // bit sending procedure to send commands void bitd(char); // bit sending procedure to send data void main(void) { //pin setup output and 0 P1DIR |= BIT0; P1OUT &= ~BIT0; //Stop watchdog timer WDTCTL = WDTPW + WDTHOLD; //Set clock at 16MHz DCOCTL = DCO0 + DCO1; BCSCTL1 = RSEL0 + RSEL1 + RSEL2 + RSEL3; //Disable interupts __disable_interrupt(); // initialising strings reset(); sync(); reset(); sync(); reset(); sync(); while(1) { // reset(); // not required in this loop, consider regular reset // sync(); // not required in this loop, consider regular re-sync // send the data to the string updateRGB(); // the code below is just for the show while (P1IN & BIT3) {} //fade logic switch (red){ case UP: ++led_red; if (led_red == 255) {red = DOWN; green = HOLD; blue = UP; led_green=0;} break; case DOWN: --led_red; if (led_red == 0) {red = HOLD;} break; case HOLD: break; }//end switch switch (blue){ case UP: ++led_blue; if (led_blue == 255) {blue = DOWN; green = UP; red = HOLD;led_red=0;} break; case DOWN: --led_blue; if (led_blue == 0) {blue = HOLD;} break; case HOLD: break; }//end switch switch (green){ case UP: ++led_green; if (led_green == 255) {green = DOWN; red = UP; blue = HOLD;led_blue=0;} break; case DOWN: --led_green; if (led_green == 0) {green = HOLD;} break; case HOLD: break; }//end switch RGBTable [0]=led_red; RGBTable [1]=led_green; RGBTable [2]=led_blue; RGBTable [3]=led_blue; RGBTable [4]=led_green; RGBTable [5]=led_red; RGBTable [6]=led_red; RGBTable [7]=led_blue; RGBTable [8]=led_green; RGBTable [9]=led_blue; RGBTable [10]=led_red; RGBTable [11]=led_green; RGBTable [12]=led_green; RGBTable [13]=led_blue; RGBTable [14]=led_red; RGBTable [15]=led_green; RGBTable [16]=led_red; RGBTable [17]=led_blue; } //end while } // end main() void updateRGB(void) // send the RGBTable data to the string { frame_start(); // prepare to send data __delay_cycles (PULSEUS0-4); for(i=0;i<18;i++) // Repeat for 6 leds * 3 data blocks { // Start tag (= 0 bit) P1OUT &= ~BIT0; // set to 0 __delay_cycles(PULSEUS1); P1OUT |= BIT0; //set to 1 __delay_cycles(4); for (bc=0x80;bc!=0;bc>>=1) bitd( RGBTable[i] & bc ); // send the 8 data bits __delay_cycles (6); } P1OUT &= ~BIT0; __delay_cycles (EOFDELAYMS); //pass value from chip to LED (=send a complete frame start) frame_start(); __delay_cycles (PULSEUS1-3); P1OUT &= ~BIT0; // write a low __delay_cycles (EOFDELAYMS); } void bitd(char { if (b==0){ P1OUT &= ~BIT0; // set to 0 __delay_cycles(PULSEUS1); P1OUT |= BIT0; //set to 1 __delay_cycles (4); } else{ P1OUT |= BIT0; // set to 1 __delay_cycles(PULSEUS1); P1OUT &= ~BIT0; //set to 0 __delay_cycles (4); } } void bitc(char { if (b==0){ P1OUT &= ~BIT0; // set to 0 __delay_cycles(PULSEUS1); P1OUT |= BIT0; //set to 1 __delay_cycles (PULSEUS0); } else{ P1OUT |= BIT0; // set to 1 __delay_cycles(PULSEUS1); P1OUT &= ~BIT0; //set to 0 __delay_cycles (PULSEUS0); } } void sync() { bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(0); bitc(0); bitc(0); bitc(1); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); bitc(0); __delay_cycles (PULSEUS2); // additional delay on last 0 P1OUT &= ~BIT0; // now set to 0 __delay_cycles (EOSYNCDELAYMS); // end of sync frame delay } void reset() { bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(0); bitc(1); bitc(0); bitc(0); __delay_cycles (PULSEUS2); // additional delay on last 0 P1OUT &= ~BIT0; // now set to 0 __delay_cycles (EORESETMS); // end of reset frame delay } void frame_start() { bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(1); bitc(0); bitc(0); bitc(1); P1OUT &= ~BIT0; __delay_cycles(PULSEUS1+9); P1OUT |= BIT0; //set to 1 // last 0 bit has no delay (delay will be set outside due to procedure return delays) }
  6. athornsb

    Unusual Power Draw - Launchpad

    The same question is posted on reddit here: http://redd.it/18bkdl We are meeting with our project sponsors tonight and would love to have some kind of answer as to what's going on with our power draw. We are using an MSP430 Launchpad to develop a small project to be powered by a solar cell. Eventually we will have a single hardware interrupt, and a 30 Hz counter interrupt to update an LCD. We have estimated our power budget to be around 20 micro Watts. Oddly, with the software I have written and provided below, we are getting around 30 micro amps at 2.2V when we separate the MSP from the board. Stranger still, no matter if we try to fully load the processor, or just drop it into LPM4 we always get roughly the same power draw which doesn't make sense. I'm hoping you redditors can either find a problem with my code or how we are testing power draw. We are using the LEDs to confirm functionality of the interrupts, and then we detach the MSP from the board to test power. I have tried to comment the code well, if anything is unclear I'll try to explain. Thanks! #include <msp430g2553.h> #define greenLED 0x40 // BIT6 #define redLED 0x01 // BIT0 #define TRIGGER 400 // VLO interrupt delay. Base frequency is 12kHz. void main(void) { //Set up system clocks WDTCTL = WDTPW | WDTHOLD; // Stop WDT BCSCTL2 = SELM_0 + DIVM_0 + DIVS_0; // DCO clock with divide by 1 if (CALBC1_1MHZ != 0xFF) { DCOCTL = 0x00; BCSCTL1 = CALBC1_1MHZ; // Set DCO to 1MHz DCOCTL = CALDCO_1MHZ; } BCSCTL1 |= XT2OFF + DIVA_0; // Disable XT2CLK and set to divide by 1 //Set up port 1 P1DIR = 0xff; // Configure all of Port 1 to output to reduce power consumption //Set up A0 timer and VLO clock source BCSCTL3 = XT2S_0 + LFXT1S_2 + XCAP_1; //Set the ACLK clock to the internal VLO, 6pF cap, low frequency operation. TACCR0 = TRIGGER-1; // Trigger is the timer A count limit. (# of counts until the interrupt fires) TACCTL0 |= CCIE; // Enable timer A interrupt TACTL = TASSEL_1 + MC_1 + TACLR; // ACLK, up mode, clear timer. //Set up LEDs P1DIR |= greenLED; // Set P1.6 to output direction P1OUT &= ~greenLED; // Set green LED off P1DIR |= redLED; // Set P1.0 to output direction P1OUT &= ~redLED; // Set red LED on //Set up Push Button (P1.3) P1SEL &= ~0x08; // Select Port 1 P1.3 (push button) P1DIR &= ~0x08; // Port 1 P1.3 (push button) as input, 0 is input P1REN |= 0x08; // Enable Port P1.3 (push button) pull-up resistor P1IE |= 0x08; // Port 1 Interrupt Enable P1.3 (push button) P1IFG &= ~0x08; // Clear interrupt flag (just to be sure) _BIS_SR(LPM3_bits + GIE); // Enable interrupts } #pragma vector=PORT1_VECTOR // Port 1 interrupt service routine __interrupt void Port_1(void) { P1IFG &= ~0x08; // P1.3 Interrupt Flag cleared P1OUT ^= greenLED; // Toggle LED state } #pragma vector=TIMER0_A0_VECTOR __interrupt void Timer_A(void) { P1OUT ^ = redLED; } power_sim.c
  7. izdane

    Hi from Canada

    My name is Ivan and I am a 12 year old kid from Canada. I just ordered a Launchpad and a Terminal booster pack. I downloaded the code and imported it into CCS. When ever I try to debug on the Launchpad, it says "Error Connecting to target". I tried connecting to 2 different computers both running different versions of Windows. Could any one help out please? Thanks, Ivan
  8. Hi, Thanks to the tips on 43oh.com I just managed to use my launchpad to program a 2553 on a breadboard. My code deployed fine and ran without issues, but I noticed something slightly different when I was finished testing. The chip stopped running the code as soon as I terminated the debug session. Normally, when the debugger is connected to a chip on the launchpad's emulation section, terminating just detaches the debugger. Assuming the debugger wasn't paused or on a breakpoint the chip continues to run the code uploaded to it. Could I have done something on my breadboard that's causing the chip to reset as soon as the debugger detaches? I have a 47k pullup resistor and 1nF pulldown cap on RST, and am connecting the launchpad to the breadboard with wires from J3 and J6. Thanks! EDIT: Ignore me! I just realised that I'd connected the decoupling capacitors all kinds of wrong. I think the 2553 must have been running on parasitic power from one of the programming pins!
  9. sirri

    humor: iran space program

    look at the photo. do you think it is launchpad powered? : )
  10. smatty17

    Msp430 LaunchPad with cc4000-tc6000

    Hello everyone, I am an absolute newbie to programming with the msp430. I am looking through tutorials as to understand more about the launchpad and what it will take to accomplish what I want to do. I have done all of the basic tutorials like "blinking the led" and whatnot. I will run down exactly what is going on. At the moment I have a launchpad(2553) at home with me now and a brand new cc4000-tc6000 gps module kit. Right now, I am trying to get my Launchpad talking with the cc4000 module. I have looked into the user experience code, which is made for the MSP430F5529 Experimenter's board and cc4000 combo. It says porting to any msp430 should be relatively easy following the procedure on the page. I am just confused on how to connect the launchpad and the cc4000. The pin layout has duplicate RX and TX and I am not sure the function of having duplicates and if I have to connect those. I have soldered on wires to the launchpad. I am just starting at the beginning. I will post as I get further along. Thank you for your time, Matt
  11. I'm new to 43oh, but I've read threads here a number of times and it has been a great reference. I wanted my own application board with a built-in programmer, so I designed the application board, and used the launchpad schematics (v1.4, I believe) as the programmer. I have printed the board and populated it. I've been looking around, and I am not actually sure how to program the firmware onto the board. I know that TI has its "firmware updater," but I think this requires that the board already has firmware loaded onto it. The programming portion of the launchpads have a programmer MSP430 and an EEPROM. I would be more or less comfortable programming the MSP430 (at the very worst, by using a pre-built Launchpad), but I'm not sure if there is anything special I need to do to program the EEPROM. I see that some people have made their own launchpads (links below), but they make no mention of loading the firmware. Is there a guide to how to load the firmware onto the Launchpad from scratch, or could someone give me some pointers? Any help would be appreciated. Thanks! http://forum.43oh.com/topic/1605-diy-proto-launchpad/ http://forum.43oh.com/topic/1599-diy-mini-launchpad/
  12. Hi everyone, I wanted to connect a MSP430 to an Android device. In fact, my idea was to use the MSP430 launchpad as a low-cost GPIO board for an Android tablet. I did a little research, and first thought on the audio port for the communication ( http://robots-everywhere.com/re_wiki/index.php?title=Serial_on_Android_using_the_audio_port ) but then I remembered that the tablet supported USB OTG. So, I compiled the CDC_ACM module for the (Allwinner A10 based) tablet in order to emulate serial port over USB. Then, in the MSP430 Launchpad side, I needed a lib for using the serial port. I found MSP430-softuart by Stefan Wendler (https://github.com/wendlers/msp430-softuart) and used it for the bidirectional communication Android-Tablet<->MSP430-Launchpad. In order to make a demo, I modified the code of Open Source Vector Pinball (http://dozingcatsoftware.com/VectorPinball/index.html ), adding support for serial port access (using http://code.google.com/p/android-serialport-api/). This modified Vector Pinball has the flippers linked to MSP430 Launchpad buttons. When the buttons on P2.5 and P2.3 are pressed they flippers are activated. A LED is also connected on P1.6 in order to toggle it when receiving "toggle" command from the Android app. You can find the video demo here: This is the source code for the MSP430 (find it also attached to this post) #include <msp430.h> #include <stdint.h> #include "uart.h" #define LED1 BIT0 #define LED2 BIT6 #define BUTTON1 BIT5 #define BUTTON2 BIT3 static volatile bool r = false; static volatile bool l = false; int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ; // Initialize clock DCOCTL = CALDCO_1MHZ; P1DIR |= (LED1 + LED2); // Set BIT0 and BIT6 as output P1OUT &= ~(LED1 + LED2); // LEDs off P2REN |= (BUTTON1 + BUTTON2); // Select pull-up resitors por P2.3 and P2.5 P2IE |= (BUTTON1 + BUTTON2); // Enabling Button interrupts P2IFG &= ~(BUTTON1 + BUTTON2); // Clear interrupt flags for the buttons uart_init(); __enable_interrupt(); uint8_t c; while(1) { if(uart_getc(&c)) { if (c == 't') { P1OUT ^= (LED2); // Toggle LED2 } } if (l) { uart_putc('l'); // Send "left" command via UART l = false; } if (r) { uart_putc('r'); // Send "right" command via UART r = false; } } } // Port 2 interrupt service #pragma vector=PORT2_VECTOR __interrupt void Port_2(void) { if ((P2IFG & BUTTON2)) { P1OUT ^= LED1; // Toggle LED1 P2IFG &= ~BUTTON2; // Clear BUTTON2 interrupt flag P2IES ^= BUTTON2; // Interrupt called on High-to-Low and Low-to-High l = true; } if ((P2IFG & BUTTON1)) { P1OUT ^= LED1; // Toggle LED1 P2IFG &= ~BUTTON1; // Clear BUTTON1 Interrupt flag P2IES ^= BUTTON1; // Interupt called on High-to-Low and Low-to-High r = true; } } Later today, I will include the schematic and a guide with the steps for replicating the setup in case you want to build it. Do you find the project interesting? msp430-pinball.tar.gz
  13. hi, can you give a little example about the usage of shift registers by using energia? if you can check the picture i have upload, i want to enable one pin > and send e 4igits for each clock cycle- specifically thanks, sirri
  14. All, I have designed and am in the process f ordering an adapter card that will let me use my old 3.3v arduino shields with my TI Sellaris LM4F Launchpad. There are no hard connections beween the two sides so you can wire pins as you need. This will enable the user to use multiple shields with the Launchpad event it the shield signals conflict.This is really usefull with the SeeedStudion 2.8" TFT/Touch V 1.0 from Radio Shack which uses all but 4 pins. The shield will be available at: Batch PCB Marketplace: https://www.batchpcb.com/pcbs/102355 from Sparkfun. I have attached a picture and will post the Eagle files if there is interest. (For some reason this forumn will not let me post the Eagle File) Edit: I have attached the Eagle files in a zip file for all to use. Edit: 12/25/2012 - Corrected error in .BRD file included in .ZIP Merry Christmas Everyone John K ProtoStellaris2Arduino.zip
  15. Hello, I have few questions about launchpad in general; 1-The internal thermometer is a seperate chip on launchpad or a feature in 2553 chip? 2-Does internal clock works stand alone (apart from launchpad) ? 3-Can we supply msp430xx chip standalone with a 3V battery cell? (I can't find LM1086 3.3V voltage regulator in my city) 4- What is the priority order while coding (energia) among libraries, functions, main code ? Thanks in advance, Sirri
  16. Hello, After some reading from master's tutorials i have made my 4 digit, 7segment Led display, working with MSP430, I have used array definitions for digits and segments. Also i wrapped that within a function so that we can control the number and the digit we want to display. Probably code can be improved a lot, but this is i could do for now. Recommendations are welcomed. And i will be glad if it helps for very beginner Launchpaders )) PS: It is working allll parallel. i have used 7 output pins for segments and 4 output pins for the digits.. int segA = P1_3; int segB = P1_4; int segF = P1_5;int segG = P2_0;int segE = P2_1;int segC = P2_2;int segD = P2_3; int dig1=P1_7;int dig2=P1_6;int dig3=P2_5;int dig4=P2_4;byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 }, // = 0 { 0,1,1,0,0,0,0 }, // = 1 { 1,1,0,1,1,0,1 }, // = 2 { 1,1,1,1,0,0,1 }, // = 3 { 0,1,1,0,0,1,1 }, // = 4 { 1,0,1,1,0,1,1 }, // = 5 { 1,0,1,1,1,1,1 }, // = 6 { 1,1,1,0,0,0,0 }, // = 7 { 1,1,1,1,1,1,1 }, // = 8 { 1,1,1,0,0,1,1 } // = 9 }; byte four_digits[4][4]= {{0,1,1,1},//ilk dijit a
  17. Hi everybody, I'm tinkering with my launchpad and was looking at the RTC functionality. As I posted in a different post, I am trying a symbiosis with the Raspberry Pi. It would be great to use the launchpad to switch on the Raspberry Pi and functioning as a very advanced intelligent peripheral. However, the RTC confuses me. I am used to have several registers to store the date, time and alarms. The RTC of the launchpad just seems to be a timer counting seconds, nothing more. Is this correct? So if I want to make an alarm I should calculate the amount of seconds in the timer register? Or am I missing something? Kind regards, Eelco
  18. Hello everyone!! I'm a 21 years old engineer student from Spain, and I need your help, because I'm going to do a really big proyect (for me)! I need to control a microcontroller from my android smartphone. I think that the 430 Launchpad with a wifi module would be adecuate. I worked with a PIC couple years ago, and i don't know a lot about TI microcontrollers, but they are really cheap, and I need a cheapest project. What wifi module would you recomend for me? I'm searching for, but I can't find much. I read on the wiki that CC3000 is a plug-in wifi
  19. I am thinking of using a Stellaris Launchpad (LM4F120XL) as a robot controller. If I had something like this (http://www.pololu.com/catalog/product/1551) how would I go about interfacing with the quadrature encoders? This TI webpage says "Advanced motion control capability, with up to 16 PWM outputs and two quadrature encoder interfaces" but I cannot find the terms "quadrature encoder" or "QEI" in the Launchpad manual. Am I going to need to learn the gritty details of quadrature encoding and write my own C interface? I am very new to all this, so a gentle shove in the right direction would be awesome.
  20. Hi everybody, I followed Recursive Lab's tutorial on using the Stellaris launchpad with Linux and now have succesfully compiled lm4tools and gcc for the Raspberry Pi. I am currently able to create, edit and program (and debug) the Stellaris Launchpad with the Raspberry Pi. I have a feeling that this could a wonderful combination, but I am currently a little dry on good ideas to pursue. Does anyone have suggestions? Kind regards, Eelco
  21. Found a french blog with a launchpad (and Energia) flavor to it. A couple of different write ups, from simple button tutorials to adc and lcd, as well as motor control. Google Translate works well enough for english. French: http://electroniquea...label/Launchpad Translated: http://translate.goo...-KjLMthQ65c63Vw Most interesting one I saw was a simple little midi project. Plays F
  22. This is a prototype of a magnetic sensor BoosterPack for the TI MSP430 Launchpad. http://www.youtube.com/watch?v=whgsB5hb-Pk The board has 3 Hall-effect magnetic sensors that sense a magnetic filed in the z-axis to the sensor. The BoosterPack has a latched output sensor (on/off by changing magnetic field direction), unlatched output sensor (on/off by changing magnitude of magnetic field), and analog output sensor (output follows strength of magnetic field). The sensor outputs are connected to analog input pins of the MSP430 LaunchPad. 10 LEDs are connected to digital output pins of the MSP430 LaunchPad to indicate the output of each of the sensors, and 1 LED indicates when power is connected to the board. The demo programming was quickly and easily written by a novice programmer using the Energia software. We see applications for this BoosterPack as an educational demo on magnetism and programming, a toy for young hobbyists and inventors, and as another building block in the MSP430 LaunchPad ecosystem. Any and all stimulating comments would be much appreciated! Thanks.
  23. VirtualEnder

    Timer based Stepper driver

    Hi all! The current project I'm working on with Stellaris is a stepper (step, direction) driver. I have these TB-6560 drivers that I got on eBay for cheap (here), and I've successfully driven the motors using the 32 bit timer. I've been able to set the frequency using a variable, etc, and hoping to implement acceleration, etc. The goal is to eventually write an entire gCode interpreter and be able to drive the CNC via a serial connection that dumps gCode to the Stellaris. I'm running in to a weird problem though. I'm attempting to add a control panel I got form Deal Extreme that connects via software SPI. I've been able to successfully interact with it using a library developed by Dan Oprescu. Works great in its own CCS project. I can read buttons, update the 7-seg displays, light LEDs, and everything works great. I've moved his library into my stepper project, and all hell breaks lose. As soon as I include the TH1638.h header in my stepper project I get hundreds of build errors. The really weird part is they don't seem to be coming from any of my code files. They are all coming from compiler includes in iosfwd and exception. I looked around on the web and I found something about including pre-compiled headers being a problem, but I'm a bit lost in this. I compared all the CCS project settings between the TM1638 project example, and my stepper project, and nothing seems out of place. I'm sure I'm missing something, but I have no clue how to debug this. If anyone has any ideas that would be greatly appreciated. I've attached my code so far if anyone has a few minutes to look it over! I'll keep posting here as I progress through the project as well! Suggestions and pointers welcome! EDIT (10-15-2012) Here's (attached) the latest updates to my code with the solutions listed below, if anyone is interested. I'll probably copy it over to github and then post it under the code section before too long here. I want to get it a little further before I do that. I'm sure I'm doing some things wrong here and I may have to change approaches, but this is what I've got so far! EDIT 2 (10-15-2012) Here is a link to the project git repo. Feel free to clone and code! https://github.com/VirtualEnder/Stepper Stepper.zip
  24. CsCrazy

    Hi from Finland

    27 years old finnish hardware engineer guy says hello! I just recently registered in to this forum, but i have been lurking around for a while now. This forum has been a great help to me and there have been some very interesting projects out there, I'm hoping to see more of them. Regardless that my job title is hardware engineer, I've done some programming too, mostly in C. C++ and C# are familiar languages for me too. Umm.. not sure what to say, isn't this enough ? Feel free to ask if you have questions! (No, there's no polar-bears in here, only regular ones and a beer which is named as 'bear' = Karhu in finnish - which i like Oh, if there's any finnish readers out there and you are interested in MSP430 programming, check out my webpage which has finnish tutorials about Launchpad (url at the end). Of course other nationalities are welcome too, but since it's written in finnish you propably won'd understand it... But hey, I got some youtube videos also! Comments are welcome. That's it. Be nice or else santa won't bring you any new gadgets to play with. BR. Mika 'CsCrazy' V
  25. Indian_villager

    LM35 on the energia.

    Hey all, I'm relatively new to all this and I have been trying to get a temperature sensor to work with the launchpad. As in my previous posts I was trying for the DS18b20. I have the port of the code project on the back burner because there is a hell of a lot I need to learn to be able to port that over. So just to get something off the ground I have been trying to use the LM35 to read some temps. Here is the code I'm running float tempC; float tempF; void setup() { Serial.begin(9600); } void loop() { tempC = analogRead(6); //read the value from the sensor hooked up to pin 6 tempC = (3.3 * tempC * 100.0)/1024.0; //convert the analog data to temperature (Assuming 10bit ADC and 3.3v ref voltage I suspect this is where I'm screwing up) tempF = ((9.0*tempC)/5.0)+32.0; Serial.println(tempC); Serial.println(""); Serial.println(tempF); Serial.println(""); delay(1000); } The issue is that It is showing very high values. Like the order of 178 c? I also tried chaning the tempC calculation to tempC = (tempC*100.0)/1024.0 It gets closer but still not quite. (I'm monitoring through the serial monitor and I have not made any changes to the jumper position to my 1.4 board) Any and all help is appreciated. Regards, Alex
×