Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Reputation Activity

  1. Like
    GeekDoc reacted to cde in Repurposing a Nokia adapter cable - Request for info   
    Find the Vendor ID, and Product ID of the usb device, and you'll find the driver in no time.
    Its a bit tricky to find in windows, but http://www.tomshardware.com/forum/12863 ... oduct-list
    has some info.
    And for what its worth, most knockoff nokia cables have actual chips in them, not just chips-on-blobs like you do. Seems like an original cable.
  2. Like
    GeekDoc reacted to simpleavr in Repurposing a Nokia adapter cable - Request for info   
    i brought 4 this year from, one ca-42 from dealextreme at $4.44 (shipping incl), this is the one i used for the spectrum analyzer.
    another two ca-42 from two different ebay sellers ($2.00, each, shipping incl), one more dku-5 from ebay, i was trying to find those older types that has 4/5 wires (Vcc incl.) but to my disappointment, all are the same inside, 3 wires having the same pcb.
    if u get them, i can provide a short write-up / diagrams to show the best way to hack and use it. w/o any modification u can immediately use it (free from launchpad) via the 3 wire, Gnd, Tx, Rx. but u need to power your project separately. i draw the 4th wire 3.3v so i don't need to power my projects separately. but this requires me to break the cable, expose the pcb and replace the 3-wire cable w/ a 4 wire (as u can see on my spectrum analyzer page http://www.simpleavr.com/msp430-projects/rfm12b-spectrum-analyzer, under alternate construction section. i did that one reasonably well with 4 pin headers both way.
    u should expect around 20 days to get them, but they are dirt chip and very useful, especially for small project i built w/ the ti sample chips. i had one w/ RTS line to do arduino bootloading w/o problem.
    anyway, did your old usb cable show up as anything? may be just need to install a driver.
  3. Like
    GeekDoc got a reaction from cde in Powering LEDs With MSP430 Output   
    A picture is worth a thousand words... maybe.

  4. Like
    GeekDoc got a reaction from mnpumar in Powering LEDs With MSP430 Output   
    A picture is worth a thousand words... maybe.

  5. Like
    GeekDoc reacted to bluehash in Repurposing a Nokia adapter cable - Request for info   
    Try installing the PL2303 driver, maybe you'll get lucky.
    From: Mobildia Forums
  6. Like
    GeekDoc got a reaction from JMLB in Tip on unused pins   
    Internal resistor has no effect on output pins. Short version:
    Unused pins: Set to output mode to save processor time.
    Input pins: Be careful when using internal pull-up/pull-down resistors.
  7. Like
    GeekDoc got a reaction from JMLB in timer interrupts not working   
    I was starting to suspect: Windows FAIL.
    I need to start moving more to Linux.
  8. Like
    GeekDoc reacted to gatesphere in MSP430G2xxx Tea Timer   
    Here is my entry for the November 2010 Project of the Month Contest, an MSP430G2xxx based tea timer!
    I love tea, and thought this contest was an excellent reason to actually get off of my lazy behind and put this together.
    Below is my blog post on it, modified slightly to show the pictures and code here rather than just link to them as on my blog. Blog post is available here: http://blog.suspended-chord.info/?c=27
    Below this point is the post:
    Hello all,
    I am an avid tea drinker. As such, I make many cups of various kinds of tea, each with their own optimal steep times. Usually, I just keep track of the time, but I have found that I can make the best cup of tea by setting a timer to go off after a certain amount of time, depending on the style of tea that I am brewing. I find the best results come from going by the following table (based on personal preference and experimentation):
    Tea Variety => Recommended Steep Time
    White tea => 2 minutes
    Green tea => 3 minutes
    Black/Oolong tea => 4 minutes
    Herbal tea/infusions (most varieties) => 5 minutes
    Rooibos tea (African redbush) => 6 minutes
    Chai tea (regardless of base) => 8 minutes
    Kukicha twig tea and other varieties => in intervals of 1 minute
    With this in mind, I decided that I should make a tea timer. This seems simple enough, and it has been on my to-do list for a while anyway, and 43oh! is having an MSP430 Project of the Month Contest, so I decided to hack it together. Turned out rather simple.

    The full part count is as follows:
    [*:3snbat08] 3 toggle switches (or a 3-switch DIP, as I used)
    [*:3snbat08] 4 10k resistors
    [*:3snbat08] 1 5mm green LED
    [*:3snbat08] 1 piezo buzzer with integrated driver circuit
    [*:3snbat08] 1 tact switch/push button
    [*:3snbat08] wire
    [*:3snbat08] Any MSP430 uC with at least 1k flash and a TimerA module (though I could have hacked the WDT to work)
    So, I assembled the circuit on my breadboard, following the schematic at the end of my post, and programmed the MSP430.
    For the code, I borrowed beretta's TimerA code example, and tweaked it to fit the needs of my timer. The timer is to read the input value of the three switches as a binary value to determine tea type, set a "goal" amount of half-second ticks based upon the user's request, and when the user presses the "start" button, go into a waiting period. While the uC is waiting, the LED will be flashed slowly at first, but increasingly faster as the timer ticks closer to the goal. Once the goal amount of ticks has been reached, the LED will be turned on, and the buzzer will sound (mine sounds reminiscent of an old-fashioned tea kettle, so it's suitable). The buzzing can be stopped by pressing the "start" button again to reset the device, and allow another time to be set. Simple enough, right?
    The code is available:

    // MSP430 based Tea Timer // Sets off a buzzer to let you know when your tea is done steeping // Supports several types of tea // suspended-chord (http://blog.suspended-chord.info) /* Tea steeping chart Tea type Time DIP Code ------------------------------------------ White 2 minutes 000 Green 3 minutes 001 Black/Oolong 4 minutes 010 Herbal 5 minutes 011 Chai 8 minutes 100 Rooibos 6 minutes 101 Other 1 minute 110 Other 2 30 seconds 111 */ // circuit: // LED on P1.0 // Piezo buzzer with driver on P1.1 // 3-switch dip (or 3 toggle switches) on P1.4, P1.5, and P1.6 // push button tact on P1.3, pullup resistor //#define DEBUG #define __MSP430G2231__ #include // pin for status LED #define LED BIT0 // pin for buzzer #define BUZZER BIT1 // pin for start switch #define START BIT3 // three consecutive pins for mode selection #define INPUT1 BIT4 #define INPUT2 BIT5 #define INPUT3 BIT6 // numeric value of the first pin #define SHIFT 4 // unused bits #define UNUSED BIT2 + BIT7 // variables unsigned int goal = 0; unsigned int tickCount = 0; unsigned char statusCount = 0; char statusMode = 0; char mode = 0; char reset = 0; volatile unsigned int i = 0; void main() { while(1) { WDTCTL = WDTPW + WDTHOLD; // kill wdt P1OUT = 0; // clear outputs P1DIR = LED + BUZZER + UNUSED; // setup outputs and unused to out/low to reduce power consumption BCSCTL1 = CALBC1_1MHZ; // setup DCO DCOCTL = CALDCO_1MHZ; // setup TimerA TACCR0 = 62499; // .5s cycle with 1MHZ clk and /8 divider // delay a few cycles to debounce i = 0; while (i < 50000) i++; while ((P1IN & START) == START) { // keep setting mode until start switch is pressed // setup mode mode = (P1IN & (INPUT1 + INPUT2 + INPUT3)) >> SHIFT; // setup goal switch (mode) { case 0: // white tea goal = 240; // 2 minutes break; case 1: // green tea goal = 360; // 3 minutes break; case 2: // black/oolong tea goal = 480; // 4 minutes break; case 3: // herbal tea goal = 600; // 5 minutes break; case 4: // chai tea goal = 960; // 8 minutes break; case 5: // rooibos tea goal = 720; // 6 minutes break; case 6: // other goal = 120; // 1 minute break; case 7: // other2 goal = 60; // 30 seconds break; default: goal = 0; } } #ifdef DEBUG goal = 30; // 15 seconds #endif // reset the TAR, and finish setting up TimerA TACTL = TASSEL_2 + ID_3 + MC_1 + TACLR; // select SMCLK/8, up mode, and clear the TAR TACCTL0 = CCIE; // enable interrupts // enable interrupts _enable_interrupt(); // turn on LED P1OUT |= LED; // reset variables statusCount = statusMode = tickCount = reset = 0; // enter LPM1 //LPM1; while (reset == 0); } } // timerA interrupt for CCR0 #pragma vector = TIMERA0_VECTOR __interrupt void CCR0_ISR (void) { tickCount++; // increase tick count // toggle LED increasingly faster as the time counts towards the end statusCount++; if (tickCount >= goal/4) statusMode = 1; if (tickCount >= goal/2) statusMode = 2; if (tickCount >= 3*(goal/4)) statusMode = 3; switch (statusMode) { case 0: if (statusCount >= 4) { // blink every 2 seconds P1OUT ^= LED; // toggle LED statusCount = 0; } break; case 1: if (statusCount >= 3) { // blink every 1.5 seconds P1OUT ^= LED; // toggle LED statusCount = 0; } break; case 2: if (statusCount >= 2) { // blink every 1 second P1OUT ^= LED; // toggle LED statusCount = 0; } break; case 3: default: // blink every .5 second P1OUT ^= LED; // toggle LED statusCount = 0; break; } if (tickCount >= goal) { _disable_interrupt(); // kill interrupts TACCTL0 &= ~CCIE; // disable TimerA CCR0 interrupt //LPM1_EXIT; // exit LPM1 P1OUT |= LED + BUZZER; // buzzer + LED on while ((P1IN & START) == START); // if START pressed, return to main() reset = 1; } }
    Basically, as I stated above, the user selects a mode (tea type) by way of the three switches, and then presses a button to start the timer. When the tea is done steeping, the buzzer goes off, and the user can press the button again to reset it. The switch positions corresponding to the tea types are as follows:
    6, 5, and 4 refer to P1.6, P1.5, and P1.4
    6 5 4 Tea type (time)
    0 0 0 White Tea (2 minutes)
    0 0 1 Green Tea (3 minutes)
    0 1 0 Black/Oolong Tea (4 minutes)
    0 1 1 Herbal Tea/Infusions (5 minutes)
    1 0 0 Chai Tea (8 minutes)
    1 0 1 Rooibos Tea (6 minutes)
    1 1 0 Other1 (1 minute)
    1 1 1 Other2 (30 seconds)
    Now, this isn't the most accurate timer, as I'm not using the crystal, but it's accurate enough to steep a good cup of tea (believe me, I've used it a lot since I hacked it together), and my stopwatch tells me it's accurate to within around 6 seconds on average.
    In the future, I'd like to use a better input mechanism (I might be geeky enough to remember binary codes for tea types, but most are not, so a rotary switch or something would be perfect), maybe a cheap LCD for a status indicator, even showing how much time remains, and potentially having the last two codes (110 and 111) be user programmable for any time in second increments up to half of an unsigned long (as the ticks are half-second ticks). Maybe even shove it all into an Altoids tin for portability and the geek-chic factor. Who knows?
    Anyways, here's the schematic, and a photo of it in action:

    Tea-Timer in action! (notice the LaunchPad is only used as a power supply here... I don't have a battery clip yet.)

    Thanks for reading!
    Keep tweaking~
    EDIT: I'm an idiot sometimes... I forgot the code and images.
  9. Like
    GeekDoc got a reaction from rivalslayer in Need a favicon?   
    Do you want/need a favicon.ico for the site? I was making one for my blog, and thought I'd whip one up for you using your theme colors. Use it or trash it; you won't hurt my feelings. It took all of a couple of minutes.
    16x16px, looks like this:

  10. Like
    GeekDoc got a reaction from mnpumar in Keeping Track of Time?   
    To answer the part that I do know: No, you cannot set a voltage other than Vcc on an output pin.
    What you are looking for is a Digital to Analog Converter (DAC) function, which the MSP430G2231/2211 do not have. The LaunchPad does have a nice ADC (Analog to Digital Converter), but that is obviously the opposite direction.
    I believe there are other MSP430 models with DAC functions, but I'm not sure if they are compatible with the LaunchPad. Others here are more familiar with the rest of the MSP430 line and may be able to help.
  11. Like
    GeekDoc reacted to simpleavr in Self-Powered Breadboard Setup   
    u will need five of those, one for each digit and one for the master controller.
  12. Like
    GeekDoc got a reaction from gatesphere in Weird CCS problem with #define   
    I knew I'd seen it somewhere... MSP430x2xx Family User Guide, section 10.2:
  13. Like
    GeekDoc got a reaction from bluehash in Weird CCS problem with #define   
    I knew I'd seen it somewhere... MSP430x2xx Family User Guide, section 10.2:
  14. Like
    GeekDoc got a reaction from bluehash in Self-Powered Breadboard Setup   
    I wanted a neater way to do some breadboarding at my desk, so I built an enclosure with batteries and two power supplies and mounted some breadboards to it.

    Click the photo to see the build on my blog.
  15. Like
    GeekDoc got a reaction from gatesphere in Self-Powered Breadboard Setup   
    I wanted a neater way to do some breadboarding at my desk, so I built an enclosure with batteries and two power supplies and mounted some breadboards to it.

    Click the photo to see the build on my blog.
  16. Like
    GeekDoc reacted to bluehash in HD44780-based LCD - cursor problem   
    Hi geekdoc, I know you work on this when you get time... but here is another reference project I found.
  17. Like
    GeekDoc reacted to bluehash in [ ENDED ] Nov 2010 - 43oh Project of the Month Contest   
    Entry to the November 2010 contest is open. This is an opportunity for you to show off what you can do with the MSP430. The 43oh community forum has been growing both with good discussions and members. The project section of the forum as well as the Blog has a lot of project ideas you can base your submission on. Feel free to ask questions about the project on the forum.

    Now for the prize:
    Winner : [T]exas Instruments has stepped in to sponsor this month's project with a TI Chronos Watch kit. Thank you for the kit TI!
    Runner up : [G]eekdoc has been kind enough to donate a pristine unopened Launchpad kit. Although you may already have one, having another Launchpad can be quite handy like a project you may not want to take apart or recreate [J]oby's SPI Ninja. Thanks Geekdoc for sponsoring this month's contest giveaway.
    To submit your entry, make an entry into this thread with the following:
    1 - A small description of your project.
    2 - A picture or video of your setup
    3 - Code.
    4 - Schematic(rough/hand drawn is fine as long its legible)
    About judging the winner : A week before the contest ends, a poll will be created with all the project entries. Only members of the forum will be allowed to vote.
    A few simple rules to follow:
    - You must be a member of the 43oh forum at least a week before your submission.
    - One entry from each member will be permitted.
    - Your project can be anything based around the MSP430. You may interface the MSP430 to another controller.
    - You may reuse code from anywhere as long as you give credit to the original author.
    Enjoy yourselves!
  18. Like
    GeekDoc got a reaction from bluehash in Contest - 43oh Project Of The Month   
    It is my honor and pleasure. This forum has given a lot to me.
    ...and, I hope to get some fun ideas from this contest!
  19. Like
    GeekDoc got a reaction from bluehash in Interesting project and comparison to AVR chip   
    Found this interesting blog post. Sorry, it's on another site. Sorry, bluehash. :?
    He uses the internal temp sensor and a phototransistor to monitor his 'fridge. The whole thing communicates over a Blue SMiRF modem!
    He goes on to make a very fair comparison against a comparable AVR model. Worth a look.
  20. Like
    GeekDoc reacted to simpleavr in Interesting project and comparison to AVR chip   
    interesting read, i am working on a similar project. i am using a hoperf rfm12b module ($6) instead of the bluesmirf and get decent results.
    the comparison of the G2231 w/ the tiny24 is based on similar technical spec. i.e. pin count, memory size. but the tiny24 is not that popular, just google "attiny2313 projects" and "attiny24 projects" and u can see. a more real world comparison would be w/ the tiny2313 where most avr fans are using.
    i would say the G2231 have my liking, mainly on being 16bit and inexpensive. and adopting the launchpad from avr development is effortless to me (guess mainly because i am on linux, w/ some compiler and tools). i mostly work w/ attiny2313 on small projects. what i found
    . attiny2313 does not have ADC, while G2231 has 10 bit ADC, now i do not need to use a atmega8 for small ADC projects.
    . G2231 ADC is "fast" and versatile, able to setup ranges, etc.
    . G2231 is inexpensive.
    however, there is one big thing missing on the G2231 where tiny2313 has, a hardware uart. i've been messing around w/ launchpad's various uart implementations and cannot get decent results. it's reliable at low speed, but at higher speed i am still having a lot of problems. doing it via software also means that you have less timer / interrupt resources for other things.
  21. Like
    GeekDoc reacted to cde in Launchpad Easy Breadboarding Trick   
    Just a follow-up. Finally sat down and soldered the sockets on. Easiest way that I could think of to make sure the sockets where nice and level (and straight) was to mount the sockets on a header on a breadboard. Since I didn't have one wide enough, I used two. And it also made it easier than using a helping hands holder.

    Flux helped alot. How do people solder or desolder/fix things with 15w irons anyway? The solder won't remelt a second time, and I suck at using desoldering braided wire.
    Anyway, the real follow-up is this. Made a small jumper from a 4 pin header, that brings p2.7 to p2.4 and p2.6 to p2.5. I used a pair of wire cutters at the very edge of the lead, enough to snip it without cutting it off completely. This let me bend it across to the next lead. This pair is for p2.6 to p2.5. Even with the extended lead header I had, I couldn't do the same to the top, so I took an extra header pin, and using a helping hands holder, positioned it on top. After soldering the pins together, clipped the excess on either side.

    Optionally, you can throw some heatshink on it.

    Only had yellow in that size. Yuck. Will either replace with black eventually (or launchpad red), or just leave it uncovered.
  22. Like
    GeekDoc reacted to cde in Choosing a MSP430 chip   
    Found this nice brochure on TI's site.
    A complete breakdown of the various msp430 chips, what peripherals they has, and what those peripherals do as well as explaining the different LPM Modes. Well, except for the most important question to us, SBW capability.
    Interesting to note, there is quite a bit of overlapping of the MSP430G line and the MSP430F20xx line. Basically, all of the basic options (Different type of ADC on 2 parts is the only difference), except that the Valueline chips are just cheaper (And apparently, use less power too). I expect the F20xx line to be obsoleted eventually in favor of the ValueLine chips.
    Edit: The F20xx line can come in better temperature rating -40 to 105c, vs -40 to 85c)
    Aside from the MSP430G and F20xx lines which come in nice PDIP and SOIC packages, there is the MSP430F21x1 Line. Also comes in SOIC, has more gpio/flash/ram than the Gxx or F20xx lines, but no hardware UART/SPI/I2C or good ADC, but worst of all, NO SPY-BI-WIRE, ie, no launchpad/ez430 support. Avoid the MSP430F21x1 Line of chips unless you want to buy a new programmer. For the same reason, avoid the entire MSP430F1xxx Family.
    The next step above the Gxx and F20xx line that we can use is the MSP430F21x2 line. It's like doubling a Gxxx chip. More Flash, More Ram, More GPIO, More Timer Comparators, double the Hardware Interfaces, at about three times the cost haha (1.55 in 1k volume vs the 0.52 in 1k for the G2231). They come in the smallest hobbyist friendly package, 28-TSSOP, and are SBW compatible.
    The final line I will talk about is the MSP430F22xx line. They are basically bigger badder versions of the F21x2 line (More Ram/Flash/GPIO/Timers and a 12ch vs 10ch ADC). The F22x4 version has an a pair of opamps built in compared to the F22x2 line (20 cents more) but otherwise the same thing. The thing is that they come in a 38 pin TSSOP package. 28 pin TSSOP is the highest that I have seen in affordable dip breakout packages, so this is probably the limit for the general hobbyist unless you will etch/order custom pcbs. SBW compatible. The highest end version F227x has 32kbits of Flash, which is beyond CCS's 16kb limit. The Lower end F223x has 8kb flash, which is beyond IAR's 4kb limit. Which means you can still use them in CCS or IAR, but only up to the code limit, but you'd be paying more for using less (Unless you need to Opamps). MSPGCC has no limit.
    There are other SBW chips, but they are in insanely small pin packages and I won't bother going through the datasheets. As well, the planned 20pin DIP chips should be SBW and Launchpad compatible as well.
    Hopefully TI adds SBW as a searchable parameter for their search tool soon/eventually.
    Launchpad/EX430 compatible lines:
    G2xxx 14-DIP/SOIC (Valueline/Launchpad Standard)
    F20xx 14-DIP/SOIC (But unless you have a bargain, the G2xxx line is cheaper/better imho)
    F21x2 28-TSSOP (2 or 3 times as good as Valueline) IAR can only use half of the highet chip's flash.
    F22xx 38-TSSOP (3 or 4 times better than Valueline) CCS can only use half of the highest chip's flash. IAR can only use half/a fourth/an eighth of the flash on the F223x/F225x/F227x respectfully.
  23. Like
    GeekDoc got a reaction from NJC in Connecting Piezo Vibration Sensor to LaunchPad   
    Thanks gatesphere
    BTW iragdoll: In answer to your question about code examples, NJC's code is always well documented. Try this one.
    Gatesphere did a simpler ADC example, linked in this topic.
  24. Like
    GeekDoc got a reaction from bluehash in 10-pin Stacking Header Source   
    This is NOT an endorsement, since I have not dealt with this company at all, but I just saw that http://www.launchpadshields.com/ has 10-pin stackable headers for pretty cheap.
    The site is terrible, and they're opening with just this one product, but shipping is free in the US and the price is pretty good. They evidently plan to sell custom shields for the LaunchPad. The first shield they have planned is just a custom-sized protoboard. They should have licensed JoesBytes' design; at least add some functionality. (Joe: Maybe contact them and work a deal?)
    I hope they make it; I'd like to see some cool shields. I'm not sure the "LaunchPadShields.com" or "LaunchPad Electronics" names will survive trademark scrutiny. All in all, a weak start at a business, so they may not last long.
    TLDR: 10-pin headers we've all been looking for at reasonable prices. May not last long.
  25. Like
    GeekDoc got a reaction from bluehash in Joby Taffey made Hack-A-Day!   
    One of our members was featured on Hack-A-Day! They featured his work on the USB dongle from the Girl Tech IM-ME device. Have a look: HERE
    Nice work Joby!
  • Create New...