Jump to content

Rei Vilo

Members
  • Content Count

    2,046
  • Joined

  • Last visited

  • Days Won

    133

Reputation Activity

  1. Like
    Rei Vilo got a reaction from MichelKohler in Some Misconceptions about Libraries   
    I'm receiving many mails about the libraries I've developed and I'm sharing.
     
    The libraries are plug-and-play as I'm using them in my projects. However, they are designed for a specific configuration. For example, a SD-card library requires a minimum of 512 bytes of RAM as this is the size of a sector. So it won't work on the MSP430G2553.
     
    With so many LaunchPads, BoosterPacks and components possible combinations, the one-fits-all approach is just impossible. It would end with lengthy and hard to read code with many pre-processing statements. For example, changing the pins names for the pins numbers improves the portability of the library across the LaunchPad range of boards.
     
    Even if the library works out of the box, they are provided as examples and require some work from the user. This is the best way for learning. The user should read and understand them, and then customise them so they can match his/her exact needs.
     
    With new hardware and software releases coming out, a library may suffer from obsolescence. It used to work with a prior version but no longer works with the new one. For example, each new release of Energia or CCS adds new features and some times modifies others in order to ensure compatibility across the whole range.
     
    Finally, feel free to improve and share back the libraries with the community
     
    This is a cross-post with Stellarisiti.
  2. Like
    Rei Vilo got a reaction from MichelKohler in I2C channels in Stellaris   
    Use `setModule()` as described in https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/Wire/Wire.cpp#L599
     
    void setup() { Wire.setModule(3); Wire.begin(); ... } Similar logic applies for UART and SPI.
     
    As an alternative, declare the variable as in https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/Wire/Wire.cpp#L161
     
    TwoWire Wire2(2);
  3. Like
    Rei Vilo got a reaction from MichelKohler in [Energia Library] I   
    Please find a library for the I


    INA219_Distribution206.zip
  4. Like
    Rei Vilo got a reaction from enl in Best way change I2C freq to 400kHz   
    Please refer to Wire.cpp#L121-L123
    I2C_Params_init(&params); params.transferMode = I2C_MODE_BLOCKING; params.bitRate = I2C_400kHz;  
  5. Like
    Rei Vilo reacted to NurseBob in Using Adafruit's Fingerprint scanner with Msp430G2553   
    " Multiple libraries were found for..."
    You've got a configuration error message.  Time to read the docs on porting from other libraries.
    How-To: Porting Libraries Posting a Library for Energia Some Misconceptions about Libraries The above may provide guidance.  I am not able to help much beyond this suggestion as I'm deeply involved in other non-coding projects at this time.
  6. Thanks
    Rei Vilo reacted to bluehash in Server   
    Certificate fixed.
    Thanks.
  7. Thanks
    Rei Vilo got a reaction from Nicole in MSP low power configuration   
    Please refer to 
    Ultra-Low Power with MSP430 at https://embeddedcomputing.weebly.com/ultra-low-power-with-msp430.html Ultra-Low Power with Energia MT and Galaxia at https://embeddedcomputing.weebly.com/ultra-low-power-with-energia-mt-and-galaxia.html The MSP432P401R LaunchPad programmer features EnergyTrace to be used with Code Composer Studio. 
    Ultra-Low Power with EnergyTrace at https://embeddedcomputing.weebly.com/ultra-low-power-with-energytrace.html
  8. Thanks
    Rei Vilo got a reaction from TheBharath in CC1312R1 Energia   
    Not yet, stay tuned!
  9. Thanks
    Rei Vilo got a reaction from Fmilburn in Simple Radio Library for CC1310   
    The CC1310 LaunchPad has a sub-1 GHz radio.
    On Energia,
    Install the EasyLink library by calling the menu Sketch > Include Library > Manage Libraries..., then select EasyLink and click Install. Select the board CC1310 LaunchPad. Call the menu File > Example > EasyLink > EasyLinkTX for the transmitter example. Call the menu File > Example > EasyLink > EasyLinkRX for the receiver example. Both examples work together. Obviously, you need two CC1310 LaunchPad boards!
  10. Like
    Rei Vilo got a reaction from Myra in Basic blink program unable to be uploaded on MSP320fr2355 on macOS 10.13.3 High Sierra   
    It was important to be sure, as the standard uploader DSLite doesn't work on macOS 10.14 but used to work on macOS 10.13.
    macOS 10.14 has changed the way USB ports are enumerated and named.
     
  11. Thanks
    Rei Vilo got a reaction from Myra in Basic blink program unable to be uploaded on MSP320fr2355 on macOS 10.13.3 High Sierra   
    Which release of macOS?
    See 
    Information to Provide When Asking for Help macOS 10.14 — Upload to MSP430FR5994 Fails #69
  12. Like
    Rei Vilo got a reaction from energia in MSP430FR6989 pins_energia file   
    Check 
    Add a New Board to Energia
  13. Like
    Rei Vilo got a reaction from energia in MSP430FR6989 onboard LCD drivers for Energia   
    Check the menu Files > Examples > LCD_LaunchPad.
  14. Like
    Rei Vilo got a reaction from jsolarski in MSP430FR6989 onboard LCD drivers for Energia   
    Check the menu Files > Examples > LCD_LaunchPad.
  15. Thanks
    Rei Vilo got a reaction from venkatesh223 in MSP432P401R SD card interface   
    The SD_TM4C library worked out of the box.
    Configuration:
    LaunchPad: MSP432P401R red Energia: 1.8.7E21 Boards package: Energia MSP432 EMT 5.23.1 SD card: Kingston 8 GB formatted in MS-DOS (FAT32).  

     
  16. Like
    Rei Vilo got a reaction from venkatesh223 in MSP432P401R SD card interface   
    Have you tried the SD_TM4C library?
  17. Like
    Rei Vilo got a reaction from Markel in Powering ST LSM303AGR from MCU IO Pin   
    You need to read the data-sheets of the MCU and the sensor and check the mA provided and used.
  18. Like
    Rei Vilo got a reaction from energia in Sensor Controller with Energia   
    The Sensor Controller isn't supported by Energia. 
    Actually, it requires a specific IDE, called Sensor Controller Studio (link).
    I tried and played with the examples, but they are rather sophisticated.
    I'm looking for a very basic application for my Low Power Home Network Weather Monitoring with a clock (every 10 mn) and a push-button (manual) to raise an event and wake up the main core.
  19. Like
    Rei Vilo reacted to mph in TI HDC2010 temp-humidity sensor   
    There is code available to implement I2C communication between the MSP430 and the HDC2010 temperature-humidity sensor, but it's a bit like an onion -- you have to peel away layer after layer in various libraries to drill down into what is happening at the register level.  I decided to write some transparent demo code for this sensor that is self-contained: everything related to the I2C interface is in a single C program.  It has been successfully tested with the F5529 Launchpad.  This is a simple MCU polling operation that periodically makes a T-H measurement using the on-demand mode of the sensor. The data is sent to the serial port for display on a terminal program.  The on-board heater is activated for a few seconds upon reset. I have not implemented the temperature-humidity high/low interrupts. One could also configure the sensor to output data periodically and toggle its DRDY pin to wake-up the MCU from LPM4.  Polling code is here:
    https://github.com/microphonon/HDC2010
    The HDC2010 is a tiny sensor with a 6-bump BGA footprint.  TI makes an evaluation module that uses an MSP430F5528 to interface the sensor with a configuration/graphing GUI program.  Their program only runs on 64-bit Windows.  The portion of the PCB hardware containing the sensor can be broken off (permanently) to reduce thermal mass and allow placement in a project.  I decided to make my own breakout boards (see photo), but just learned that MikroElektronika started selling essentially the same thing for $13 (MIKROE-2937).
     

  20. Like
    Rei Vilo got a reaction from bluehash in Dual LCD Chess Clock   
    You can combine the LaunchPad with LCD with a second LCD. 
    The MSP-EXP430FR4133 with LCD goes for USD14 while the MSP-EXP430FR2433 is USD10.
    The larger MSP-EXP430FR6989 with LCD is USD18 vs. USD16 for the MSP-EXP430FR5969.
    If power consumption is critical, why not consider an e-ink screen? Pervasive Displays have a wide range of displays, B&W and also tri-colours with red. All are supported with an Energia library.

    At this state, we need to know more about your project.
    And no need to double post your question at Which MSP430 to pick? Advice please. This is against netiquette: see Netiquette for Newbies.
     
  21. Like
    Rei Vilo got a reaction from Usama in Arduino Library to Energia   
    Read the FAQ.
     
  22. Like
    Rei Vilo got a reaction from zeke in Import an image on the display Kentec 3.5 with Energia   
    @poulichp I confirm:
    Optional step - Format the image to 32-bit PNG with https://www.imagemagick.org/script/index.php  Step 1 - Use the utility https://github.com/vaskevich/png2c to convert the PNG file into a C-array. Step 2 - Use the example LCD_screen_Logos from the EduBPMKII_Screen and adapt it to match the size of the image and the Kentec 3.5" SPI display. Image

    Screen

  23. Thanks
    Rei Vilo reacted to NurseBob in MSP432 - Memory map prevented reading 0x1FFFFFxx   
    Sounds like time to read the manual.  Look at the memory map of the device and I think you'll have some insights into why you're running into problems. This is not an area where I have any other useful experience.  Of course, there's also e2e as a resource.
     
  24. Thanks
    Rei Vilo got a reaction from Fmilburn in What Information to Provide When Asking for Help   
    When you post a question asking for help, please provide minimal information about your configuration, both hardware and software, including:  
    model of LaunchPad used and revision number model of the MCU used model of BoosterPack used or model of the sensor or actuator or screen optionally, links to the sensor or actuator or screen data sheet name and version of the IDE used  OS the IDE is running on whenever possible, minimal code to replicate the issue optionally, all kinds of measures that may be useful, like logic analyser trace, oscilloscope screen-shots, ...  
    Example:  
    LaunchPad MSP430G2 revision 1.5  
  25. Thanks
    Rei Vilo got a reaction from tripwire in Interfacing BMG250 with TM4C1294XL   
    It looks like the I²C implementation requires a specific period between write and read. 

×
×
  • Create New...