Jump to content

Rei Vilo

Members
  • Content count

    1,794
  • Joined

  • Last visited

  • Days Won

    109

Everything posted by Rei Vilo

  1. RGB_LED_RANDOM not working

    The code was for the LM4F120H5QR / TM4C123GH6PM. On the TM4C1294NCPDT, the LEDs aren't PWM. See the pins map! Select pins in violet instead on the pins map.
  2. SSD1308 I2C OLED - Stellaris driver API

    tm4c123g = new name for Stellaris.
  3. Support for C2000 by Energia has been discontinued. Try using an earlier version of the C2000 Code Generation Tools. On macOS, release v15.3.0 works for me.
  4. ADC not giving 0 value when grounded

    Please have a look at What Information to Provide When Asking for Help so others can help you.
  5. PID Autotune

    No need to cross post. See Netiquette for Newbies.
  6. Is the issue specific to Energia, or do it also occurs on Arduino? For the latter case, open a ticket at the GitHub repository.
  7. RGB_LED_RANDOM not working

    You need to initialise the outputs! As always, the more obvious the cause, the more difficult to find it!
  8. RGB_LED_RANDOM not working

    This code works for me. [edit] on LaunchPad LM4F120H5QR / TM4C123GH6PM. [/edit] #include "Energia.h" void setup() { pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); pinMode(BLUE_LED, OUTPUT); Serial.begin(9600); Serial.println(); Serial.println("RGB\tR\tG\tB"); } void writeRGB(uint8_t valueRed, uint8_t valueGreen, uint8_t valueBlue) { analogWrite(RED_LED, valueRed); analogWrite(GREEN_LED, valueGreen); analogWrite(BLUE_LED, valueBlue); } void loop() { uint8_t valueRed = random(255); uint8_t valueGreen = random(255); uint8_t valueBlue = random(255); Serial.print(millis()); Serial.print("\t"); Serial.print(valueRed); Serial.print("\t"); Serial.print(valueGreen); Serial.print("\t"); Serial.print(valueBlue); Serial.println(); writeRGB(valueRed, valueGreen, valueBlue); delay(333); } And the video at vimeo.com/256190702.
  9. RGB_LED_RANDOM not working

    That would mean this pin does not feature PWM.
  10. RGB_LED_RANDOM not working

    Have you tried? uint8_t number = random(0, 255); analogWrite(ledRed, number);
  11. MSP-EXP432P401R & CC3100BOOST External Power

    The difference may come from the LDO. The CC3100 BoosterPack features the TLV62090 rated for 3A High Efficiency Step Down Converter in 3x3mm QFN Package, while The MSP432P401R LaunchPad relies on the TPS73533DRB rated for 500-mA, Low Quiescent Current, Ultra-Low Noise, High PSRR, Low-Dropout Linear Regulator
  12. Energia port value for RED_LED

    http://energia.nu
  13. Upload firmware code using Energia

    You'd need to create a variant for this specific MCU. See Is it Better to Change Header or Remap GPIO in my Sketch? for hints.
  14. Define differential ADC inputs

    I'm afraid you need to dig into the MSP430FR5994 data-sheet.
  15. SSD1306 OLED LIBRARY

    You’d need to use a library for Arduino and port it to Energia. Please find some useful links: How-To: Porting Libraries Posting a Library for Energia Some Misconceptions about Libraries Generally speaking, all calls to low-level functions related to the MCU are not portable, because they rely on the MCU architecture.
  16. DSLite problems

    The easiest way is to use OpenOCD outside Energia. Just check for the complete path of the .elf file on the Energia console.
  17. DSLite problems

    To upload to the TivaC, use OpenOCD instead. It supports the TM4C123 very well. You can also use OpenOCD to debug with GDB.
  18. Compile and upload energia code from terminal

    If you're on Mac, you can give embedXcode a try. It is a plug-in that runs on Xcode but relies on the command-line make.
  19. iMeter BoosterPack

    The iMeter BoosterPack features the INA226, an iteration of the INA219 I've been using in various projects like the I²C Voltage-Current-Power INA219 Sensor and the Volt-Amp-Watt-Meter for Grove.Compared to the INA219, the INA226 operates on the same I²C bus but can now perform the measures on the high- or low-side, when the INA219 could only measure on the high-side. The library for Energia was then easy to develop thanks to the prior experience with the INA219. I tested the iMeter BoosterPack on a MSP430FR4133 LaunchPad and a MSP430FR6989 LaunchPad with the built-in segmented LCD, leveraging the alpha-numeric LCD to display the units and the buttons to select the different measures (V, A, W) and toggle between units (V, mV). References INA219 Review INA226 BoosterPack full review Library for Energia
  20. Energia IDE 1.6.10E18 crashes on macOS Sierra, for most of the boards. This issue also occurs with the Arduino 1.6.11 IDE, see arduino#5397. However, compilation with embedXcode completes successfully. Please find the more details at ticket GitHub #928.
  21. The P2_5 naming convention is deprecated. Instead, Energia uses the 10 numbering convention as the same pin 10 exists on all LaunchPads. For the pins on connector J5, please refer to the pins map to find the numbers.
  22. Have a look at the Energia files used to define the MSP432 LaunchPad at msp432r-core/variants/MSP_EXP432P401R/. If you're using another board, you'd need to define those files to match the pins exposed on your board. You'll find interesting tips at Is it Better to Change Header or Remap GPIO in my Sketch?
  23. Porting Arduino Library

    Please find some useful links: How-To: Porting Libraries Posting a Library for Energia Some Misconceptions about Libraries Generally speaking, all calls to low-level functions related to the MCU are not portable, because they rely on the MCU architecture. Hence the issues you're facing with SoftwareSerial.
  24. How do you like this forum platform?

    It works smoothly. I really appreciate the way the new forum handles pictures: click-and-drop is so easy to use. However, opening a new thread often results on duplicate posts.
×