Jump to content

GeekDoc

Members
  • Content Count

    1,391
  • Joined

  • Last visited

  • Days Won

    13

Reputation Activity

  1. 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!
  2. Like
    GeekDoc reacted to cde in Connecting Piezo Vibration Sensor to LaunchPad   
    You can get them cheaper on ebay (No minimum charge, no excessive shipping) if you can weight about 2 week.
     
    1N4728
     
    A couple of them are at 1.22 buy it now free shipping for 10. You could even use the best offer and try to get them down to 99 cents.
     
    There's currently an auction for 30 3.3v Zeners (1/2watt instead of 1watt though) but no part number for 1.49 or best offer.
     
    Ebay is often the best for one-off part orders. Unless you are ordering 15+ dollars worth of parts, shipping from web-stores hurt.
  3. Like
    GeekDoc got a reaction from gatesphere in Connecting Piezo Vibration Sensor to LaunchPad   
    You can use any P1.x pin as long as you configure it to ADC.*
     
    The extra components there are for voltage limiting (zener diode) and keeping the pin voltage from floating when there is no voltage from the peizo (pull-down resistor).*
     
    The Arduino is a 5v device and accepts 5v logic. The MSP430 is a 3.3v device; 5v logic could damage the MSP430. Replacing the zener with a 3.3v version will limit the output to 3.3v (anything higher will be shunted to ground through the zener diode). Using the 5.1v zener could allow a damaging voltage level (5.1v) to your MSP430.*
     
    *Note: I'm not the best at this stuff on this forum, and I have been wrong before. :? Hopefully others will confirm or correct my post.
     
    -Doc
  4. Like
    GeekDoc got a reaction from znanev in Free shipping from the eStore   
    &^%# IT! They always get me with free shipping!
     
    In for another (free) EZ430-F2013 and three (more) LaunchPads. Why? Because I think they lost my last backorder and, if not, can you really have too many LaunchPads? (Seriously, I'll probably give them away to friends if I get both orders.)
     
    BTW: You can only use the EZFREE2013 code once. I tried. Whaaat? I was curious.
     
    -Doc
  5. Like
    GeekDoc got a reaction from bluehash in Halloween Projects with the Launchpad?   
    I had an idea that I might use for Halloween:
     
    Hide a device in the bushes near a walkway that uses a PIR sensor (still trying to find thos RS ones...). When triggered, run a cell phone vibrating motor attached to the bush to shake it slightly (at this point, assume someone looks that way). After a second or two, slowly (~2-3 sec) brighten two red LED "eyes" to look spooky. Then (optional), do a second or two of bright white LEDs in a strobe to really make them jump back. Bonus: Add some screechy sound with the strobe.
     
    Parts:

    MSP430
    PIR sensor (or sub some other sensor)
    2 red LED (5-10mm)
    vibrating motor
    transistor to switch motor
    batteries (I'm planning a 9v with V-reg)
    resistors for LEDs
    3 bright white LED (optional)
    speaker (optional)
     
    I think most of us have most of these parts handy, right? I'm going to try to make one or two of these before Halloween. :twisted:
  6. Like
    GeekDoc reacted to cde in Parallax PIR sensor and LaunchPad - help?   
    Just a heads up. If you want a similar PIR sensor for cheaper, and it comes with a bonus case with 2AA holder and plenty of space ;P
     
    Radioshack sku 630-0282
    Clearance item/Close Out price. The bigger Radioshacks have them, but have them search the sku in the district tool if not (the online one, not the POS one). Talking Pumpkin Insert. 97 cents.
     


     
    Same BISS0001 PIR controller, comparable PIR sensor (I opened one and checked).
     
    All smd caps/resistors, so it lies flat if you want to take it out of the case.
     
    Picked up three. At 1.03 each, I couldn't resist. Two will be left alone, and one will add a msp430 + rtc as a data logger. Every time it is trigger, +1 to a byte section of the inforam. (Unless I can get a eeprom). After halloween, I'll download the data, and have a log of every time it triggered due to the rtc.
  7. Like
    GeekDoc reacted to bluehash in HD44780-based LCD - cursor problem   
    Remove all the externs as gatesphere suggested.
    Also LCD_data() is not declared nor defined. Those functions need to be resolved first.
  8. Like
    GeekDoc reacted to gatesphere in HD44780-based LCD - cursor problem   
    To me, the problem seems to be your heavy use of the "extern" keyword. It's un-needed in any of those files, but the file causing issues is lcd.h.
     
    The code (starting on line 70):

    extern void vWait( int uibaseinterval, int ucrounds); extern void LCD_init(void); void LCD_sendByte( char data); extern void LCD_inst( char data); extern void LCD_char( char data); extern void LCD_string(char const *point); extern void LCD_cursor( char data); extern void LCD_write_CGRAM( char CGR_addr,const char *CGR_data); extern void LCD_init_CGRAM(void); extern void LCD_disp_allpixels (void);
     
    I'd just take the extern off of those. Your function calls will all be in the right scope, so long as you include lcd.h. If lcd.c is in your project, CCS/IAR/gcc will know enough to compile it without you telling it to. Including lcd.h lets the compiler know that those functions exist and will be found elsewhere. Using extern here is just overkill and confusing the compiler. Or, at least that's what I think. I could be wrong. Try it and see?
  9. Like
    GeekDoc reacted to gatesphere in NXP Embed Design Challenge - Free LPC1768 kit   
    Good news! I've gotten it to work!
     
    Bad news... it depends on a heavy (but free) Eclipse-based IDE (however, it uses gcc-arm behind the scenes, so there is no code-size limit!). Also, no mbed libraries, nor JTAG/debugging. But that might just prompt me to write an LPChere framework ala MSPhere, and there's always serial monitoring.
     
    I'll be doing a blog post later. For now, I must be off. Just thought I'd share the good news!
  10. Like
    GeekDoc reacted to bluehash in HD44780-based LCD - cursor problem   
    In LCD-functions.c,
    "defines" is misspelled.
    Fix:Rename "LCD-defines.h" to "LCD-definies.h"
    You will also eventually need "LCD-functions.h" which was not included in the zip file.
  11. Like
    GeekDoc reacted to juani_c in Launchpad+Accelerometer+Processing=Snake game!!!   
    I made this little project and wanted to share it. The code is mostly from "Half Duplex Software UART on the LaunchPad" by NJC, I just added the ADC parts I needed. The Processing application send first a "X" and the LP answer with the value from one of the axes, then send a "Y" and you get the value from the other axis. After that the soft update the snake position and repeat the process. In order to start the game you have to click on the START button (pretty obvious), you lose if the snake touchs any of the sides, also the length and speed increase as you eat the little boxes.
    The codes are far from perfect and can be improved. I'm making a little video (that actually took me almost the same amount of time I spent programming) and I'll upload it in a while.
     
     
    EDIT:here is the video
    Launchpad-Snake.rar
  12. Like
    GeekDoc got a reaction from bluehash in Happy Birthday bluehash (23 SEP 2010)   
    Just noticed at the bottom that it is your birthday! Gratz!
     
    I'd have got you something, but I wouldn't know where to send it (and LaunchPads are on backorder ).
     
    -Doc
  13. Like
    GeekDoc got a reaction from jbremnant in Share pics of your workspace setup   
    I was browsing through bluehash's other site, and came across this link showing his workspace (drool):
    http://www.machinegrid.com/2009/12/the-jerker-geek-desk-workbench/
     

     
    Personally, I have a 6-foot folding table in the basement for my workspace (I'll add a pic later).
     
    I would like to see pics of others' set-ups, perhaps with lists/descriptions of their main features/tools. At the very least, it would give a reason to clean up your work area! (As I must do before taking a pic. :oops: )
     
    Anyone willing to share? Post pics of your coding/building areas (mine are separate) and the tools/equipment in them.
     
    -Doc
  14. Like
    GeekDoc got a reaction from bluehash in Android Bluetooth Oscilloscope   
    I think I just geeked in my pants! :
     
    http://projectproto.blogspot.com/2010/09/android-bluetooth-oscilloscope.html
  15. Like
    GeekDoc reacted to simpleavr in HD44780-based LCD - cursor problem   
    actually i think it is the other way around, to use the XIN XOUT as IOs, i have to set them to 0s
    i.e.
    P2SEL &= ~(BIT6|BIT7);
     
    it is more consistent this way, all P1 pins have P1SEL bit low when they are digital IOs.
     
    i checked the datasheet p.43 and p.44 to confirm this, the tables also implies that u cannot use P2.7 as IO when P2.6 is timer output.
     
    i observed this as i always sets P2SEL=0x00; to make them available as IO.
     
    i would guess that at POR value of P2SEL is set to BIT6+BIT7 (aux function, but default setting) and u have to reset them (turn off) to enable IO.
  16. Like
    GeekDoc reacted to gatesphere in HD44780-based LCD - cursor problem   
    This is quite easy, if you don't have the crystal soldered on. These two pins are P2.6 and P2.7, and to enable them as GPIO pins, you simply use something like...

    P2SEL |= BIT6 + BIT7;
    This register (the PxSEL register) tells the MSP430 which function to use the pin for. P1 is set by default to be GPIO, and P2 is set by default to be for peripheral use. Setting the appropriate bits to 1 in the PxSEL registers tells the MSP430 to use the secondary mode, which for P2 is as a GPIO pin.
     
    Hope this helps!
     
    Oh, and cde... great idea with the LEDs. I never would have thought of that!
  17. Like
    GeekDoc reacted to cde in HD44780-based LCD - cursor problem   
    Two options for debugging, and they can be done simultaneously.
     
    First, throw some leds between the shift register and the lcd. Don't know how much current can be sourced from the register, but all you need is enough to light them for debugging purposes. This allows you to ensure every control nibble you push is what it should be.
     
    Second, you could tie the register's latch to its clock, and drive the lcd's enable pin directly. More control, same number of lines.
     
    Since the 2 line setup comes relatively quick into using the lcd, and the first five you should be able to verify quickly.
     
    Additionally, can you place the cursor on ANY line 2 ram address? Try a loop moving it to every position(And write a character) from 0 to 255.
    According to http://www.spikenzielabs.com/SpikenzieL ... ow_To.html (and to a page with alot more detailed DDRAM address configurations that I can no longer find since I saw it like 2 weeks ago, errr http://ouwehand.net/~peter/lcd/lcd0.sht ... e_displays), the address for the second row of a 2x16 is at 0xC0. Not 0x40. Try that.
  18. Like
    GeekDoc reacted to gatesphere in HD44780-based LCD - cursor problem   
    Ah, gotcha. Good.
     
    Thanks for the thought, and ouch! Hope your mouth feels better soon!
     
    Looking at your code and the datasheet (60 pages, yeesh), you do have the right value being sent during initialization. One thing I might suggest is taking out the 595, just for now, to see if you can get it to work directly in 4-wire mode. Again, binary values help there. And since you'd be using P1 directly, you could just set P1OUT to whatever value you needed. One thing I noticed in the sheet and didn't quite find in your code (probably my bad, I'm terrible at reading other people's code) is that the datasheet said that you can simply shift the cursor beyond the 40th character to move it to the beginning of the second line (and any subsequent lines). Maybe something to try?
     
    Any time. And the same goes for you!
     
    EDIT: Also, interesting wait function. How accurate is it? It might be nice to include in MSPhere...
×
×
  • Create New...