tag:blogger.com,1999:blog-3466508970473354894.post7037373527237344938..comments2024-03-05T23:38:39.420+01:00Comments on AReResearch - Andy Reischle: Arduino and ESP8266 - part 2 - The web thermometerARehttp://www.blogger.com/profile/13473291183033725832noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-3466508970473354894.post-22227954536583896162018-06-28T14:59:47.890+02:002018-06-28T14:59:47.890+02:00Ooops! You are right! Funny no one noticed that ye...Ooops! You are right! Funny no one noticed that yet: The connection from the battery (3V) to the LV (=Low Voltage) supply of the level shifter is missing.<br />This was an oversight.<br />Thank you for the comment.ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-38186874736512840842018-06-28T09:33:16.444+02:002018-06-28T09:33:16.444+02:00It's great tutorial to start Arudion-ESP-01 Co...It's great tutorial to start Arudion-ESP-01 Connection! Thank you.<br />I have a question about the "Logic Level Shifter". On above image of diagram which connection between Arduino and ESP-01. On the side of ESP-01 with "Logic Level Shifter", they have no any connect! <br />Is it possible? on the Arduino "HV","GND" connected, but "LV" is not connected(Even "GND" on ESP-01 connected").<br />I couldn't understand! IAnonymoushttps://www.blogger.com/profile/11776506029968810012noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-52561526769446410112018-06-28T09:33:05.174+02:002018-06-28T09:33:05.174+02:00It's great tutorial to start Arudion-ESP-01 Co...It's great tutorial to start Arudion-ESP-01 Connection! Thank you.<br />I have a question about the "Logic Level Shifter". On above image of diagram which connection between Arduino and ESP-01. On the side of ESP-01 with "Logic Level Shifter", they have no any connect! <br />Is it possible? on the Arduino "HV","GND" connected, but "LV" is not connected(Even "GND" on ESP-01 connected").<br />I couldn't understand! IAnonymoushttps://www.blogger.com/profile/11776506029968810012noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-4431067481855125702017-01-26T23:15:56.622+01:002017-01-26T23:15:56.622+01:00Arduino: 1.6.11 (Mac OS X), Board: "Arduino/G...Arduino: 1.6.11 (Mac OS X), Board: "Arduino/Genuino Uno"<br /><br />Temp_to_IP:18: error: 'BUFFER_SIZE' was not declared in this scope<br /> char buffer[BUFFER_SIZE]; <br /> ^<br />/Users/pratibhabenjamin/Documents/Arduino/Temp_to_IP/Temp_to_IP.ino: In function 'byte wait_for_esp_response(int, char*)':<br />Temp_to_IP:35: error: 'buffer' was not declared in this scope<br /> buffer[i++]=esp.read(); <br /> ^<br />Temp_to_IP:44: error: 'buffer' was not declared in this scope<br /> buffer[i]=0; <br /> ^<br />/Users/pratibhabenjamin/Documents/Arduino/Temp_to_IP/Temp_to_IP.ino: In function 'bool read_till_eol()':<br />Temp_to_IP:63: error: 'buffer' was not declared in this scope<br /> buffer[i++]=esp.read(); <br /> ^<br />Temp_to_IP:64: error: 'BUFFER_SIZE' was not declared in this scope<br /> if(i==BUFFER_SIZE) i=0; <br /> ^<br />/Users/pratibhabenjamin/Documents/Arduino/Temp_to_IP/Temp_to_IP.ino: In function 'void loop()':<br />Temp_to_IP:78: error: 'buffer' was not declared in this scope<br /> if(strncmp(buffer, "+IPD,", 5)==0) { <br /> ^<br />exit status 1<br />'BUFFER_SIZE' was not declared in this scope<br /><br />This report would have more information with<br />"Show verbose output during compilation"<br />option enabled in File -> Preferences.<br /> I'm getting this errorRandom Bloggerhttps://www.blogger.com/profile/09301100679603640704noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-80238859367449734552016-10-05T13:31:34.639+02:002016-10-05T13:31:34.639+02:00I am using an ESP8266 on an adapter board with a N...I am using an ESP8266 on an adapter board with a Nano because I don't want to have to deal with level shifting. The adapter does all this for me so I have only 4 pins coming from my ESP. GND VCC RX and TX.<br />The module works just fine, can connect to my wifi and be pinged on the network. - No issues there.<br /><br />This is the exact model I purchased:(http://www.banggood.com/ESP8266-ESP-01-WIFI-Transceiver-Wireless-Module-Serial-Wi-Fi-Wireless-Adapter-Module-For-Arduino-p-1049585.html)<br /><br />GPIO pins are not really the issue, the issue is that I don't have a serial programmer (yet, on order) so cannot use the software serial. Of course I realize it doesn't need to be removed from the code. <br /><br />What I am trying to ultimately do is get the nano to dump it's temp readings into an influxdb database using this lib:<br /><br />https://hwwong168.wordpress.com/2015/11/23/esp8266-writing-data-into-influxdb/<br /><br />I will then graph this data with "grafana" visualization software (both of which I already have running, but without being able to get the nano to drop it's data into the database, I'm stuck)<br /><br />So I think it's pretty clear I'm out of my depth with this project as a complete beginner with arduino and ESP. I just don't have the skills or knowledge to make this work.<br />2000Jagohttps://www.blogger.com/profile/08553990615292164471noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-61166528299168532872016-10-05T11:25:26.066+02:002016-10-05T11:25:26.066+02:00No need to give up. The downside of Ray's orig...No need to give up. The downside of Ray's original sketch is that you can't use the standard port for debugging on an arduino. Do you need all the GPIO pins and can't spare the two pins for the software-uart?ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-23290098969381604882016-10-04T19:06:32.294+02:002016-10-04T19:06:32.294+02:00I'm already way ahead of you ;) As soon as I ...I'm already way ahead of you ;) As soon as I encountered problems, I went to the original.<br />Unfortunately I have issues there too but my post at rayshobby.net remains unanswered.<br />I give up. Thanks for the help though.2000Jagohttps://www.blogger.com/profile/08553990615292164471noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-70726006312174549972016-10-04T16:03:27.294+02:002016-10-04T16:03:27.294+02:00The sketch should be ok on a Nano. But if you don&...The sketch should be ok on a Nano. But if you don't want to use SoftwareSerial, this breaks all lines with "esp."<br />It is then easier to modify the original version:<br />http://rayshobby.net/?p=9734<br /><br />ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-63915997199014647202016-10-03T07:28:41.603+02:002016-10-03T07:28:41.603+02:00I had commented out software serial because I don&...I had commented out software serial because I don't plan to use it. But re-added your code from scratch and the only changes made this time was the #define BUFFER_SIZE 100<br />And adding my SSID and Password. Now I get this: <br /><br />Arduino: 1.6.10 (Windows 7), Board: "Arduino Nano, ATmega328"<br /><br />C:\Users\david\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.14\cores\arduino\main.cpp: In function 'main':<br /><br />C:\Users\david\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.14\cores\arduino\main.cpp:51:1: error: unable to find a register to spill in class 'NO_REGS'<br /><br /> }<br /><br /> ^<br /><br />C:\Users\david\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.14\cores\arduino\main.cpp:51:1: error: this is the insn:<br /><br />(insn 389 386 392 34 (set (mem:QI (post_dec:HI (reg/f:HI 32 __SP_L__)) [0 S1 A8])<br /><br /> (subreg:QI (reg/f:HI 383) 1)) C:\Users\david\AppData\Local\Temp\arduino_modified_sketch_314486\BareMinimum.ino:81 1 {pushqi1}<br /><br /> (expr_list:REG_ARGS_SIZE (const_int 7 [0x7])<br /><br /> (nil)))<br /><br />C:\Users\david\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.14\cores\arduino\main.cpp:51: confused by earlier errors, bailing out<br /><br />lto-wrapper: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status<br /><br />c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: lto-wrapper failed<br /><br />collect2.exe: error: ld returned 1 exit status<br /><br />exit status 1<br />Error compiling for board Arduino Nano.<br /><br />2000Jagohttps://www.blogger.com/profile/08553990615292164471noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-11874549988533116122016-10-03T02:15:46.067+02:002016-10-03T02:15:46.067+02:00Something must have happened to the line:
Softwar...Something must have happened to the line:<br /> SoftwareSerial esp(10,11); <br />Please check if that is near the beginning of your code.ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-36631794842380975912016-10-02T19:05:38.582+02:002016-10-02T19:05:38.582+02:00Compile Errors:
'BUFFER_SIZE' was not dec...Compile Errors:<br /><br />'BUFFER_SIZE' was not declared in this scope<br /><br />From your comment above I added: <br /><br />#define BUFFER_SIZE 100<br /><br />Now I get this:<br /><br />'esp' was not declared in this scope<br /><br />Please advise?<br />2000Jagohttps://www.blogger.com/profile/08553990615292164471noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-59606871759906752562016-09-08T11:42:45.861+02:002016-09-08T11:42:45.861+02:00You can see that from the response on the serial i...You can see that from the response on the serial interface. The easiest way is to use "esplorer". It has pre-defined commands for both NodeMCU and AT-Firmware.ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-45686513139054025172016-09-03T17:41:23.829+02:002016-09-03T17:41:23.829+02:00Sir Thank You for the awesome tutorial.I appreciat...Sir Thank You for the awesome tutorial.I appreciate your hardwork nad dedication.<br /><br />Sir how can we figure out if AT-Firmware is there or not on ESP-8266?Anonymoushttps://www.blogger.com/profile/00657741918439791989noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-54223935357279541352016-07-02T10:55:37.979+02:002016-07-02T10:55:37.979+02:00Thanks Sir ... for this Job
when i open serial mon...Thanks Sir ... for this Job<br />when i open serial monitor, I only got this two line:<br />begin.<br />device ip addr:<br /><br />where is the problem ??Anonymoushttps://www.blogger.com/profile/17140047624666378423noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-24444340124870263532016-07-02T10:49:33.560+02:002016-07-02T10:49:33.560+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17140047624666378423noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-66003712255580215062016-06-01T07:27:08.989+02:002016-06-01T07:27:08.989+02:00Sir I think you have made this project on CWMODE=1...Sir I think you have made this project on CWMODE=1 but I want to make it on CWMODE=2 ie TCP/IP client mode. Moreover I want to do this on arduino itself.<br />Have you made any project related to this in which we don't use any external Wi-Fi like I think you are using in this web thermometer.<br />Can you guide a little bit for "How to transmit sensor data using arduino and esp8266 on tcp/ip mode.<br />thanks in advance.Anonymoushttps://www.blogger.com/profile/09920725657042405346noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-4742793717986641512016-05-13T15:58:06.737+02:002016-05-13T15:58:06.737+02:00Depending on the sensors, it might make sense to c...Depending on the sensors, it might make sense to cut out the arduino completely. You can still do your development in the arduino IDE, but program the ESP8266 directly. (Or use NodeMCU, which is my preferred firmware)<br />If your sensors are I2C devices, this should work great for you.ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-26693123501211271172016-05-10T17:59:41.516+02:002016-05-10T17:59:41.516+02:00hello sir sorry
I want to share my project with yo...hello sir sorry<br />I want to share my project with you, i want to connect 3,4 sensors with arduino and esp8266 so that I can get the data of them all on my mobile. <br />Till now I am successful in sending just a particular text that I type on the serial moNitor to my mobile phone(when i did this task sir I connected the transmitter and receiver of esp directly to transmitter and receiver of arduino) and i just used few AT commands AT CIPSEND=0,30 which was the used including some other like AT CIFSR etc<br /><br />Sir please i really need your help in this project.please reply me some valuable tips.<br />thanks in advance<br />raman <br />electronics student<br />Anonymoushttps://www.blogger.com/profile/09920725657042405346noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-40945660508386637932016-05-02T11:31:58.455+02:002016-05-02T11:31:58.455+02:00Oh, I see. Try a "#define BUFFER_SIZE 100&quo...Oh, I see. Try a "#define BUFFER_SIZE 100" at the top of the sketch. Haven't tried that yet, though.ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-73083508198999938652016-05-01T10:13:24.341+02:002016-05-01T10:13:24.341+02:00Thanks for an awesome blog.
I have tried to compi...Thanks for an awesome blog.<br /><br />I have tried to compile this code on a arduino ide 1.6.7 on a pro-mini 3.3 and get the following error<br /><br />error: 'buffer' was not declared in this scope<br /><br /> if(strncmp(buffer, "+IPD,", 5)==0) { <br /><br /> ^<br /><br />exit status 1<br />'BUFFER_SIZE' was not declared in this scope<br /><br />any help would be appreciated.<br />Anonymoushttps://www.blogger.com/profile/15772683130311964718noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-38516114076597236192016-03-23T18:11:33.379+01:002016-03-23T18:11:33.379+01:001) You're only programming the Arduino from th...1) You're only programming the Arduino from the Arduino IDE, so you have to choose "Arduino Uno" as the board.<br />2) Do you have the 0.9.2.2 AT-firmware on the ESP8266 module?<br />ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-3120611315772715552016-03-23T15:51:20.707+01:002016-03-23T15:51:20.707+01:00I am using the same code but still not getting o/p...I am using the same code but still not getting o/p<br />please if you can answer my following questions<br />1.) which board should we use arduino uno or generic esp8266<br />2.) why I am getting nothing on serial monitor although program is showing zero errorsAnonymoushttps://www.blogger.com/profile/09920725657042405346noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-70944374893015279792015-10-24T20:00:55.178+02:002015-10-24T20:00:55.178+02:00I've tried with using only esp and sensor, but...I've tried with using only esp and sensor, but several different tests have proven that the esp was so unstable and would not provide consistent results and more than often freeze. <br />I also tried the espduino. No problem flashing it to the esp but then when uploading the ino file to the arduino only gives weird characters and could not make it connect.mqtt wondererhttps://www.blogger.com/profile/04051799019992204921noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-84051228168505310802015-10-24T11:39:31.327+02:002015-10-24T11:39:31.327+02:00I'd first check if the Arduinos are still nece...I'd first check if the Arduinos are still necessary. The NodeMCU firmware has a fairly robust MQTT implementation. ( http://www.nodemcu.com/docs/mqtt-module/ ). So you might interface the sensors directly to the ESP module.<br />If that is not an option (because you'd lose the SD-card as a local storage), you'll have to resort to the AT-Firmware and have a look at this thread: http://forum.arduino.cc/index.php?topic=290665.0<br /> ARehttps://www.blogger.com/profile/13473291183033725832noreply@blogger.comtag:blogger.com,1999:blog-3466508970473354894.post-22569391116975277522015-10-24T01:17:42.542+02:002015-10-24T01:17:42.542+02:00I follow your blog and it is very inspiring! I wou...I follow your blog and it is very inspiring! I would like to ask you how I can I publish this data to mqtt? I have several arduino that works perfectly stable with sensors and now log the readings flawlessly to SD cards, but I want to add esp8266 to send the sensor data every 30 seconds with mqtt to a mosquitto server running on raspberry pi.<br />Any help would be much appreciated.mqtt wondererhttps://www.blogger.com/profile/04051799019992204921noreply@blogger.com