Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Fmilburn

  1. I see similar behavior. If I run the following sketch: void setup(){ Serial.begin(9600); int8_t x=10; uint8_t y=10; int a = 10; unsigned int b = 10; char c = 10; unsigned char d = 10; long e = 10; unsigned long f = 10; String xx = String(x,DEC); String yy = String(y,DEC); String aa = String(a,DEC); String bb = String(b,DEC); String cc = String(c,DEC); String dd = String(d,DEC); String ee = String(e,DEC); String ff = String(f,DEC); Serial.println (xx); Serial.println (yy); Serial.println (aa); Serial.println (bb); Serial.println (cc); S
  2. Have you searched this site and tried the libraries / fixes already posted? EG: http://forum.43oh.com/topic/8817-energia-library-ssd1306-adafruit-low-level-43oh/ I haven't used that display in a while but don't remember problems with it. Maybe you have a bad one.
  3. Hello @@Pauliet and welcome to 43oh... The pin maps are at energia.nu. For example, the pin map for the CC3200 is here: http://energia.nu/pin-maps/guide_cc3200launchpad/ The red LED is at pin number 29. Or you can look in pins_energia.h for your processor / variant. For the CC3200 it is listed like so: Or you could write a little sketch and just print it out.... void setup(){ Serial.begin(9600); Serial.print("RED_LED = "); Serial.println(RED_LED); } void loop(){ } Note that you may find sketches that use pin nomenclature like P1.0 coded as P1_0. This has is being d
  4. The datasheet for the MCP39F501 says the default baud rate is 4.8 kbps. Are you sure the baud rate is right? It seems that the LP is sending data but the MCP39F501 is not responding. EDIT: In your photo it is not evident that they share ground
  5. @@MSP432 Try hooking a jumper between P3_2 and P3_3, then run this sketch... void setup() { Serial.begin(115200); Serial1.begin(115200); Serial.println("Starting..."); } void loop() { Serial1.write('A'); if (Serial1.available()) { int inByte = Serial1.read(); Serial.write(inByte); } delay(1000); } If it runs, then at least your LaunchPad is sending and receiving Serial1. It worked for me with Energia V18 and a black MSP432. Past that it is just guessing for me since you say it works on other LaunchPads and I don't have the sensor. Try getting hold of an os
  6. Hi @@MSP432, Can you explain what you mean by I pasted the code in a MSP432 and Energia V18 and it is printing to the serial monitor. Of course all the data is 0 because I don't have a sensor hooked up. I attached my logic analyzer to P3_3 and I see serial1 output.
  7. Hi @@sinquito and welcome to 43oh.... First, try placing #include <SPI.h> at the beginning of the sketch Second, I developed this sketch and tested it in Energia 16 and 17. I haven't tried it in Energia 18 and don't have a working CC3200 at the moment. If #include <SPI.h> doesn't work then try it with Energia 17. Let us know if either of these solutions work...
  8. Hi @@poliakos, The ADC converter has multiple channels (pins) that can be multiplexed to it. The user can choose among various conversion modes: single channel (what is being used above), repeat single channel, a sequence of channels (autoscan), or a repeated sequence of channels (repeated autoscan). What I believe you are describing is a sequence of channels. For the F5529, see slau208O, the Family User's Guide for a complete description. The user specifies what mode they want the ADC to operate in and then reads the appropriate register(s). I just had a quick look at MSP430 ware
  9. @@Rei Vilo Thanks and good to know that the Energia library is compatible with the new Fuel Tank boosterpack MKII. I bought one and have been happy with it. TI has new examples in CCS for the FR6989 and FR5994 as well.
  10. Hi @@tianxia1999 and welcome to 43oh
  11. Hi @@veryalive, I find it easiest to do as @@bluehash suggests and specify a blank DriverLib project in CCS at the bottom of the window when creating a project and before pasting in code. It can also be imported after creation as described in the MSP430 Design Workshop. EDIT: Back at my computer again... The selection I am referring to is highlighted at bottom left in the attached photo
  12. Energia and Arduino users eventually get to the point where they need more direct access to the hardware if they take on more complicated projects. In addition to the direct access of registers using the provided header files, TI offers DriverLib which contains abstractions for accessing the peripherals. To better understand the peripherals, and to check out DriverLib, I recently created 20+ short examples for my own edification. All of them were written for the MSP430F5529 LaunchPad and most of the peripherals are covered. In some cases pushbuttons, LEDs, resistors, potentiometer, etc.
  13. @@cwpotter You might have a look at this for ideas also: https://www.hackster.io/yertnamreg/iot-smoker-478dc6
  14. Nick Gammon published an interesting post on using SPI on 16 MHz Arduinos to run WS2812 LEDs (aka neopixels) at: http://gammon.com.au/forum/?id=13357. He also provides a link with a lot of information about the NRZ protocol used by the WS2812 and tolerances: https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/. The tolerances are actually quite a bit looser than what I previously believed. So, I set out to do something similar with Energia and LaunchPads running at different speeds. Spoiler alert: It works. The previously linked articles provid
  15. I suspect it may be mostly a case of pin assignment but you won't know until you get into it. Try this... Create a new tab using the tab button shown by the arrow below in Energia. Name the tabs the same as the .h and .cpp files. Copy paste the contents from git into the tabs. When you save the sketch it will save these tabs along with it and they will be there when you open it up again. V18 is new with omissions and changes from previous versions. If you aren't familiar with Energia and don't need V18 features it may be better to stick with V17. Bugs if any and omissions wil
  16. Hi @@cwpotter It sounds like an interesting project. That boosterpack looks pretty neat. I don't have any experience with the 430BOOST-ADS1118 but took a quick look at this and here are some things that you should look into... The library you link to seems to have been written for the C2000 - so you would need to port it to the CC3200. You definitely don't want to download the entire thing if it is written for the C2000 - probably just the .ino, .cpp and .h files. Error messages will tell you where to proceed from there. Do they say something is missing? Then look for it in the r
  17. Hi @@cwpotter and welcome to 43oh. The CC3200 is fairly easy to use with Energia but has some quirks. Be sure to stay under 1.5v with ADC (analogRead).
  18. See https://github.com/fmilburn3/if_Processor/blob/master/if_Processor.ino
  19. @@energia - I am able to reproduce this in Windows 10 with E18 and the G2553.
  20. Here are my finished projects for the season... This is a princess tiara made from the wearable G2553 I posted above. It drives 3 WS2812 "neopixels" on a tiara that I bought at the dollar store. The WS2812 were ordered from Aliexpress and I find them difficult to solder up in a chain by hand. I need to put together a jig or something to hold things in place and make it easier. All princesses need a magic wand and this one came with the tiara. I cut out a star shape from some 4x6 cm 0.1" pitch PCB and soldered a blinking RGB LED, coin cell holder, and a tilt ball type switch to it.
  21. Hi @@pyrosmog, and welcome to 43oh... If it is the latest version 1.6.10E18 then it does not have the G2452 in the Tools->Board pulldown menu. The latest version is based on the new Arduino IDE and for some reason the G2452 isn't included. I don't know if it will be officially added in future. There are a number of threads here in 43oh on adding a new MSP430 if you want to try it yourself. The easiest thing for now may be to use an earlier version of Energia that has the G2452 such as Energia v17. Of course there could be other problems, e.g. putting the chip in upside dow
  22. Great clock Rob. I agree with your wife and find the blinking distracting also :-) Here is a thought for an enclosure. Keep everything clear acrylic but include sides and have right angle pushbuttons accessible through the side - something like these: https://www.aliexpress.com/item/5-Pcs-Blue-Round-Cap-Right-Angle-Momentary-Tact-Pushbutton-Switch-12-X-12Mm-X-8Mm/32752171836.html?spm=2114.01010208.3.27.aSrfjS&ws_ab_test=searchweb0_0,searchweb201602_4,searchweb201603_1&btsid=42e3f2a1-9de1-4e95-b17b-7a8120f6bb2c
  23. @@RalphB In addition to all the above, not to overload you with information... Since the LaunchPad only cost $10 you could use it if you wanted and just remove the voltage regulator and G2211 microcontroller shown in his circuit. But then you wouldn't have that cool LaunchPad to play with anymore. And a couple more suggestions/comments.... It looks like he soldered the microcontroller directly into the PCB - I would use an IC socket(14 pin for the MSP430G2211) as they are cheap and would allow you to swap the microcontroller in and out: http://www.newark.com/multicomp/spc154
  24. Hi @@RalphB It appears that he used a LaunchPad to program and then put the programmed chip into the circuit. The programming process is described here: http://43oh.com/2011/11/tutorial-to-use-your-launchpad-as-a-programmer/ The LaunchPad is not necessary for the circuit after programming since the circuit provides 3V3 power, external crystal, and the necessary passives.
  • Create New...