Jump to content
43oh

Cw1X

Members
  • Content Count

    28
  • Joined

  • Last visited

  1. Hi guys, does someone know of a way to implement "lost signal" on the reciever side with Spirilis's ENRF24 library? I tried using rfSignalDetected() it seems to always evaluate to true. Because the while(!radio.available()) always just sits waiting until the data is ready I can't seem to think of a way to check if I stopped recieving data. Something like: void loop () { unsigned long lastRecvTime = 0; while(!radio.available()) ; if(radio.read(&data, sizeof(MyData))){ lastRecvTime = milis(); } unsigned long now = millis(); if( now - lastRecvTime >
  2. Hey Leta, welcome to the 43oh. I'm from Bosnia too, kinda stuck here I didn't try Arduino just because it's kinda expensive for us here, and Texas Instruments is shipping for free AND gives free samples so its pretty much a no brainer. I think you would be most comfortable with energia given your knowledge of C++. It's full of examples and user base is constantly growing so code examples shouldn't be too hard to find. Just use the tutorials to get to know how microcontrolelrs work. I hope you're gonna have a fun time here.
  3. I've got the three rocket version of the silkscreen but rev E of the chip. Got mine few days ago.
  4. OK got it. Stupid me. I didn't P1OUT &= ~BIT0 at startup. So basically I didn't turn off led at startup and it looks like it has been working the whole time but I just didn't thought off of trying it . Thanks Spirilis its working great now, my remote LED is happily blinking. Thank you for making an awesome library
  5. No idea, I just checked everything and reconnected it but still no luck. I'm gonna try changing the pin mappings and see if I get anything.
  6. I didn't change anything from the nrf_userconfig.h file I just connected according to it. So: CE --> P2.0 CSN --> P2.1 IRQ --> P2.2 SCLK-->P1.5 And of course MOSI and MISO pins which I tried reversing but nothing. As requested my unaltered config file. And thanks again, its nice to meet so helpful strangers /* nrf_userconfig.h * User configuration of nRF24L01+ connectivity parameters, e.g. * IRQ, CSN, CE pin assignments, Serial SPI driver type * * * Copyright (c) 2012, Eric Brundick <spirilis@linux.com> * * Permission to use, copy, mo
  7. Well I've tried reversing those pins, and also double/triple checking every other but no success. I'm not using booster pack, just modules and some wire
  8. Spirilis I could use your help. I'm stuck trying to connect G2452 with nrf24 modules. I made a new thread but bluehash suggested that I post a link here so here it is. http://forum.43oh.com/topic/3269-g2452-and-spirilis-nrf24l01-library/#entry28432 Thanks
  9. Oh sorry bluehash I thought it would be better if I didn't clog that thread with questions but I see thats the way its done my bad This is the thread http://forum.43oh.com/topic/2050-nrf24l01-registerscommands-and-functionswork-in-progress/page-2.
  10. So... trying to make G2452 and nrf24l01+ module working with an awesome library Spirilis wrote but I can't make it work. I'm using ping-remote-led example where I just added if (msprf24_current_state() == RF24_STATE_NOTPRESENT) { P1OUT |= BIT0; // Set red LED _DINT(); LPM4; // Halt completely } after the msprf24_init function so I could see if I hooked everything right. Almost the same code from examples work with G2553 but I cant get 2452 to work. Is there anything I need to do when working with USI instead of USCI? By looking
  11. Edit: Nvm, I Didnt understand your problem very well so I posted something compleely opposite. Dont mind my ramblings
  12. And another silly question from me. Let's say I need Cap Touch and PWM on an MSP with just one timer. I mean CapTouch example (Not the library for BoosterPack) from TI uses timer and WDT and works like a charm but I kinda lost on how to throw PWM into the mix. I thought about using timer for Cap Touch and when touch is sensed (I just need one button) switch the timer to PWM and stay there for a while (Fade some leds in and out) and then go back to Cap Touch etc. But the problem is it just doesn't work, its all jumpy, twitchy and I'm lost so If you would be so kind to lend a helping hand I woul
  13. As far as I know 2553 has TIMERA_0 and TIMERA_1, you can use them to generate two separate PWM chanels. I dont really know about using delay option on PWM, dont see how could that work but I'm pretty sure I know very little about anything
  14. Dammit I feel pretty lame right now. Thank you oPossum.
  15. Hello, so I have a problem like this. I have a variable which goes from 128-255 and a CCR1 register that goes from 0-255. The question is, How do I change value in CCR1 by two steps for every step in my variable. So 128 is 0 in CCR1, 129 is 2, 130 is 4 etc. I suck at programming so I hope some of you guys can help me out. Thanks
×
×
  • Create New...