Jump to content
43oh

Fmilburn

Members
  • Content Count

    618
  • Joined

  • Last visited

  • Days Won

    81

Everything posted by Fmilburn

  1. A bit off topic but I have been looking into driverlib and decided to rewrite Robert's code in CCS with driverlib using the TI compiler. It is not apples to apples but I tried to get close. It runs slower than Robert's code - it was actually faster when polled for the conversion to complete than with the interrupt as shown. MCLK is set to 24 MHz rather than 25 MHz. Anyway, it was an interesting exercise. EDIT: Use energia's code - not mine #include "driverlib.h" #include <stdio.h> // increase heap size to 320 in linker for printf() #define MCLK_FREQ_KHZ
  2. Glad it works.... If you want to use the MSP432 then you will need to do the same kind of thing as outlined above for the MSP430, i.e. set up the ADC module, write an ISR for the module, and initiate a conversion. I haven't done much with the MSP432 so can't comment much more than that.
  3. Welcome to 43oh. Double posting is considered poor etiquette and won't get faster answers. Do you mean the font is too small in the editor? If so, go into file => preferences and increase the editor font size.
  4. Use an array to store the values, something like this: set NUM_READS to the number of values you wish to record inside loop(), declare an array to contain NUM_READS values inside the for loop that reads values, read the values into the array outside of the loop that reads the values, print the values If you make NUM_READS too large it will corrupt the program. Do not place the serial print inside the loop with the analog read and make sure there is sufficient time for the serial print to finish before starting another read cycle. Serial print is very slow. With Robert's code changing NUM_R
  5. Found it. Credit to LG Beno for this. https://github.com/analog-io/iot_sensor_node
  6. The headers are mirror images of the same pins so only one header is used. See photo below. The pins are 0.1" pitch and the headers are 1.5" apart.
  7. Hi @@curtis63, Somewhere along the line I had an Energia pin map for the G2553IPW28, but I was just looking for it and couldn't find it. There is bound to be one here on 43oh. If not, it is not too difficult to do though for the G2953. You need to modify pins_energia.h and add the additional port. Then edit the boards.txt file. Here is the one I did for the G2955: https://github.com/fmilburn3/MSP430G2955_EnergiaPinmap If I find the one I am thinking of then I will post it.
  8. It looks like the CC2650 boosterpack can be ordered from the TI store now. Pricey though. http://www.ti.com/tool/boostxl-cc2650ma
  9. Whoa, I thought I put a lot of debug print in my code . Seriously, very few people are going to feel like wading through that so try and reduce it down to the minimum that demonstrates the issue. Here is a shot in the dark. Serial output in Energia uses a ring buffer with only 16 bytes because it was originally written for the MSP430G series. Try increasing the serial ring buffer size in Energia (HardwareSerial.cpp) to say. #define SERIAL_BUFFER_SIZE 512 and see what happens. The F5529 runs faster and maybe it can clear the buffer while the others can't. Remove extraneous serial prin
  10. Try the following one at a time and see what, if any, difference it makes. I would be interested in the results. 1) As suggested above, set port 3 to output direction and make pins low in setup() P3DIR = 0xFF; // set port 3 pin directions to output P3OUT = 0x00; // set port 3 pins low 2) Set the push button to be INPUT_PULLDOWN and the interrupt to be RISING - I doubt this will make any real difference 3) As suggested by roadrunner84, disconnect J4 completely and provide ~1.8V at J6
  11. You are right of course about the clocks in LPM4. I was thinking more in general I guess. Almost all of my contraptions have needed to wake up on their own at intervals....
  12. Fortunately it is also easy to get started for those of us who barely have a clue I bought one a while back to get better acquainted with linux but it hasn't received that much use yet. One of these days....
  13. Somebody can correct me if I am wrong, but I seem to remember that the 20 pin G2553 has Port 3 internally, it just can't be accessed. Accordingly, those should be pulled low also. You will either have to add them to Energia in pins.h, or access the registers directly. As roadrunner84 says, lowering the voltage and slowing down the clocks reduces power also.
  14. @@rord100 It isn't possible for others to replicate your findings since you are using a custom board with multiple things attached. Can you recreate your findings on a G2 LaunchPad? Try attaching the bells and whistles one thing at a time to isolate and see what might be causing it. Since you are using Energia, have you tried the functions that it makes available? i.e. sleep(), sleepSeconds(), suspend() and wakeup()? See for example this tutorial - it also demonstrates low power measurement with EnergyTrace and CCS. Note that at this time CCS does not support Energia v18 so use a
  15. Hi @@chicken - nice work Where did you get your suction tool to pick up the small SMD parts?
  16. Another reason it is nice to have this - GCC isn't always available right away for some of the newer chips - for example, the MSP430FR5994 doesn't have the GCC compiler available yet (or at least I can't get it to compile). Accordingly, the TI compiler is the only option and there is a 16 KB limit without the full license.
  17. I placed my order last night and received an email this morning with the information to install. As @@chicken says, the license is tied to a MAC address. It is relatively quick and easy if you already have CCS installed. After jumping through the usual hoops TI requires for accepting license you get a .lic file that must be installed on the computer. Open up CCS and point to it as described in the directions The license type will change to "Full License" - had it going in just a few minutes.... Edit: Thanks @@Rickta59 - I for one wasn't willing to pay for a license and although GCC
  18. @@energia - is there a log or posting that documents changes like CCS not supporting Energia when new versions are issued?
  19. I think I will order a couple now that I know they will work. Should be handy.
  20. Hi @L.R.A My experience is limited but I did try A USB charger with larger capacity a year or so ago. It would shut down when a MSP430 was looping and polling with no other activity. I pretty quickly turned to alkaline and lipo batteries in the 3 V range and didn't work with it any further. At that price you are not out a whole lot of money trying though.
  21. Hi @@mertkarakurtjk and welcome to 43oh. For some reason the MF RC 522 library does not work for me on the MSP432 either but I haven't had time to look into it.
  22. @@william67 Earlier in this thread there is some information from igor: I haven't dug into that, but it it may be better not to use pin 39.
  23. Looks like a bug.... I don't have a grove boosterpack either but when I run the sketch the yellow LED blinks and I don't get anything on pin 39. Looking at pins_energia.h for the CC3200 LaunchPad shows that pins 9 and 39 are mapped to the same port and pin. Edit: reported on github
  24. The links below showed up in an email I received from edX . They lead to a preview from TI for a CC2650 Module BoosterPack that is supposed to be released in time for a course in September. Of interest, it includes an "Additional CC2650 Module Sample" along with the BoosterPack. http://www.ti.com/tool/boostxl-cc2650ma'>TI SimpleLink
  25. @@enl I have had a project in mind that requires speech for some time but haven't progressed it much. I would be interested in what you come up with. I have considered this which uses the VS1000: https://www.adafruit.com/products/2342. The tutorial at adafruit includes documentation on using it with an arduino. Their design is open source if you want to make your own PCB.
×
×
  • Create New...