hemangjoshi37a

Members
  • Content count

    39
  • Joined

  • Last visited

About hemangjoshi37a

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    hemangjoshi.blogspot.com

Profile Information

  • Location
    Vadodara
  • Interests
    Electronics

Recent Profile Visitors

461 profile views
  1. Dear developers, I am simply using Serial.println(); command, but I get some weird characters in the serial port display window. Code : #include <Wire.h> // HIH6130 I2C address is 0x27(39) #define Addr 0x27 int tzero = 196; int tspan = 17; int hzero = 196; int hspan = 17; void setup() { Wire.setModule(1); Wire.begin(); pinMode(P1_3,OUTPUT); pinMode(P1_2,OUTPUT); pinMode(P1_6,OUTPUT); Serial.begin(9600); Serial.println("OK"); delay(300); } void loop() { unsigned int data[4]; // Start I2C Transmission Wire.beginTransmission(Addr); // Select data register Wire.write(0x00); // Stop I2C Transmission Wire.endTransmission(); // Request 4 bytes of data Wire.requestFrom(Addr, 4); // Read 4 bytes of data // humidity msb, humidity lsb, temp msb, temp lsb if (Wire.available() == 4) { data[0] = Wire.read(); data[1] = Wire.read(); data[2] = Wire.read(); data[3] = Wire.read(); } // Convert the data to 14-bits float humidity = ((((data[0] & 0x3F) * 256) + data[1]) * 100.0) / 16383.0; float temp = ((data[2] * 256) + (data[3] & 0xFC)) / 4; float cTemp = (temp / 16384.0) * 165.0 - 40.0; // Output data to serial monitor Serial.print("Relative Humidity :"); Serial.println(humidity); Serial.println(" %RH"); Serial.print("Temperature in Celsius :"); Serial.println(cTemp); Serial.println(" C"); Serial.println("=============================================================== "); int VcTemp = map(cTemp, -5, 125, tzero, tspan ); int vhumidity = map (humidity, 0, 100, hzero, hspan); analogWrite(P1_2, VcTemp); analogWrite(P1_6, vhumidity); delay(1000); } Serial Output : (in one single line, means it keeps printing these characters in just one line on and on.picture : Thax.
  2. I don't know why but my energia is running very slow. All the other apps are running at good speed. I am using windows 10 64-bit version. I am using Energia V17. Pictures from my task manager are attached here, please take a look at it. Thax and peace.
  3. Does it work with MSP 430 Launchpad?? with MSP430G2553 or MSP430F5529??
  4. Code composer studio is not detecting my MSP Launchpad while Energia easily detects it and loads program on it. Does anyone know why CCS is not detecting Launchpad??
  5. Please guide me how to port a library for energia or create one myself. I want to create library for SD card and Adafruit GFX. I will share it on Github and in this forum afterwards. Thank you.
  6. Hello everyone, Does anyone have the link to download the library?? Thanks.
  7. Hey yo. I thought it would work but it is still not working. And guess what, I am a advance member now......yay....... You said I have wrong connections. Well I have connected Tx pin to Rx and Rx pin to Tx, Isn't it right bro??
  8. Yo man I found the solution, There is pin named TXD and RXD on the MSP's board. There is the signal is generated. But thax for your help.
  9. So any new thoughts ???
  10. look man just forget about connection to PC, because arduino and MSP both are connected to PC through USB cable, Not using RS232 connection. And very basic question is why MSP is not able to develop any signal on TX pin while I am transmitting some data. however Arduino generates signal on TX pin when I try to transmit some data using same code.
  11. So what is this?? solution ??
  12. Arduino is connected to PC through USB cable and to MSP through TX/RX Pins. (to both at same time.) But When I transmit anything through Arduino, It shows on oscilloscope as well as on serial terminal. Why so?? So that in arduino we can intercept the serial signal and in MSP we cant. right??
  13. From Arduino's Serial terminal I should get "Hii" message but it is not showing anything. Infact I found that the MSP is just not transmitting anything by connecting Tx pin of MSP to oscilloscope and not getting any signal.
  14. Dear Developers, I want to send data from MSP430F5529 to my Arduino Nano through UART connection. But somehow it is not working filne. I have used voltage devider circuit to convert Arduino's 5V to MSP's 3.3V. Connection Arduino's RX -> MSP's TX Arduino's TX -> MSP's RX Ground of Both -> ground of voltage devicer. Code of Arduino : const int chipSelect = 10; String inByte = " "; void setup() { // initialize both serial ports: Serial.begin(9600); } void loop() { if(Serial.available()) { char b = Serial.read(); Serial.println(b); } delay(50); } Code of MSP430F5529 void setup() { Serial.begin(9600); } void loop() { Serial.write("Hii"); delay(50); } Please Help me. Thank you.
  15. Dear Engineers, Please help me send data to Arduino from my MSP430F5529 using SPI interface. I want to use SPI iterface because in future I want to use the modified code for Attiny13A instead of the Arduino Leonardo. Details are given below. Thank you for your support. Information to Provide When Asking for Help: Model of LaunchPad used and revision number : MSP430F5529 Launchpad Rev 1.6 & Arduino Leonardo Model of the MCU used : MSP430F5529 & ATMEGA32U4~AU at 15Mhz Name and version of the IDE used : Energia 1.6.10E18 & Ardduino IDE 1.8.2 OS the IDE is running on : Linux Mint 18 Whenever possible, minimal code to replicate the issue : Required from good developer