Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by RobLewis

  1. As a relative novice Linux user, my beef with Energia is the same as with a lot of other software packages: the installation instructions basically end at "download it". OK, I downloaded it. Now what? Where do I put it? How do I launch it? And so forth. Using Ubuntu 14.04 (32-bit). Java is installed and working (at least it works for Eclipse). Any kind souls willing to help? (I guess this would be moot if somebody created an installer package for the Ubuntu Software Center, but I have no idea how much work that involves.)
  2. Any updates on this for Ubuntu 14? I installed Arduino (1.05 IIRC) using the Ubuntu Software Center and it seems to launch OK. Downloaded Energia 12 for Linux and don't know what to do next. Double-clicking the "energia" bash script in the folder just opens it in an editor. Also I read somewnere I have to install LaunchPad drivers. Where & how?
  3. Regarding this: "Java probably isn't the best choice on a "strapped for memory" embedded system." Going way back to when Java was introduced, it was supposed to "run anywhere". And don't lots of cell phones use it? Has Java suffered from mission creep, to the point that it's now too bloated to use on small systems? I read a comment by one cynic who said that the language is so huge that people spend half their time reimplementing features that are already in the language, but they just don't know it.
  4. I've dabbled in a lot of languages, but never made it to C or C++. Now, in the course of helping my son pursue a CS degree, I find myself learning Java. What, if any, are the options for programming the TI LaunchPads in Java? Opinions? (other than the expected "Java sux" :-(
  5. Perhaps you could answer one question for me. I can't be sure, but maybe your patch (above) consists simply of inserting usb_disconnect() immediately after usb_init(). Assuming that's so, please note that the code I quote above has the following as its next line, coming before the section about "See if we're already attached physically to USB": //Enable various USB event handling routines USB_setEnabledEvents(kUSB_allUsbEvents); That being the case, is it likely that your workaround will still work?
  6. Ok, I finally found what seems to be the relevant section of initialization code, in the USBSerial.cpp file. Here it is: // // Public methods // void USBSerial::begin() { __disable_interrupt(); //Enable interrupts globally //Initialization of clock module if (USB_PLL_XT == 2){ #if defined (__MSP430F552x) || defined (__MSP430F550x) P5SEL |= 0x0C; //enable XT2 pins for F5529 #elif defined (__MSP430F563x_F663x) P7SEL |= 0x0C; #endif XT2_Start(XT2DRIVE_0); //Start
  7. OK, in the "different nomenclature" department, is it possible that what you're calling "usbevt_vbuson" is the function "USB_handleVbusOnEvent()" that I found in \hardware\msp430\libraries\USBSerial\usbEventHandling.c? Still haven't found the initialization routine that's calling these handlers.
  8. OK, I'm sort of flailing around here. I found the functions USB_init() and USB_disconnect() in the usb.c file in Energia's \hardware\msp430\libraries\USBSerial\ folder. Am I on the right track? Assuming I am, i guess now I have to find the initialization code that calls these functions so I can make your patch and try to recompile. Any pointers appreciated.
  9. Thanks very much. But as I'm new and fairly ignorant, I don't see how to apply your advice. Here is my entire setup routine: void setup() { Serial.begin(9600); // Initialize serial port pinMode(PUSH2, INPUT_PULLUP); // Hold button 2 to quit pinMode(GREEN_LED, OUTPUT); // added by GRL pinMode(RED_LED, OUTPUT); // added by GRL Wire.begin(); // initialize I2C that connects to sensor mySensor.begin(); // Initialize AM2302 (DHT22) humidity sensor PSensor.begin(); // Initalize BMP085 pressure sensor (GRL inserted) Serial.println("AM2302 & BMP085 s
  10. Hello. Does this driver work with the MSP430F5529 LaunchPad? I programmed the LaunchPad with Energia on a PC, and it currently works when connected via USB to a Mac running Mavericks, apparently with the built-in USB/serial driver. My software (XTension Home Automation package) recognizes it as an Arduino and receives data OK. The problem is I have to unplug and replug the USB cable after a system restart to get it to be recognized.
  11. I have this great recipe for potato salad. Anyone interested? (I think the thread done been already derailed, sir. At least I got the answer I needed.)
  12. For all I know this is already implemented, but why not put the system to sleep during the delay() function and use a timer to wake it up? Baby steps
  13. Um, it's not quite that easy. Since my project is targeted at the F5529 LaunchPad, which seems to have only spotty support in Energia and its libraries, I had to make a few edits in the library sources (this alone was a bit of a project for a n00b like me). Trying to communicate this to someone with zero knowledge of, well, anything
  14. Agreed. See previous response. But as someone with no previous experience with Arduino, I found getting started with Energia to be a nontrivial undertaking, and there are still big gaps in my knowledge (and I don't even know where to go to fill them). I was hoping to spare some folks the pain I went through.
  15. Not concerned at all about protecting the code. Just want to make it easy for people who'd like to replicate the project. Your suggestion sounds too complicated for me to tackle. Where can I find info about the command line tools?
  16. Happy to do that (not that I have anything particularly wonderful to pass along). But I suspect some of the folks in my Home Automation group might like to build the project without having to delve into Energia.
  17. Once I have a working sketch, how can I make a ROM image file of it for distribution to others? How do other people upload it to their LaunchPads? I'm using the MSP430F5529.
  18. Thanks, found the pin definition. Also found this in the file: // Core library - MCU-based #if defined(__MSP430G2452__) || defined(__MSP430G2553__) || defined(__MSP430G2231__) // LaunchPad specific #include "Energia.h" #else // error #error Platform not supported #endif since my LaunchPad is a different model (F5529), is this going to fail? What would be needed to add support for it? Also, where do these variables get set? My guess: in the Energia app when you select the Board in the Tools menu. (Sigh. I have so much to learn and I'm not finding much in the way of documentation.)
  19. Trying to figure out what, if any, changes would have to be made to support the F5529 version of the MSP430. I know it has some different default pin assignments than other versions. (This is from the .cpp file: _pin = pin; Where does this pin value get defined?) Thoughts?
  20. Got the sensor, and with chicken's help got his demo example running. The only gotcha I encountered was that, according to the quick start guide, the F5529 LaunchPad defaults the I2C Clock and Data lines to pins 4.2 and 4.1, respectively. Who knows why? When I moved them to 3.1 and 3.0, it worked. (On this version of the LaunchPad, these latter pins are by default the SPI signals MISO and MOSI.) I also wired up an input pin to the optional EOC (end of conversion) signal from the sensor, and presumably that's working too to speed things up a bit.
  21. I got to Square One with my new MSP430F5529 LaunchPad, successfully running the LED blink program. Square Two, not so much. Trying to run the Adafruit demo for their BMP085 breakout board (barometric pressure sensor), I get this compiler error: Documents\Energia\libraries\AdafruitBMP085Library\Adafruit_BMP085.cpp:18:24: fatal error: util/delay.h: No such file or directory The offending line appears to be this: #include <util/delay.h> I note that the LED blinker uses the delay() function but does not have an #include like this. I sure wish there was a document so
  22. RobLewis

    Water Pump

    I took apart a broken refrigerator and there was a nice little solenoid valve controlling water supply to the ice maker. This might be perfect if you can use water from a hose bib. I'd put an inexpensive pressure regulator upstream of the valve to make the water stream more manageable. Something like this from DripWorks: http://www.dripworks.com/product/Q_PRSG Whatever you do, beware of freezing temps!
  23. Looking through your old posts trying to figure out why serial driver isn't working (with Mavericks). What Terminal program is this a screenshot of? Looks good.
  24. Trying to install latest Energia (10) in Mavericks and not seeing any serial ports (either in Energia or in the Network control panel). I installed the 1.0.3b package. I have no idea what a codeless kext is, but I do not have anything like "ez430
  • Create New...