Jump to content
43oh

chibiace

Members
  • Content Count

    255
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    chibiace got a reaction from abecedarian in Controlling a Relay   
    if you have a 5v relay, you will need to supply it 5v from a separate 5v supply.
    connect both the gnds together from the 5v supply and msp430, p1.0 connects through a resistor to the base of the npn transistor.
    when p1.0 goes high it will allow the 5v to flow through the relay then through the transistor to gnd which will turn on your relay.
    the 3.3v and 5v are not connected as the transistor keeps them apart. but the grounds need to be connected.
  2. Like
    chibiace reacted to RobG in DX - super cheap SMD LEDs   
    Since we are talking about good DX deals, here are two things I got recently:
    40pcs 30cm F-F
    80pcs 21cm F-F
     
    They also have a nice selection of SMD tact switches, like this one.
  3. Like
    chibiace reacted to cde in Launchpad v1.4 PCBs FREE with Every Order   
    How cheap is cheap? 2.50 for a 10pole, .59 cents for a 5pole? Let me know, ill share a secret tomorrow.
    (TE/Amp "282834" Arrow has free shipping, Digikey and Mouser have them too, and they come in 2pole to 12pole. Prices vary alot, but so does in-stock quantities. Arrow is out of the 2pole and at 17 cents a piece ARG and the 5pole at 57 cents. Digikey has the 2pole at 48 cents., etc.)
    1-282834-0_sml.jpg
  4. Like
    chibiace got a reaction from bluehash in Launchpad v1.4 PCBs FREE with Every Order   
    i recieved it early in the week so less then 2 weeks.
     
    still cant find those switches.
     

  5. Like
    chibiace got a reaction from abecedarian in Adopt a noob?   
    i usually order jelly bean stuff from tayda, they arent as cheap as some others on ebay but i can get stuff from them to new zealand within 3 weeks. dealextreme has some nice stuff now too but they take like 2 months. shocking.
     
    on the sparkfun free day i got one of their id-20 rfid readers, used it with an arduino and some really cheap tags from ebay, doubtful it would work on 3.3v.
     
    if you need a couple more msp430s to play with you could order some samples, like msp430g2253 and msp430g2231.
     
    perhaps try a led matrix display that you can write afew characters on, or write up conways game of life
  6. Like
    chibiace got a reaction from SugarAddict in What are these two dots?   
    There are four lights.
  7. Like
    chibiace got a reaction from cubeberg in MSP430 Sewable - any interest?   
    http://media.digikey.com/Photos/ECS%20Photos/ECS-2X62%20SERIES.JPG
  8. Like
    chibiace got a reaction from bluehash in msp430g2230 - 8 Pins   
    just received a couple of msp430g2230 samples for testing, sadly wouldnt work with my older firmwared launchpad with the zif socket but i had one of the newer ones around. pretty similar to the msp430g2231
     

  9. Like
    chibiace got a reaction from tonesenna in msp430g2230 - 8 Pins   
    just received a couple of msp430g2230 samples for testing, sadly wouldnt work with my older firmwared launchpad with the zif socket but i had one of the newer ones around. pretty similar to the msp430g2231
     

  10. Like
    chibiace got a reaction from mprairie in eagle cad library for the msp430g2553?   
    this should have it inside, http://www.ti.com/litv/zip/slac060e
     
    G2XX3---N20
  11. Like
    chibiace reacted to JWoodrell in first PCB back from fab and semi-populated :)   
    well I am proud of this so I wanted to show it off, even though I don't have all the bits to make it functional yet (and the Army is kicking me to a month long training thing on Thursday so it will have to wait till I get back...
     
    but anyway, I had my little USB prototype V1.2 sent to a fab place (Osh Park) and they had them done and to me yesterday, even though I ordered them a week and a half later than the seeed ones (still waiting on them)... I ordered these on the 4th, and got them on the 22nd, oh and it only cost me $5.00 per square inch of board (you get 3 copies of the board) mine are smaller than a square inch so I only paid $3.10 to have these made
     
    anyway, so this is my first PCB, and my first attempt at re-flow soldering, the YZP, and YZV parts are ridiculously tiny, but i got them placed and they stuck properly. (4 point ball grid array, and 6 point BGA, .5mm pitch, the overall chip is only 1mm square, or 1 x 1.5mm for the YZP...
     
    anyway here is what it looks like, I know there is a bridge on the 6 legged chip, I am not sure if I used too much solder paste, or not enough to generate the tension to pull that down?... but I can fix that by hand pretty easy



     
    code wise I am pretty close to being able to receive properly. I have it syncing correctly, and am working on the NRZI and bit destuffing code (in a month when I get back from training)
  12. Like
    chibiace got a reaction from oetroc in LP screw terminal power connector   
    I needed something to test my lm2576 3.3v switch mode power supply that i had built the other day, so i desoldered the male headers at the bottom of the launchpad and slotted in a cheap 2 way screw terminal.
     

     
    there is a tiny bit of over hang and only G G V are visible on the silkscreen but that is alright for me.
    im sure to use this for battery hookup in the future.
     
    if those 0.1" screw terminals weren't so damned expensive i would replace all of the other female headers with them. :twisted:
  13. Like
    chibiace reacted to Philipp in $4.99 Stellaris (Cortex-M4) LaunchPad   
    FYI: Some kind of self-promotion
    I modified my stellaris Launchpad to work with a single-cell LiPo battery.
    Turned out that there is some kind of research involved, instead of just plugging it in.
    http://blog.psten.de/post/fuel-for-the-stellaris-rocket

  14. Like
    chibiace got a reaction from BattleaxeAU in Hello from Victoria, Australia   
    Hello There!
  15. Like
    chibiace got a reaction from pine in energia device support   
    how about chips such as the msp430f2013 which have 16-bit Sigma Delta adc
  16. Like
    chibiace reacted to rockets4kids in energia device support   
    I have not used Energia, but the 2013 is similar enough to the G2 series that the basic peripherals should works just fine. Needless to say, you should not expect to find support for the SD16 peripheral.
     
    Speaking of the SD16 on the F2013, I have been playing with that recently. I have been unable to achieve more than 12 bits of usable precision on a breadboard. I am not sure if this is a function of noise on the breadboard, or it is inherent to the design of the F2013. I can watch the noise drop steadily as I increase the oversampling rate but I can still only get 12 bits at the *maximum* oversample rate (1024x) so I am inclined to think that the problem is inherent to the F2013.
     
    If you really need 16 bits of precision, you may wish to look elsewhere. I sampled some msp430afe253 parts which have three SD24 ADCs along with a separate analog front end but have yet to complete testing with them yet.
     
    BTW, if you already have the SD16 working and you are getting better than 12 bits of precision, I'd love to hear how you are doing it!
  17. Like
    chibiace reacted to RobG in LED board with shift registers   
    I use Seeed's Fusion service to make my boards.
     


  18. Like
    chibiace reacted to The Chilango power in MSP430 and LCD16X2 My first project   
    Hola les muestro mi primer proyecto con MSP430 LaunchPad es un simple LCD 16X2


     

    #include #include "LCD_v1.h" #define LED1 BIT0 #define LED2 BIT6 #define B1 BIT3 //void setup(void); unsigned char i; typedef char* cadena; int main(void) { cadena string; WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ; // Set range DCOCTL = CALDCO_1MHZ; P1REN = 0x00; P1SEL = 0x00; P1IE = 0x00; Inicializa_LCD(); while(1){ Comando_LCD(CLEAR); Dato_String_LCDEx(LN1," HOLA MUNDO "); Dato_String_LCDEx(LN2, " **MSP430** "); delay_ms(2000); Comando_LCD(CLEAR); Dato_String_LCDEx(LN1," HECHO POR "); Dato_String_LCDEx(LN2,"=> THE CHILANGO POWER"); for(i = 0;i < 8;i++){ Comando_LCD(SHIFT_DISP_RIGHT); delay_ms(400); } for(i = 0;i < 14;i++){ Comando_LCD(SHIFT_DISP_LEFT); delay_ms(400); } delay_ms(2000); string = "MSP430 LaunchPad "; Comando_LCD(CLEAR); while(*string){ Dato_LCD(*string++); delay_ms(300); } string = "DATE 27/08/2012"; GoToXY(2,1); while(*string){ Dato_LCD(*string++); delay_ms(300); } delay_ms(1000); for(i=0;i<5;i++){ Comando_LCD(DOFF); delay_ms(200); Comando_LCD(DON); delay_ms(200); } Comando_LCD(DON); delay_ms(1500); } }
     

    /* * LCD_V1.c * * Created on: 13/08/2012 * Author: THE CHILANGO POWER */ #include "LCD_V1.h" //********************************************************** /* Inicializacion del LCD segun fabricante */ //********************************************************** void Inicializa_LCD(void){ PDIR_LCD = 0; POUT_LCD = 0; delay_ms(100); PDIR_LCD |= PDIR_BIT1_LCD | PDIR_BIT2_LCD | PDIR_BIT3_LCD | PDIR_BIT4_LCD; PDIR_LCD |= PDIR_PIN_RS | PDIR_PIN_E; POUT_LCD &= ~POUT_PIN_E; POUT_LCD &= ~POUT_PIN_RS; Flex_port(0X03); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &= ~POUT_PIN_E; delay_ms(5); Flex_port(0X03); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &= ~POUT_PIN_E; delay_us(160); Flex_port(0X03); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &= ~POUT_PIN_E; delay_us(160); Flex_port(NIBLE); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &= ~POUT_PIN_E; delay_us(160); Comando_LCD(0x28); Comando_LCD(0x08); Comando_LCD(0x01); // Comando_LCD(LINES_5X7 & FOUR_BIT); // Comando_LCD(DON & CURSOR_OFF & BLINK_OFF); // Comando_LCD(CLEAR); Comando_LCD(0x06); /* Entry Mode Set */ /* Incremento del cursor */ Comando_LCD(0x0C); return; } //********************************************************** /* Indica al LCD comandos */ //********************************************************** void Comando_LCD(unsigned char dato) { volatile unsigned char temp; /* variable auxiliar */ //delay_ms(10); /* Retardo de 10 mseg. */ POUT_LCD &=~POUT_PIN_RS; temp = dato; /* Respaldo del dato original */ dato = dato >> 4; /* Corrimiento del nible alto */ Flex_port(dato); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &=~POUT_PIN_E; Flex_port(temp); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &=~POUT_PIN_E; delay_us(2000); return; } //********************************************************** /* Manda datos al LCD */ //********************************************************** void Dato_LCD(unsigned char dato) { volatile unsigned char temp; /* variable auxiliar */ POUT_LCD |= POUT_PIN_RS; // delay_ms(10); /* Retardo de 10 mseg. */ temp = dato; /* Respaldo del dato original */ dato = dato >> 4; /* Corrimiento del nible alto */ Flex_port(dato); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &=~POUT_PIN_E; Flex_port(temp); delay_us(50); POUT_LCD |= POUT_PIN_E; delay_us(1); POUT_LCD &=~POUT_PIN_E; POUT_LCD &=~ POUT_PIN_RS; delay_us(50); return; } //********************************************************** // Escribe una cadena desde memoria de programa al LCD //********************************************************** void Datos_LCD(const char *buffer) { while(*buffer) // Write data to LCD up to null { Dato_LCD(*buffer); // Write character to LCD buffer++; // Increment buffer } return; } //********************************************************** // Escribe una cadena desde memoria de datos al LCD //********************************************************** void Dato_String_LCD(char *buffer) { while(*buffer) // Write data to LCD up to null { Dato_LCD(*buffer); // Write character to LCD buffer++; // Increment buffer } return; } void Flex_port(unsigned char data){ POUT_LCD &= ~BIT1_LCD; POUT_LCD &= ~BIT2_LCD; POUT_LCD &= ~BIT3_LCD; POUT_LCD &= ~BIT4_LCD; if(data & BIT0)POUT_LCD |= BIT1_LCD; if(data & BIT1)POUT_LCD |= BIT2_LCD; if(data & BIT2)POUT_LCD |= BIT3_LCD; if(data & BIT3)POUT_LCD |= BIT4_LCD; return; } void Dato_String_LCDEx(unsigned char xLine, char *buffer) { Comando_LCD(xLine); while(*buffer) // Write data to LCD up to null { Dato_LCD(*buffer); // Write character to LCD buffer++; // Increment buffer } return; } void Dato_LCDEx(unsigned char xLine, const char *buffer) { Comando_LCD(xLine); while(*buffer) // Write data to LCD up to null { Dato_LCD(*buffer); // Write character to LCD buffer++; // Increment buffer } return; } void GoToXY(unsigned char Line, unsigned char Position) { switch(Line) { case 1: Position += 128; Comando_LCD(Position); break; case 2: Position +=167; Comando_LCD(Position); break; } return; } void clear_LCD(void){ Dato_String_LCDEx(LN1," "); Dato_String_LCDEx(LN2," "); GoToXY(1,0); return; } void delay_us(unsigned int time){ while(--time)__delay_cycles (1); return; } void delay_ms(unsigned int time){ while(--time)__delay_cycles (1000); return; }
     

    #ifndef LCD_V1_H_ #define LCD_V1_H_ #include /* * File: LCD_v1.h * Author: THE CHILANGO POWER * * Created on 13 de julio de 2012, 03:32 PM */ // Manejo de un Display de Cristal Liquido LCD 16X4 // de 16 caracteres por 4 lineas, con una interface // de 4 lineas: // // Conexiones del LCD al Microcontrolador #define POUT_LCD P1OUT #define PDIR_LCD P1DIR #define POUT_PIN_RS BIT0 // Define la Columna 1 #define POUT_PIN_E BIT1 // Define la Columna 3 #define PDIR_PIN_RS BIT0 // Define la Columna 1 #define PDIR_PIN_E BIT1 // Define la Columna 3 #define BIT1_LCD BIT4 #define BIT2_LCD BIT5 #define BIT3_LCD BIT6 #define BIT4_LCD BIT7 #define PDIR_BIT1_LCD BIT4 #define PDIR_BIT2_LCD BIT5 #define PDIR_BIT3_LCD BIT6 #define PDIR_BIT4_LCD BIT7 /* Configuracion del Display y cursor */ #define DON 0X0F //0b00001111 /* Display encendido */ #define DOFF 0X0B //0b00001011 /* Display apagado */ #define CURSOR_HOME 0X02 //0b00000010 /* Cursor encendido */ #define CURSOR_ON 0X0F //0b00001111 /* Cursor encendido */ #define CURSOR_OFF 0X0C //0b00001100 /* Cursor apagado */ #define BLINK_ON 0X0F //0b00001111 /* Cursor con parpadeo */ #define BLINK_OFF 0X0E //0b00001110 /* Cursor sin parpadeo */ #define CLEAR 0X01 //0b00000001 /* Display encendido */ /* Modo de entrada */ #define INCREMENT 0X06 //0b00000110 /* Incrementa la posicion del cursor */ #define DECREMENT 0X04 //0b00000100 /* Decrementa la posicion del cursor */ /* Configuracion de los desplazamientos del cursor y del Display*/ #define SHIFT_CUR_LEFT 0X13 //0b00010011 /* Corrimiento del cursor a la izquierda */ #define SHIFT_CUR_RIGHT 0X17 //0b00010111 /* Corrimiento del cursor a la derecha */ #define SHIFT_DISP_LEFT 0X1B //0b00011011 /* Corrimiento del display a la izquierda */ #define SHIFT_DISP_RIGHT 0X1F //0b00011111 /* Corrimiento del display a la derecha */ /* Funciones de inicializacion */ #define NIBLE 0X02 //0b00000010 /* interface a 4 bits */ #define FOUR_BIT 0X2F //0b00101111 /* Interface a 4-bit */ #define EIGHT_BIT 0X3F //0b00111111 /* Interface a 8-bit */ #define LINE_5X7 0X33 //0b00110011 /* Una linea, caracter 5x7 */ #define LINE_5X10 0X37 //0b00110111 /* Una linea, caracter 5x10 */ #define LINES_5X7 0X3B //0b00111011 /* Dos lineas. character 5x7 */ /* Lineas de trabajo */ #define DDRAM_LINEA_1 0X80 //0b10000000 /* Linea 1 */ #define DDRAM_LINEA_2 0XC0 //0b11000000 /* Linea 2 */ #define DDRAM_LINEA_3 0X90 //0b10010000 /* Linea 3 */ #define DDRAM_LINEA_4 0XD0 //0b11010000 /* Linea 4 */ #define LN1 DDRAM_LINEA_1 #define LN2 DDRAM_LINEA_2 /// Configuracion del puerto // /////////////////////////////////////////////////////////////////////////////// //Prototipos de funciones /////////////////////////////////////////////////////////////////////////////// void Flex_port(unsigned char data); void Inicializa_LCD(void); /* Inicializa LCD */ void Comando_LCD(unsigned char dato); /* Indica al LCD un comando */ void Dato_LCD(unsigned char dato); /* Indica al LCD un caracter */ void Datos_LCD(const char *buffer); /* escribe una cadena desde la memoria de programa al LCD */ void Dato_String_LCD(char *buffer); /* escribe una cadena desde la memoria de datos al LCD */ void Dato_String_LCDEx(unsigned char xLine, char *buffer); void Dato_LCDEx(unsigned char xLine, const char *buffer); void GoToXY(unsigned char Line, unsigned char Position); void delay_us(unsigned int time); void clear_LCD(void); void delay_ms(unsigned int time); #endif /* LCD_V1_H_ */
  19. Like
    chibiace got a reaction from Rickta59 in Do you want a linux binary distribution?   
    Hi thanks
     
    this is the link you mentioned:
     
    https://docs.google.com/open?id=0B8SEZ58ZRPEOYlhYV0tfSjJtdzA
     
    i also had to run as root because of rxtx and do these before i could get anything to compile

    cd hardware/tools chmod +x build-mspgcc ./build-mspgcc ln -s /usr/lib64/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2 ln -s /usr/lib64/libmpc.so.2 /usr/lib64/libmpc.so.3
     
    got it working now. at least with blink
  20. Like
    chibiace reacted to art65536 in Do you want a linux binary distribution?   
    few days ago i make working build on my ArchLinux x86-64, but i cant give link becase i new user here and antispam engine think i spamer .
  21. Like
    chibiace got a reaction from bcarroll in Do you want a linux binary distribution?   
    Im using fedora 17 64bit, no luck on getting energia working as of yet.
  22. Like
    chibiace reacted to xpg in ENC28J60 Booster   
    This Booster has already shown its face in viewtopic.php?f=9&t=3074 and viewtopic.php?f=9&t=2581.
    So here are some more pictures and the schematics. Nothing fancy, but my first PCB I actually got made :-):
     
    Board (rev 2):

     
    Schematics (rev 2):

     
    PCB with ENC28J60 (rev 1):

     
    Assembled mounted on Launchpad (rev 1):

     
    Main change between rev 1 and 2 is that the SPI connections are correct. Also the power traces are thicker.
    The RJ-45 mag jack is a cheap one I got on E-bay for 2 USD. If I end up using this board heavily, there are two changes I would make for a new revision: First, extend it over the Emulation-area, rather than the switches and leds. Second, the reset-line of the ENC28J60 is tied to the reset-line of the Launchpad. While that does save a pin, it makes it impossible to use a debugger :oops: .
  23. Like
    chibiace got a reaction from RobG in Electronic LED Dice   
    Here is a project i worked on just before christmas last year. my main use for this has been to ask it a question like a magic 8 ball and recieve an answer ranging from 1=no 6=yes
     


     
     
    Top:

     
    Bottom (strip/vero board is lovely to work with):

     
    lol no current limiting resistors.

     
    im not too sure where ive put the code, but the msp430g2231 sits in Low power mode 4 until it recieves a button press interrupt
    then it runs rand() and displays the number then back to sleep, ill try to keep looking for my main.c it will be around somewhere.
     
    battery still good 9 months later.
  24. Like
    chibiace reacted to RobG in CC 4 Digit 7 Segment Display Driver IC?   
    No experience (buying at that price didn't make sense for what I needed it,) but the specs look good. They also have another one, AS1105, which is compatible with MAX7219.
  25. Like
    chibiace got a reaction from pine in Resistor needed for pull up on Reset pin?   
    your supposed to, but it does work pretty well without it at least on projects sitting on my desk.
     
    i think 47k ohms is the recommended resistor unless im getting mixed up with arduino. better read the datasheet
×
×
  • Create New...