
kamalesh
Members-
Content Count
14 -
Joined
-
Last visited
Everything posted by kamalesh
-
Hi ,I testing this library with the MSP430FR4133 LP and my own code.. the Read and Write function is working fine, But the Thing is while writing to a file only Five characters is getting written to the file i.e if I write KAMALESH only KAMAL is written to the file. Can you Help me with this issue.. Source Code #include <SPI.h> #include <pfatfs.h> #include <pffconf.h> #define cs_pin 8 // chip select pin #define read_buffer 128 // size (in bytes) of read buffer #define LOG_DELAY 5000 // 5000ms -> 5sec un
-
[Energia Library] Petit FatFS SD Card Library
kamalesh replied to calinp's topic in MSP Energia Libraries
Hi ,I testing this library with the MSP430FR4133 LP and my own code.. the Read and Write function is working fine, But the Thing is while writing to a file only Five characters is getting written to the file i.e if I write KAMALESH only KAMAL is written to the file. Can you Help me with this issue.. Source Code #include <SPI.h> #include <pfatfs.h> #include <pffconf.h> #define cs_pin 8 // chip select pin #define read_buffer 128 // size (in bytes) of read buffer #define LOG_DELAY 5000 // 5000ms -> 5sec un -
MSP430FR4133 - Can LCD pins be configured as GPIO
kamalesh replied to kamalesh's topic in Energia - MSP
Thank You so much . Its working. -
Hi , I am using MSP430FR4133LP , in energia the GPIO pins are predefined in the pins_energia.h for MSP430FR4133 LP based on the silkscreen on the board. I using this MSP430FR4133 chip for another project and in that i am not using a LCD so i thought that i can also use LCD pins as GPIO. For this purpose i need to add the pins in the pins_energia.h but i am not able to crack it. Can anyone help me with this ....? if i try to use any other pins other than the defined ones (say P2_2) ... it throws an error as " P2_2 not defined in the scope" // Pin names based on the silkscreen
-
MSP430FR4133 - Not able to Convert a Float to string.
kamalesh replied to kamalesh's topic in Energia - MSP
conversions i had tried .. The above code i had sent only contains a type cast version just before the For statement. 1. type cast - String buf = String (FloatVal); 2 .snprintf(buffer, sizeof buffer, "%f", myFloat); //// in this type of float to string conversion if i use %f simply the "%f" is getting printed or transmitted. if i use %d the conversion is not proper. 3 . dtostrf(FloatVal, 4, 3, Buff);- 4 replies
-
- msp430
- msp430fr4133
- (and 6 more)
-
MSP430FR4133 - Not able to Convert a Float to string.
kamalesh replied to kamalesh's topic in Energia - MSP
The Minimal code Which i Use for the task. void loop() { duration = pulseIn(pin1, HIGH); { //conditions and statement for calculating sensor value. } String src = Sim800l.readSms(1); // if(Serial.available()) // { // String src = Serial.readString(); if(src.indexOf("Flow") != -1) { String buf = String(sensor_val); for(int i = 0; i < buf.length()+1;i++) { text = buf; } Sim800l.sendSms(number,text); delay(1000); Sim800l.delAllSms(); //Serial.print("Flow:"); //Serial.println(text); // src = "\0"; // }- 4 replies
-
- msp430
- msp430fr4133
- (and 6 more)
-
hi, I am using a MSP430FR4133 launchpad, i am trying to get a float value and send it via sim800. for that i hve to convert the float value to char* or char array. I have tried many conversions but i am not able to get the conversion properly. Even if i get it properly while printing it on the serial. The data is not transmitted in the right format through sim800. for example if i use dtostrf( buff , "%f" , flaotVal); function in serial monitor only "%f" is getting printed. and if i try other type of convertions , while transmitting through sim800 the right side part of the floa
- 4 replies
-
- msp430
- msp430fr4133
- (and 6 more)
-
Is the RXD and TXD jumpers connected vertically or horizontally. ...? If its connected horizontally , you cant see anything in Serial monitor. If it is connected Vertically its like tapping the connection . You can use both Application UARt and can see using the Serial monitor.
-
I am using a MSP430FR2311 launch pad and i am trying to send AT commands through RX and TX to SIM800 and Receive Response from the SIM800 module. But am not able to get the response and not able to use SoftwareSerial in Energia for MSP boards. Can Anyone help with this problem ? Thank you in advance. #include <String.h> void setup() { pinMode(RED_LED , OUTPUT); Serial.begin(9600); //Serial.print(F("AT\r")); while(Serial.available()==0); val1 = Serial.readString(); Serial.print(val1); Serial.print("\r"); delay(100); } void loo
-
Can we add MSP430FR2311 Launchpad to energia. The Board Manager isn't Showing this board.