Jump to content

villekille

Members
  • Content Count

    12
  • Joined

  • Last visited

  1. I am making a board featuring an MSP430 microcontroller, and a couple of sensors that are read with the ADC of the MSP430. This data should be sent over bluetooth (BLE) connection to another device. How do I do it? Is there any specific chip which would include bluetooth communications already while being a microcontroller? Or what chip is the easiest to interface with the MSP430? Board space is very limited so compact size is a plus.
  2. villekille

    About capacitive sensing controllers

    I have now been prototyping with my project which has 3 capacitive "buttons". I tried the example code provided by TI, MSP430G2xx3 Demo - Capacitive Touch, Pin Oscillator Method, 4-buttons, and it works fine and I understand quite well how it works. It is anyway quite simple, just to have a LED turn on when a button is pressed. Now I would like to create more complex controls, for example, to avoid accidental turn on, to have MSP430 waiting for one press of one button, then blink a led to indicate it is now actively waiting for start up signal, which would be the user moving his finger over all buttons up and down, ( 1 -> 2 -> 3 -> 0 -> 3 -> 2 -> 1 -> 0 and only then it would start up really, and if it doesn't get this signal from user, goes back to wait just for the first button press. But I don't find any examples of how to create such a code. Can anyone please help to suggest a way how this can be implemented in the code?
  3. villekille

    Making a programmable timer switch with the launchpad

    ok I figured out. Here is a code to make it happen. "Seconds" is the time we want the timer to wait before switching output on, for one hour this should be 3600. And "secon" is a value in secons, for how long you wish to keep the output on, for 3 minutes this should be 180. #include <msp430.h> unsigned int seconds, secon; int main(void) { seconds = 0; secon = 0; WDTCTL = WDT_ADLY_1000; // WDT 1000ms, ACLK, interval timer SFRIE1 |= WDTIE; // Enable WDT interrupt P1DIR |= 0x01; // Set P1.0 to output direction P1OUT &=~0x01; __bis_SR_register(LPM3_bits + GIE); // Enter LPM3, enable interrupts __no_operation(); // For debugger } // Watchdog Timer interrupt service routine #pragma vector = WDT_VECTOR __interrupt void WDT_ISR(void) { if (seconds++ >120) { P1OUT |= 0x01; secon++; if (secon >30) { P1OUT &=~0x01; secon=0; seconds=0; } } }
  4. I am planning to make a timer switch using MSP430F5529 launchpad and a relay board for microcontrollers like this: http://www.ebay.co.uk/itm/2-4-CHANNEL-5V-RELAY-MODULE-BOARD-for-ARDUINO-ARM-AVR-DSP-RASP-PI-MSP430-19102-/251501033197?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item3a8ea136ed I wish to have an output ON for 3 minutes every 60 minutes. So there is not really a need to have a 24 hour clock or anything like that, just to get it to switch the output ON for 3 minutes and then turn it off and ON again after another 60 min and continue doing this as long as it is powered. I just find it hard as a beginner to do this. Could anyone more experience give me some info on how this could be done in the code? Hardware wise I think it is simple but I just don't understand how to program this.
  5. Hello, I want to have my software to be controlled with sound. I planned that I would place a electret microphone capsule and connect this to the msp430 and this microphone is connected to a tube where air is flowing and thus making some turbulence noice and I would like my program to react to this noise and do something while the air is flowing and then return back to normal action when flow stops. In theory it sounds like a simple thing. But i reality, I have to be honest, I have no idea! I mean, this microphone can be connected to a normal IO, to and ADC..or COMPARATOR..where it would be best? And how it could decide whether there is the flow going and thus noice from the microphone coming or not? I am pretty good with electronics and can design almost anything hardware wise if I just would understand what I need, how the MSP430 would understand what is going on, what features on the msp430 to use and so on. This is a really important project and I am grateful for all the input I can get to get started with this!
  6. villekille

    MSP430 full keyboard Capacitive touch technology

    wow that sounds amazing, this could actually be a cool thing to have I thought that not every single key needs to be connected to their own port? Just detect the vertical and horizontal coordinates and the software takes care of rest?
  7. I need to have a keyboard which has all electronics hidden inside and surface materials may only be glass and metal. That is why a conventional keyboard is not going to work as they are made of plastic and plastic keys. Now my idea, to have the top part of the keyboard glass, and rest of the case metal. There is a printed paper behind the glass to show where are the keys, but the actual sensing works with capacitive touch. The MSP430 uC detects keypresses, and sends them out in the same format as regular keyboard would. Will this work? This is just an idea and I am looking forward to having some opinions on this!
  8. I have a project, using MSP430G2352 and while it seems to be working nicely, when I measure the currency consumption of my circuit, it is much higher than the one stated in datasheets, as I am having it in deep sleep (mode 3) and the only things which should take current are the regulator (according to datasheet 1.2 uA) and a resistor divider of 590k + 470k, which should consume in this case about 7 uA, and then the MSP..but the current is 70 uA!! I don't know if there are some software things to be taken care of before going to sleep to make the consumption less??? I have disabled the WDT before sleep.
  9. villekille

    Problem with sensing external charger input

    I didn't have anything better here now, no TVS devices or even diodes, but I put simple resistor of 150 ohm to connect charger + and - , to make sure that there is always little bit current flowing from the charger adapter, and this seems to help alot! So I suspect that a proper TVS diode and maybe resistor also placed there, could fix this )
  10. villekille

    Problem with sensing external charger input

    maybe a little bit it helped but still the problem with debugging session
  11. villekille

    Problem with sensing external charger input

    No, I don't have this cap, only the 50K resistor between reset and VCC, I will try this, thanks ))
  12. I have made few different board revisions, tried MSP430G2231, G2352..but problems still persist! Here is the design described: Battery powered 2 cells of 3.2V in series, total voltage about 6.4 volts, with a 3.3V regulator for the MSP VCC.tu MSP430 controls PWM controlled halogen light, and charging of the batteries, there are ADC inputs for total bat voltage, voltage between cells and a potentiometer voltage for pwm control and a push button for turning the devide on. The batteries are charged by external 8V AC/DC adapter, and on board is regulator with enable pin to limit current and voltage to the maximum allowed. MSP430 get's signal from the adapter, there is a resistor divider to one of the inputs, so that the uC knows when the charger is connected. NOW the problem is that after sending the devices to the test users, most of them developed problems, and said that they behave strangely after charging, or don't even turn on at all anymore after charging. Now I try to prototype new board, and I just put in a simple flash led program, and tried to connect the charger plug and unplug..and everytime this happens, the flashing led program seems to reset and also debugging session ends always. If I change this input to output in the code, it doesn't reset the chip anymore but still the debugging session ends with IAR message "target execution stopped" always if I plug or unplug the charger. I don't understand, is the MSP430 too sensitive to be interfaced with external AC/DC adapter?? I have checked the voltages, there is a 590K resistor from the adapter to MSP430 input, and a 330K resistor to ground from the input, so the maxium voltage there should be is about 2.4V! I also have a 100nF cap between input and ground, to make it more stable but this seems everything but stable, unfortunately! Help me please, what is the reason, what can be done!?
×