Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 228410

Forum Post: ESP8266 interfacing with MSP430G2553 launchpad

$
0
0
Hello I am trying to send data to browser using wifi module ESP8266 with MSP430G2553 launchpad. ESP8266 work on 3.3V and MSP430G2553 also. So here i connected ESP8266 directly to the launchpad. connections are- Tx of ESP to Rx of Launchpad Rx of ESP to Tx of Launchpad VCC to Vcc Gnd to Gnd CH_PD to 3.3V and i got working code for energia from internet. code is as follows #define SSID "friends" #define PASS "walchand" #define DST_IP "things.ubidots.com" #define idvariable "569fc4ba76254229c49896a6" // replace with your Ubidots Variable ID #define token "aIdUatYb4QqgntExGmdi6xIllonUaY3AxwJjs5UzCCVib9reI1dI2XFEnfeX" // replace with your Ubidots token int len; void setup() { // Open serial communications and wait for port to open: char cmd[254]; Serial.begin(9600); Serial.setTimeout(5000); //test if the module is ready Serial.println("AT+RST"); delay(1000); if (Serial.find("ready")) { Serial.println("Module is ready"); } else { Serial.println("Module have no response."); while (1); } delay (1000); //connect to the wifi boolean connected = false; for (int i = 0; i ")) { //Serial.print(">"); } else { Serial.println("AT+CIPCLOSE"); delay(1000); return; } Serial.print ("POST /api/v1.6/variables/"); Serial.print (idvariable); Serial.print ("/values HTTP/1.1\nContent-Type: application/json\nContent-Length: "); Serial.print (num); Serial.print ("\nX-Auth-Token: "); Serial.print (token); Serial.print ("\nHost: things.ubidots.com\n\n"); Serial.print (var); Serial.println ("\n\n"); delay(9000); //Serial.find("+IPD"); clear the input buffer after the web site responds to the POST while (Serial.available()) { char c = Serial.read(); } delay(1000); } boolean connectWiFi() { Serial.println("AT+CWMODE=1"); String cmd = "AT+CWJAP=\""; cmd += SSID; cmd += "\",\""; cmd += PASS; cmd += "\""; Serial.println(cmd); delay(2000); if (Serial.find("OK")) { return true; } else { return false; } } when i trying to connect to wifi then it is not working properly Only red LED is glowing but not Blue. output giving.. AT+RST Module have no response. So what can be the problem?? Is there issue of power supply?? because esp require more current than msp provide. But on internet anywhere i didn't about this issue. I got code from below link forum.43oh.com/.../5903-esp8266-iot-on-the-cheap

Viewing all articles
Browse latest Browse all 228410

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>