Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Fmilburn

  1. That's good... I have made a couple of orders from them in the last few months. I don't see how they can keep doing this as they package everthing really well and I made one small order where the packaging and shipping had to cost as much as the rest of the order. I even won a Raspberry Pi in one of their give aways.
  2. Hi @@ZenClide I tried it just now on a CC3200, Energia V17 without EMT and it worked fine other than the expected bounce from the switch... I hooked up a pushbutton switch to pin 4 and ground (without a pullup) as shown in the photo below: I used the following sketch: #define PUSH4 4 volatile int state = HIGH; volatile int flag = HIGH; int count = 0; void setup() { Serial.begin(9600); pinMode(GREEN_LED, OUTPUT); digitalWrite(GREEN_LED, state); /* Enable internal pullup. * Without the pin will float and the example will not work */ pinMode(PUSH4, INPUT_PULLUP); att
  3. You are referring to an issue around Atmel microcontrollers on a Texas Instruments oriented site so it is very unlikely you will get a satisfactory response to your question. Anyway, you will not get something written for an ARM processor using direct register access to compile on a 8 bit processor like the Uno. Nor will it compile on a MSP430. And it is unlikely that anyone has ported this to Arduino/Energia but the best persons to ask would be the authors of the firmware.
  4. Hi @@craigr123 and welcome to 43oh!
  5. Hi @@ZenClide and welcome to the forum!
  6. @@NurseBob, That is a great link - much appreciated. I discovered Jack Ganssle a while back but still haven't worked through all his articles and had not seen that one. As usual, he hits it out of the park. The quick answer to the comparison question is that the two sets are a bit apples to oranges but if anything my tests left me expecting shorter battery life than what his do. The internal resistance of the batteries from my tests seems higher. They are apples to oranges because he tested with a constant current whereas for simplification I used constant external resistance and as a
  7. Glad you got it working. Using switch to control the program flow is a common way to do it and makes it easy to see what is going on or add new pins. For example, the following watches for the interrupt and toggles the LaunchPad LEDs (with a lot of bounce). /* Watch for interrupts on two buttons and toggle LEDs * Written for the G2553 on MSP-EXP430 G2 V1.5 LaunchPad */ #include <msp430.h> #define RED_LED BIT0 // LaunchPad LEDs #define GREEN_LED BIT6 #define S1 BIT3 // LaunchPad button #define EXT BIT4 // External
  8. Hi @@Synoptic and welcome to 43oh!
  9. Hi @@Synoptic, That is definitely doable. As you said, there are lots of examples for doing similar things on the internet. You seem to have the problem fairly well defined. In your code, catch the button pushes in an interrupt or poll during the loop. Record the state of the buttons and act accordingly with a if... else control structure or with switch. There are examples for reading buttons and control structures on energia.nu: http://energia.nu/guide/ Try putting together the code and come back if you have an issue....
  10. CR2032 Battery Performance Most of what I am doing in this project is well plowed ground, but the elevated current requirements differ from what is normally done with a CR2032 battery. For example, here is data from an Energizer data sheet: The battery maintains a fairly constant voltage after an initial drop but there is a marked increase in the internal resistance of the battery at 105 mAh and the voltage supplied drops off. The background drain in the upper green curve is 0.2 mA. The red pulsed curve is 23 mA on for 1 mSec and then off for 14 mSec. My application requires high
  11. Hi @@skajam66 and welcome to 43oh
  12. Fmilburn


    Hi @@albertRM and welcome to 43oh
  13. Rick: Thanks for the ideas. I've gone back now and looked at some of the older posts and there is some good stuff there. There is an interesting link to an Adafruit forum as well. Terje: I am pretty sure any code you post would be more than equal to mine. I would be interested in seeing what you did. I ran a quick test using a CR2032 with my existing wearable and regular LEDs to get some initial battery life data. The coin cell is powering the G2553, the TSOP38238, and LEDs on the PCB. The multimeter is measuring battery voltage. It has been operating for more than two hours n
  14. Hi @@dubnet, I was aware of the IR booster pack, but not of that bundle at that price. I also wasn't really aware that the MSP430FR4133 was so well matched to IR. It beats the clunky pad with a ribbon connection that I have on hand and was going to prototype with. I think I will order one. The other way I am considering is to use a phone and connect to the IR transmitter microcontroller via bluetooth. I have a CC2650 BoosterPack and could attach that to a microcontroller located with and driving a big bank of IR transmission LEDs for a pretty slick solution. Your second link is in
  15. This project is an offshoot of an earlier investigation of wireless wearables using the MSP430G2553: http://forum.43oh.com/topic/10060-msp430-wearable-with-radio/. The concept has been successfully tested and is described below. I plan regular updates as the project progresses. The objective is to develop a wearable powered by a coin cell that can be controlled remotely. It could be used, as an example, in the tiara below or on a costume worn by dancers in a performance and controlled from offstage. In the photo an earlier MSP430G2553 coin cell powered wearable is attached to the tiar
  16. I should have labelled this MSP430 Wireless Wearable instead of Wearable with Radio. Anyway, I have been happy with the progress using IR and plan to commit to it for now. Here are the options that I considered and the reason for choosing IR: CC26xx - ruled out due to cost - did not pursue technical viability ESP8266 - ruled out due to power requirements when using CR2032 coin cell - not viable technically nRF24L - this is a potential alternate, the main concerns are power and distance which I did not pursue to the end. IR - cost is low, power requirements are low for receiver, able t
  17. I needed to use this for another project that did not use Energia. Here it is rewritten with direct register access in C using Code Composer Studio: https://github.com/fmilburn3/WS2812/blob/master/WS2812_CCS
  18. Hi @@emat86 Which version of Energia and what OS are you using? I suggest trying Energia V17 if you haven't already. Sometimes V18 seems to have problems with a G2 LaunchPad. Edit: also see https://github.com/energia/Energia/wiki/Common-error-messages https://e2e.ti.com/support/microcontrollers/msp430/f/166/p/539487/1967376
  19. I didn't get a whole lot done this past week on the project but Santa did bring me a decent mulitimeter to replace my old clunker.
  20. The design guideline is a really good reference - I have been looking for something like this
  21. Just about any microcontroller could do this - if you are serious about learning how then there are lots of resources. For example: http://processors.wiki.ti.com/index.php/MSP_Design_Workshop Several free courses at edX this one at udemy I thought was good: Microcontrollers and the C Programming Language by Mark Budnik Lots of stuff on 43oh and other internet locations to explore Energia/Arduino has a place but you are basically stuck with whatever microcontroller and ICs that other people have written Energia/Arduino libraries for. Good luck...
  22. It is saying that to send a "0" requires pulse high for 0.5 us, and follow with a low pulse for 2 us. To send a "1" pulse high for 2 us, and pulse low for 0.5 us. Each pulse should vary by no more than +/- 0.15 us. So, for example, an acceptable pulse for0.5 us could be between 0.35 and 0.65. Those values should work reliably since they come from the datasheet. The total pulse length should be about 2.5 us. Unfortunately I don't see a value which fits well with a 16 MHz clock. However, often times things work for values outside the datasheet which is why I suggested what I did. Clearly
  23. I am trying to select a frequency that results in a period that meets the requirements. See wikipedia article on frequency. f = 1 / T The period of something at 1 MHz is 1 uSec, or 1000 nSec. The period of something at 4 MHz is 250 nSec.
  24. I am going to try and update this weekly in the hope it will give me extra impetus to get it done. I've done more looking at IR and as is normally the case have found lots out there that I didn't know, including some good stuff on 43oh. To quickly summarize: The IR receiver I am using (TSOP38238) works on 2.5V - 5.5V, and has a typical supply current of 0.27 - 0.45 mA. - seems like it will work OK with coin cell for this application Using a matched 950 nm IR LED with the receiver at the moment. Even with a single LED transmitter can get 10 m although not 100% reliable. I expect to overco
  • Create New...