Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by cheverecamachidoche

  1. Hi guys, Im trying to understand the sleep function in the One Button example of the capacitive touch boosterpack, but im a little bit confused. is the microcontroller sensing every 500 msec (#define DELAY 5000 )? during the up count to TA0CCR0 is the micro in LPM3? //****************************************************************************** // RO_PINOSC_TA0_WDTp_One_Button example #include "CTS_Layer.h" //#define ELEMENT_CHARACTERIZATION_MODE #define DELAY 5000 // Timer delay timeout count - 5000*0.1msec = 500 msec #ifdef ELEMENT_CHARACTERIZATION_MODE // Delta Counts returned f
  2. Hello, you can try with the CC110L code from larsie: viewtopic.php?f=35&t=1889&start=50 Its good to become with the air booster pack, Check it
  3. As dkedr said interruptions are the best option. Try this: #include int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P1DIR |= (BIT0 + BIT1); // Set P1.0 to output direction P1OUT &= ~(BIT0 + BIT1); // set P1.0 to 0 (LED OFF) P1IE |= BIT3; // P1.3 interrupt enabled P1IFG &= ~BIT3; // P1.3 IFG cleared __enable_interrupt(); while(1) { } } #pragma vector=PORT1_VECTOR __interrupt void Port_1(void) { P1OUT ^= (BIT0 + BIT1); // P1.0 = toggle P1IFG &= ~BIT3; // P1.3 IFG cleared P1IES ^= BIT3; // toggle the interrupt edge, } Push button: P1.3 Led: P1.0
  4. Yes the anaren code is indecipherable lol, so I searched in the forums and I found a CC110L source code from larsie: http://www.43oh.com/forum/viewtopic.php?f=35&t=1889&start=50
  5. Jsolarsky. Yes jeje shapelock is a good option maybe you can try with MDF, is cheaper than shapelock..
  6. Im developing a robot with the msp430: http://www.43oh.com/forum/viewtopic.php?f=9&t=2665
  7. cubeberg. I utilised 18 Hitec HS 322HD servomotors and a pololu minimaestro 18 Channel, yes I will share the body plans but first I have to make it in a CAD software
  8. jsolarski. Im sending the position of the servos trough the UART to a servocontroller. dkedr and bluehash. The lynxmotion kit is expensive here so I had to built the body with MDF wood.
  9. Hi guys. Im developing an hexapod robot with a launchpad that is controlled by remote control with a capacitive touch booster pack and an CC110L anaren air booster pack, the project is not finish yet but this is a little preview of the final design. The body and the legs of the robot is make of MDF wood and was design and build by my own :thumbup:
  10. Hello guys im making a program that count the number of button pushes with a interruption, every time that the button is pushed a servomotor get a position of 4 positions availables, the problem is when the servomotor get the last position and then I push the button one more time the servomotor is in the same last position so I would like that when I push the button the servomotor start again in the first position, I tried with return and break but it doesnt work, please any advice? here the interruption: #pragma vector=PORT2_VECTOR __interrupt void Port2_ISR(void) { if(!(PxIFG & GDO
  11. code for capacitive touch booster pack: http://www.ti.com/tool/capsenselibrary Anaren CC110L air booster pack: https://github.com/mobilars/LarsRF-mspgcc (thanks larsie) My code all together: https://github.com/cheverecachaimachochidoche/captouch_rc
  12. Hello guys, Im trying to develop a remote control with the capacitive touch booster pack and the CC110L anaren air booster pack, the idea is push a botton of the capacitive touch in a target and in the other target turn on/off a led. I've the code of boths working separately, when I mix them and run the code all go well any warning and any error but nothing is working https://github.com/cheverecachaimachochidoche/captouch_rc I dont know where is the problem, any advice?
  13. Ok It was my first time with IAR, I checked the bug fix mentioned in the posts above, I uploaded the files as you told me and all went well, now I dont know which main file should to upload to one micro and which main file to the another micro, please can you explain me
  14. Hello guys, I follow learning about msp430 now Im a little bit confused trying to run the code that Larsie shared with us, can anyone explainme which files of the three folders should to upload to one micro and which files to the another micro? sorry but Im a noob and I follow learning.
  15. :oops: I feel embarrassed it was very easy, Thank you very much SugarAddict.
  16. Hello guys, im working with an hexapod robot wich has 18 servomotors, 3 servomotors for leg, and im programming a secuence of movements but I would like to define a function for each leg and movement, I have problems with the functions cause the debugger give me a warning for each function (expression has no effect), im a noob sorry :roll: #include "msp430g2553.h" unsigned char TxByte=0; char posinicial(void); unsigned paradobajo(void); unsigned parado (void); void main(void) { WDTCTL = WDTPW + WDTHOLD; P1SEL = BIT1 + BIT2 ; // P1.1 = RXD, P1.2=
  17. If everything goes well It will be an hexapod robot jeje, thanks again
  18. I added the P1SEL2 line and change the clock to DCO, Now is working and this is the final code #include "msp430g2553.h" unsigned char TxByte=0; unsigned int result; unsigned int del; void putc(char c); void in(unsigned int servo, unsigned int angle); void main(void) { WDTCTL = WDTPW + WDTHOLD; P1SEL = BIT1 + BIT2 ; // P1.1 = RXD, P1.2=TXD P1SEL2 = BIT1 + BIT2; UCA0CTL1 |= UCSWRST; UCA0CTL1 |= UCSSEL_2; UCA0BR0 = 0x78; UCA0BR1 = 0x00; UCA0MCTL = UCBRS_1 + UCBRF_0; UCA0MCTL = UCBRS2; UCA0CTL1 &= ~UCSWRST;
  19. Ok this is the last code with the putc function, yes I soldered the crystal but is the same. #include "msp430g2553.h" unsigned char TxByte=0; unsigned int result; unsigned int del; void putc(char c); void in(unsigned int servo, unsigned int angle); void main(void) { WDTCTL = WDTPW + WDTHOLD; P1SEL = BIT1 + BIT2 ; // P1.1 = RXD, P1.2=TXD UCA0CTL1 |= UCSSEL_1; // ACLK = 32.768kHz (PAG. 435 SLAU144) UCA0BR0 = 0x03; // Baud rate de 9600, 32kHz/9600 = 3.41 (PAG. 435 SLAU144) UCA0BR1 = 0
  20. I think that is correct but im a begginer and im learning jeje, here is a code that shows how to control a servo controller via serial commands using a pic, this is an example of the pololu servo controller webpage. #include<18f4550.H> #fuses HSPLL, NOMCLR, PUT, BROWNOUT, BORV43, NOWDT, NOPROTECT, NOLVP #fuses NODEBUG, USBDIV, PLL5, CPUDIV1, VREGEN, CCP2B3 #use delay(clock=48000000) #define TTL_TX1 PIN_C6 #define TTL_RX1 PIN_C7 #use rs232(xmit=TTL_TX1, rcv=TTL_RX1, bits=8, parity=N) void main() { delay_ms(2000); while(true) { // Send a Set
  21. Yes Im using that model of servo controller and Im running the MSP430G2553 at 3.3V and the servo controller is running at 5V, but Im using and sparkFun logic level converter to get the interface between the MSP430G2553 and the servo controller.
  22. I tried and is the same it doesnt work, I use CCS v4. Any advice?
  • Create New...