Jump to content

Nolan

Members
  • Content Count

    28
  • Joined

  • Last visited

About Nolan

  • Rank
    Member

Contact Methods

  • Website URL
    http://www.webb.edu

Profile Information

  • Location
    Glen Cove, NY
  • Interests
    Naval Architecture

Recent Profile Visitors

338 profile views
  1. Nolan

    Serial Print to a device

    All, I have a gps device that outputs several other sensor readings (wind, heading, ect.). All of those strings are output in NMEA format strings. I am able to read these strings and also (with the TinyGPS library) I can parse them to pull what I need. Now the problem, I want to be able to send NMEA strings back at the device in order to tell it to output different NMEA string types. For example, sending "$PAMTC,EN,HDG" should enable the "$HCHDG" string on the device. Or sending "#PAMTC,QV" should query the software version number. My code to read from the device is: Code: [Select] void setup() { // put your setup code here, to run once: Serial.begin(4800); Serial1.begin(4800); } void loop() { // put your main code here, to run repeatedly: char c; c = Serial1.read(); Serial.print
  2. Nolan

    Software PWM vs. Servo Library

    Yes, I can upload code to the board fine. I have used the servo sweep example in the past. It moves the servo back and forth but it is very jumpy. As for the motor controller (https://www.pololu.com/product/1373/specs) I am trying to connect the RC control pin on the motor controller to the output of an analogWrite() pin on the MSP430 board. The controller will not even allow me to run because it determines it has a fault of the pwm signal coming it. The error is that the pwm signal has to large of a range (it is jumping between 30 and 3604. This is with me only using one value in the analogWrite() function and not varying it at all in the code.
  3. Nolan

    Software PWM vs. Servo Library

    Oh, ok. So you are referring to software pwm as well. Maybe I have an error in my pwm values somewhere else. I tried using analogWrite() but it was not generating results on my motors. When i used a rc receiver the motor preformed fine.
  4. Nolan

    Software PWM vs. Servo Library

    Where does it say that? I only see the one pin labeled PWM (pin 19). Will the servo library work on a motor controller that uses pwm but is not a 0-180 servo?
  5. I am using an MSP430fr5969. The board only has one hardware pwm available and it located on P1.2. For my application, I need to generate two different pwm signals to control two different motors. One of those is a servo, the other is a linear actuator but it is controlled through a motor speed controller that uses a pwm input (replicating that of an RC receiver). Can I use the servo library and attach a servo to any pin or does that pin have to have hardware pwm? I looked through the Servo.cpp file and it seems to be doing software serial. When i run servo examples, and hook the pin up to an oscilloscope I do not get nice square waves being generated as an output. Currently I am using pin 9, the defualt for the servo libraries. Thanks, Nolan
  6. Nolan

    PWM on MSp430fr5969

    Ok. Understood. I have seen several libraries for Arduino that create software pwm on another pin. Is there a library that you would recommend that translates well to energia for this purpose?
  7. Nolan

    PWM on MSp430fr5969

    I am looking to run two motors via motor controllers that require pwm signals. I have learned how hardware and software pwm work. I also have learned what would be required to create a software pwm with a chip timer and clock in CCS. I am still however confused on whether this is required in energia and how I can tell what pins i am able to use. Using a MSP430fr5969: Can i simply use the analogwrite() function on a pin that allows for it to be used according to the pin map http://energia.nu/wordpress/wp-content/uploads/2014/10/LaunchPad-with-MSP430FR5969.jpg ? Does the analogwrite function only work on the pins that have hardware pwm capability or is it a software pwm function? Could I for example use pins P1_4 and P1_3 to send a pwm to signal to the motor controllers? Does the same apply when reading pwm signals? -Nolan
  8. Nolan

    Firmware Update Error

    Another thing worth noting.... When the MSPFlasher is run, "the firmware of your FET is outdated" displays every time it is run. This even happens imediatly after a successful run to update it. Also, recently while updating the program from within energia: "tilib: MSP430_VCC: could not set device Vcc (error = 10) "tilib: device initialization failed"
  9. Nolan

    Firmware Update Error

    I have closed everything, re-run the in Energia "Update Programmer" tool, and have re-run the mspflasher cmd file. This only temporarily solved my problem. The error reoccurred after a few uploads. Rerunning both update methods did not solve the problem this time.
  10. Nolan

    Firmware Update Error

    I have replaced the files with those from the MSPFlasher folder. Still no success.
  11. Nolan

    Firmware Update Error

    Back to the drawing boards..... The Firmware update needed problem has resurfaced after only a few successful upload attempts. Running the mspflasher has the following results: -It informs me my software is out of date -It gives the option to update -I accept -It runs a successful update and writes to the board -It closes itself out Returning to energia to upload code, and the error in uploading still occurs.
  12. Nolan

    Firmware Update Error

    Thank you! This seems to have solved the problem for now. I will update again if the problem occurs again.
  13. Nolan

    Firmware Update Error

    Fred, I have downloaded the MSP flashers. I now have two folders "fetdrivers" and "MSP430Flasher_1.3.3." As a new programmer, I am unsure of where to go from here. Could you please provide some guidance on how to implement this.
  14. Nolan

    Firmware Update Error

    I uninstalled everything, re-installed from the website the newest version of energia and did not place any CCS files on my computer. The program was able to upload but then again at a seemingly random upload decided to not work and produce the same errors. I have the new version of the fr5969 board with energy trace. Again the errors occurred when working with the servo sweep program (although I am not sue this is related).
  15. Nolan

    Firmware Update Error

    "FET firmware update is required." "Re-run with --allow-fw-update to perform a firmware update." "tilib: device initialization failed" In addition a separate window appears with a message saying to update the TI programmer.
×