Jump to content
43oh

Search the Community

Showing results for tags 'i2c'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

  1. Hi Everyone, for some time I'm trying to get a BMI160 IMU working with the MSP430 (G2231) on the launchpad. I've written both my own code and used the I2C example from TI. With both, I had no luck when sending the slave address to receive an ACK from the slave. First thought this might be due to my code, but the code works when using a different sensor on the Bus. Now I have tried different Bosch sensors on the bus, another BMI160, and a BMP280 (Environmental Pressure sensor). All with the same problem, I don't get any ACK from the Slave - even if I run all slave address up to 0xFF
  2. Hi to all, are you interested in assembler language programming? if so, this could be of interest to you. the basic idea is a 5kB kernel embedded on a MSP430FRxxxx, capable of downloading source files, interpreting and compiling them. Associated with a minimalist IDE: a text editor, a generic preprocessor and a terminal to communicate with the embedded kernel. What is the craziest wish of a microcontroller programmer? In my opinion, it would be that once his source is modified, he clicks on the "build" shortcut of the editor and in a second, the program is compiled on the targ
  3. denzel

    BME280

    i'have hooked up a bme280 sensor to msp430. I have tried serveral libraries, https://github.com/finitespace/BME280/ and https://github.com/adafruit/Adafruit_BME280_Library. Though am running into the same error. error: 'NAN' has not been declared error: 'NAN' has not been declared What could be the issue? Regards.
  4. I'm following the attached I2C example code provided by TI. The MCU is put into LPM0 with three interrupts enabled. On a pending RX interrupt, the ISR stores one byte of the receive buffer and clears the LPM0 SR bits taking the MCU out of LPM0 (lines 133-135). What's the reason for exiting LPM0? And why isn't the __bic_SR_register_on_exit(LPM0_bits) used for the NACIFG and BCNTIFG? msp430fr235x_euscib0_i2c_10.c
  5. I have found a very simple LCD display "DfRobot LCD for Arduino with rgb backlight". It seems like a good way to have a display with projects but the problem is that for some reason Energia cannot process the code. No matter how I try, i just get an error message: Error compiling for board MSP-EXP430G2ET w/ MSP430G2553. Is there any way to use such displays with Energia? the code is very simple #include <Wire.h> #include "DFRobot_RGBLCD.h" const int colorR = 255; const int colorG = 0; const int colorB = 0; DFRobot_RGBLCD lcd(16,2); //
  6. Hello, I am trying to port Sparkfun's library to get the apds-9960 Gesture Sensor working on my Tiva C 1294 board. I set up the library like you normally would with ardunio while changing the interrupt pin and uploaded the code to my board with no issues. The only problem is when I go to serial monitor I get nothing printed to screen. Are there any other steps I need to take in order to convert this code to work on my Tiva board? I also tried moving to code composer studio but I cant find many clean tutorials on how to use it. I also have a MSP432 that I might try to get his working on if
  7. Hello there, I am currently trying to write a custom firmware for an existing board I have. The I2C pin are connected to pins 3/4 of the cc3200, but in the standard case on the Launchpad is PIN 1/2 which won't work for me. So I stepped into the Wire.c and changed the begin() part: void TwoWire::begin(void) { MAP_PRCMPeripheralClkEnable(PRCM_I2CA0, PRCM_RUN_MODE_CLK); MAP_PinModeSet(PIN_01, PIN_MODE_0); MAP_PinModeSet(PIN_02, PIN_MODE_0); //MAP_PinTypeI2C(PIN_01, PIN_MODE_1); //MAP_PinTypeI2C(PIN_02, PIN_MODE_1); MAP_PinTypeI2C(PIN_03, PIN_MODE_5)
  8. I am using MSP432P401R and wanted to increase the I2C frequency from 100kHz(Standard) to 400kHz(Fast). In the Wire library for arduino, there is a function Wire.setclock(). Has anybody written such a function for energia? Because it is not there in energia. I went through the wire and twi libraries and found the following, In wire library, Wire.endTransmission calls a fucntion in twi library, twi_writeTo() which has the following line of code, UCBzCTL1 |= UCSSEL_2; // SMCLK Is this the line of code that sets the clock speed? Also in the twi.h lib
  9. I am trying (for quite long time) to write to EEPROM 64 bytes of data in 4 chunks (as EEPROM's page size is 16 bytes). Unfortunately, the MCU sends few extra bytes every time it transmits. For example, if I send 16 bytes, it transmits 22, with 6 last bytes being of unknown origin to me. For example, I send 15 text bytes within for(...) cycle xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx but see on the scope xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx BF F6 FD D7 3A C0 I tried another approach: send 15 bytes + 00. My program stops at 00, then I try to replace 00 with wh
  10. Hello it looks like I bumped into an issue which might be of interest, and needs to be investigated. I have a string of I2C devices running on i2C Bus on Arduino Mega (MCP4531 potti, LM-75 Temp sensor, 2x PCF 8575 I/Expanders). All running smooth. The next step I had to exchange the Mega with Tiva Stellaris Launchpad (EK-TM4C129E ), which I did, I havent changed anything on the setup besides the Mega2560 with Launchpad. While running the i2C scanner I saw, full Bus of devives. Furthermore I changed the i2C modules (0,1,2 with setModule()) nothing changed, same issue persists. Pull-ups var
  11. I2c not working with energia. Below is the code attached. Please help Master Reader #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(); // join i2c bus (address optional for master) Serial.begin(9600); // start serial for output } void loop() { Wire.requestFrom(2, 6); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } delay(500); } Slave Sender .
  12. hello I am getting a cc3200 launchpad and mpu9250, there I want to get the sensor data. I am using the Energia IDE, could anyone have a suggestion for the library of mpu9250 used in Energia IDE? There I just found the library used in Arduino IDE. Is that universal? best wishes
  13. I have been trying to use this i2c code on energia. it works perfectly fine on arduino. i am new to tiva and need help using energia libraries with the multiple i2c ports. any help is appreciated trialEnergua.ino Adafruit_PWMServoDriver.h Adafruit_PWMServoDriver.cpp
  14. Interfacing without I2C 1. browse for "Liquid Crystal" folder in C:\Program Files (x86)\energia-1.8.7E21\hardware\energia\msp430\libraries or on the path where you downloaded the energia. 2. copy the folder and paste it to C:\Program Files (x86)\energia-1.8.7E21\libraries. note that this library is made for MSP430. You need to follow the pin convention of cc3200 launchpad. 3. open energia and change the rename the pin number as one given in the launchpad schematic. Make sure you dont use the pins that are connected to push buttons. try using the pins that are less multifunc
  15. Hello all, I#ve got issues working with i2c (in another thread) but I wonder if anyone has gotten i2c working between 2 tivac connected boards using the master_writer and slave_receiver sketches? I can't seem to get any i2c working at all with the 1.8.7e21 version of energia. Can you make it work? Cheers Sol
  16. Hello All! I'm having trouble achieving I2C communication with Sparkfun's MPR121 I2C capacitive touch sensor breakout board. I've used the breakout board (and code) many times before with the Arduino, but for some reason I can't get it to work with the MSP430G2553 and Energia. I'm using an MPR121 library found at http://bildr.org/2011/05/mpr121_arduino/ to help with register configuration. My code compiles fine, but I'm trying to print the output from the touch sensor to the serial monitor and nothing is showing up, so I'm assuming the touch sensor isn't working. I kno
  17. Hey all, I've currently got an issue where i2c just isn't working with energia, I've opened an issue on github but haven't gotten any replies. Is there a better way to get some eyes on this? Would anyone here mind taking a look? https://github.com/energia/tivac-core/issues/41 Cheers Sol
  18. This is a start to a bigger project and will be expanded on. Temperurature sensor for Mash -- MSP430, LM75B, possible other sensors, thermal couple. (working on code and proof of concept) Temperurature sensor for fermentation -- TBD Specific gravity sensor -- TBD User Interface -- TBD automation of pumps gas lines and equipment -- Requirements: Food safe, easily cleaned. probes and sensors sealed...... What I want is mash temp monitoring and logging to help me improve my brew days and procedure and maybe add a heater to keep
  19. Hi, At a previous project I turn on and off power to ST LIS3DH Accelerometer using a MOSFET Circuitry. This is so to make sure the I2C Sensor is not consuming current when not in use. A colleague of mine designed to power a ST LSM303AGR from one of the MCU IO Pins. The MCU IO voltage is enough to power the ST LSM303AGR, so, should work. But, powering I2C Sensor from MCU IO Pins is not the usual way and new to me. Do you think that powering the ST LSM303AGR from one of the MCU IO Pin is okay or is not recommended? Regards, Markel
  20. Hello, I am trying to get RED, IR and GREEN led value in real time from MAX30101 sensor. I am using MSP430F5438A as my MCU. My IDE is CCS. The protocol required to communicate with the sensor is I2C. Now my problem is I am not any value except 0 in my read and write pointer (Indicated in the comment in my code). I am supposed to get some value in between 0 to 32. I'm attaching the link for the datasheet for the sensor: https://datasheets.maximintegrated.com/en/ds/MAX30101.pdf I know the datasheet is a whole lot. But I am referring page 17 which they have a pseudo code how to burs
  21. Hi everyone I am beginner and I want to use the adxl345 with msp430g2553 with I2C, but the example that I am using don´t working, always send 0 in the axes x,y and z. I use energia 1.6.10e18, the circuit have the pull'up resistor in SDA and SCL pines, and I remove the jumper of the green led. I used the same code but with arduino and it working but with enegia not, help me please. My launchpad is MSP-EXP430G2 rev 1.5 The SCL is connected in pin 14 and the SDA in pin 15. My OS is windows 7 When i put this function "Wire.setModule(0)" the mcu does make nothing, the uar
  22. Hello, I'm working on msp430fr4133 board and interface SHTC3 (SENSIRION) sensor. I'm working on energia v.18 IDE. I've library of SHTC3 sensor based library.this library perfectly working in Arduino board. But same library and its example sht-detect not working in energia IDE. When I refer SHTC3 compatible library file .h and .cpp. if I'm comparing datasheet and library files then in .cpp not mention any hex address e.g Reset,ID, measure, sleep, wake up. So,I have a 2 queries : (i) How this file working in arduino without addresses ? (ii) How to make energia compa
  23. Hello, everyone! Has anyone used the I2C display module with the TM4C123 Launchpad? I'm trying to use this code as a test, but I was not successful. The version of the library I am using is 1.2.1 I accept other suggestions for using the i2c display. Thanks in advance! The code: #include <Wire.h> #include <LiquidCrystal_I2C.h> // Start the I2C address at 0x27 position LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE); void setup() { lcd.begin (16,2); } void loop() { lcd.setCursor(0,0); lcd.print("test line 1"); lcd.setCursor(1,1); lcd.print("te
  24. Hi, I posted a question on e2e but I found interesting to ask here too. I'm trying to port the Adafruit MCP4725 library to MSP430 using the Driverlib. I'm testing with launchpad EXP43FR2433 running at 1MHz and I would not want to use interruption to keep the code more portable. The sequence to write some value on DAC is relatively simple. - Set address -> send start -> send write cmd -> send upper byte -> send lower byte -> send stop. Using the following code one byte of the value is lost. msp43x_I2C_setSlaveAddress(EUSCI_B0_BASE, _i2caddr); ms
  25. I am working on TM4C1294XL board and through Energia platform. I am trying to interface HMC5883L of GY-80 with TM4C1294XL board. I am getting static outputs irrespective of whether I initialize all the essential registers or initialize none, the static outputs do not change in both cases. I am pasting the code below, I suspect that something should be wrong with the code as there nothing much to do in connection (only four wires needed). #include "Wire.h" #define cra 0x00 #define crb 0x01 #define modeReg 0x02 #define data_X_MSB 0x03 #define data_X_LSB 0x04 #define data_Y_MSB 0x07 #defin
×
×
  • Create New...