Jump to content

Markers

Members
  • Content count

    23
  • Joined

  • Last visited

  • Days Won

    1

Markers last won the day on June 10

Markers had the most liked content!

About Markers

  • Rank
    Member

Profile Information

  • Location
    Sydney Australia
  • Interests
    Learning to design and program embedded hardware

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Markers

    MSP430G2553 Workshop

    Hi NurseBob. Thanks for your latest messages. The reference on low power design is great and will certainly help. You are correct in your assessment that l am "just getting into electronics" : I am 70 and a recently retired engineer and loving getting into hardware after decades of (self-taught) programming. Hence the sometimes naive questions! I have been using Dave Jones' blog which is very informative. Thanks again.
  2. Markers

    MSP430G2553 Workshop

    Hi All, I think I have discovered something, but I'm not sure what! I noticed when I turned my LED desk lamp off the consumption rose, and fell again to it's ~12uA level when I turned it back on. Also, the LaunchPad was on my desk quite close to my laptop. I then dangled the LaunchPad over the edge of the desk on the USB cable (ie. in the shadow of the lamp, and below the level of the laptop), and the power consumption went down to a steady 0.6uA as in the Workshop video! The power consumption still shoots up if I move my hand close to the LaunchPad... Thanks for all your help, Mark
  3. Markers

    MSP430G2553 Workshop

    Hi Frida, Thanks - those are good thoughts. The Lab example has the following code which I assumed handles the inputs and outputs: void ConfigPins(void) { P1DIR = ~BIT3; // P1.3 input, others output P1OUT = 0; // clear output pins P2SEL = ~(BIT6 + BIT7); // P2.6 and 7 GPIO P2DIR |= BIT6 + BIT7; // P2.6 and 7 outputs P2OUT = 0; // clear output pins } Would that code not be sufficient to prevent noise from any un-terminated input pins? Thanks, Mark
  4. Markers

    MSP430G2553 Workshop

    Hi Rei and NurseBob, Thanks for your responses. Rei, yes the green LED jumper is on, and no, the green LED pin is not shared - as per the Workshop video, the LaunchPad is stand-alone, only connected via the USB cable to the computer. NurseBob, I have tested the project in Release mode and the power consumption drops to about 10-17uA, but the reading fluctuates a fair amount. Interestingly, if I hover my hand over the top of the LaunchPad the power consumption goes up to 60-80uA but again very variable!? The vidoeo in the Workshop does not show such fluctuations, and I can't understand why mine is so unsteady. I have also powered the LaunchPad using a 3V battery through the DMM but this gives me a nonsense reading of about 12mA (stable though). I'm thinking it must be my DMM unless you can think of any other reason. I am concerned, though, that my final project may not operate for years on a battery as the calculations suggest if the power consumption is in the 20uA range instead of ~1uA. Thanks again, Mark
  5. Markers

    MSP430G2553 Workshop

    Hi, I have been working through the MSP430G2553 Workshop and have just finished Lab 6. Running the code from Lab6c.txt in the supporting files does not give me quite the same results as in the video: the green LED does not come on, and the current draw on my Digitor Q1585 DMM shows about 20uA, not the 0.6uA I was expecting. Does anyone know whether my LaunchPads may be faulty (I have tried the example on 2 with the same results) or whether my DMM does not have a sufficiently low effective resistance? I am reluctant to continue with the Workshop until I am sure I will be able to achieve the maximum power savings for my project. My LaunchPad is ver 1.5 with the MSP430G2553 MUC as in the video. Many thanks, Mark
  6. Markers

    Energia.core

    Hi All, Many thanks for all your responses. NurseBob, you were right on the money: Energia was not installed. I re-installed it and everything is now working as it should. Many thanks! Mark
  7. Markers

    Energia.core

    Hi, I was working on an imported Energia project in CCS when I was informed that a software update to CCS was available. I installed the upgrade and restarted CCS in my project which now will not build. Instead I get the message "Buildfile generation error occurred.. Product 'energia.core' v18.0 is not currently installed and no compatible version is available. Please install this product or a compatible version. Build stopped.." My version of Energia is the latest (18). Can anyone help please! Thanks, Mark
  8. Markers

    I2C and MMA8452/MMA8451 accelerometer

    Thanks Rei. Wish I had known before I wasted money on three 2553s.
  9. Markers

    I2C and MMA8452/MMA8451 accelerometer

    Hi Fmilburn, Thank you so much for your thoughtful and helpful post - some real advice for a change! All the microcontrollers seem to be working, and all successfully flash LEDs and other simple tasks. I was wondering whether I had damaged some other components on the Launchpad other than the microcontroller... Its just the serial monitor and communications with the accelerometer that are causing me grief. I will look to upgrading to a newer Launchpad and try again! Many thanks, Mark
  10. Markers

    I2C and MMA8452/MMA8451 accelerometer

    I have checked the pin maps! Mine is a very 1.5, so the jumpers are at right angles. I note that the forums are bursting with people who have serial monitor problems, but no solutions beyond the jumpers. This must be a known problem... I have also deleted and reinstalled CCS and Energia several times. What else is there? Have I destroyed 2 Launchpads?
  11. Markers

    I2C and MMA8452/MMA8451 accelerometer

    Rei, My problems seem to be growing. I have gone back to basics to try and get my project working, and this involves writing values to the serial monitor with Serial.println(). For some reason, even with the TX/RX jumpers reversed, I am having a real problem getting anything to display. I have 3 different, new MSP430G2553 Launchpads and only one of these prints to the serial monitor, and even that not consistently. Is it possible that I have damaged the other 2 Launchpads? I am now seriously considering the wisdom of choosing the MSP430 platform - can't serial print and can't communicate with the Adafruit MMA8451 breakout board!! Please help. Mark
  12. Markers

    I²C Check-List

    Rei, No, I have not started my own thread - is that what is required? Mark
  13. Markers

    I²C Check-List

    Hi Rei, Thanks for your response. I have visited that link many times but the info is a bit sparse, and has not helped me. Do you have any more specific advice please? Thanks, Mark
  14. Markers

    I2C and MMA8452/MMA8451 accelerometer

    Hi, I have a similar problem. I have successfully built a simple game based on the MMA8451 accelerometer breakout board from Adafruit with an Arduino Uno. I am now trying to convert the game to a Ti Launchpad using an MSP430G2553 processor but cannot communicate with the MMA8451 at all. I have gone back to basics using the MMA8451demo.ino code (https://learn.adafruit.com/adafruit-mma8451-accelerometer-breakout/) in the Energia IDE with the MSP430 using pins P1_6 (SCL) and P1_7 (SDA) both with and without added 4K7 pullup resistors, and, although the programme compiles and runs, no acceleration outputs result in the serial monitor. Here is the relevant part of my code: void setup(void) { Serial.begin(9600); if (! mma.begin()) { Serial.println("Couldnt start"); while (1); } mma.setRange(MMA8451_RANGE_2_G); pinMode(P1_6, INPUT_PULLUP); // and without _pullup pinMode(P1_7, INPUT_PULLUP); // and without _pullup } void loop() { // Read the 'raw' data in 14-bit counts mma.read(); Serial.print("X:\t"); Serial.print(mma.x); Serial.print("\tY:\t"); Serial.print(mma.y); Serial.print("\tZ:\t"); Serial.print(mma.z); Serial.println(); /* Get a new sensor event */ sensors_event_t event; mma.getEvent(&event); /* Display the results (acceleration is measured in m/s^2) */ Serial.print("X: \t"); Serial.print(event.acceleration.x); Serial.print("\t"); Serial.print("Y: \t"); Serial.print(event.acceleration.y); Serial.print("\t"); Serial.print("Z: \t"); Serial.print(event.acceleration.z); Serial.print("\t"); Serial.println("m/s^2 "); .....................................................etc. Does anyone have some advice on the correct setup for the MSP430 that will facilitate communication with the MMA8451 please? I suspect the problem lies with the setup code in the MSP430 but I cannot find any examples to help me. Many thanks! Mark
  15. Markers

    Problems with Energia on MSP430 LaunchPad

    Hi all, I am well underway with the MSP430G2553 Launchpad developing my game. Battery life is now an issue I have to address, and for this I have built in a photo resistor sensor that I want to use to put the processor to deep sleep when it is dark. Trouble is, I have no idea how to achieve this without keeping the processor awake to monitor the sensor! Is it possible to generate an interrupt from the sensor that suppresses all other interrupts until it is light enough for the game to commence? Some help will be greatly appreciated! Thanks, Mark
×