Skip to main content
20 events
when toggle format what by license comment
Dec 13, 2017 at 16:54 comment added Rainer If it is just do get the values from the DHT to the SQL Server, the are a lot of sketch exambles out there using just the NODECPU
Jun 13, 2017 at 20:04 vote accept hypocrite420
Jun 13, 2017 at 12:06 answer added Code Gorilla timeline score: 0
Jun 13, 2017 at 7:24 history edited hypocrite420 CC BY-SA 3.0
Instead of ethernet shield, I want to use ESP8266 as wifi shield which will help my arduino to connect directly to internet and help me to make it portable. But don't know how?
Jun 12, 2017 at 18:20 comment added hypocrite420 @Majenko my ESP exact version is NodeMCU 1.0 (ESP8266 12e), which got usb port to connect. I saw tons of tutorial where esp reading several sensors data and sending to webserver, buy in my case I'm getting always error "NodeMCU 1.0 compiling error". any idea or suggesstion to get rid of that? [i found a tutorial and followed it two remove older version folder from ..\Arduino15\packages\esp8266\hardware\esp8266 directory, but still having same error.] do i need to change sensor library file designed for ESP?
Jun 12, 2017 at 18:03 comment added hypocrite420 @Code Gorilla no, it's not. otherwise i would use esp directly skipping arduino nano part.
Jun 12, 2017 at 18:03 comment added Majenko The simplest method is to install the AI Thinker AT firmware and follow one of the many Arduino -> ESP8266 tutorials. Don't talk to MySQL - talk to a website which then performs the MySQL transactions for you (PHP, for example).
Jun 12, 2017 at 18:01 comment added hypocrite420 @Majenko my bad, I'm pretty new and no idea whom i was talking with. sorry for that. btw, I thought u r the right guy to ask then. let me come to the point: No, i didn't write anything that will communicate between arduino and ESP. i just thought it would work like ethernet shield do, that's why connected TX-RX and RX-TX. however, i searched for codes and found a few with allow to talk between them. but i'm not clear to upload my data into mysql server where should i write my code, also how i would communicate? it would look like: Sesnore->arduino->esp8266->mysql. just don't know exact way.
Jun 12, 2017 at 15:30 comment added Code Gorilla @hypocrite420 - Does the DHT library you are using work with an ESP?
Jun 12, 2017 at 14:56 comment added Majenko ...written ESP8266 firmware that will communicate with the Arduino.
Jun 12, 2017 at 14:56 comment added Majenko I know exactly what the ESP8266 is. If you look through the bundled examples in the ESP8266 core you'll find at least one written by me. To use the ESP8266 with an Arduino board you have to have firmware installed in the ESP8266 that communicates with the Arduino. Normally the ESP8266 comes preinstalled with this firmware, called the "AI Thinker AT Firmware". Or you can write your own firmware to communicate between the two boards. Installing some random firmware that scans WiFi access points and connects to one will not allow communication with the Arduino because you haven't...
Jun 12, 2017 at 14:43 comment added hypocrite420 @Majenko first of all, this ESP can be done everythig as like other arduino. before that you have to add supportng scrits to Arduino IDE. then u can code like arduino. e.g, u can write blinking code same way as do2 arduino, compile and upload. when u upoad ur code, it overwrite existing firmwire on ESP. in my case, it works well when i try to connect or scan wifi networks. but doesn't work when i try to read data from dht11 sensor. so what i did, i put data reading code to arduino & wifi connection code to esp. i was expecting my arduino would b able to connct to server this way, but not
Jun 12, 2017 at 14:35 comment added hypocrite420 @Code Gorilla i tried bot Tx-TX and TX-RX, but no luck.
Jun 12, 2017 at 14:14 comment added Majenko It sounds like you have installed your own custom firmware into the ESP8266 and then are expecting to still be able to communicate with it as if it had AT firmware installed? Or have you written your own software in your sketch to manage the transfer of data from the Arduino to the ESP8266 for the ESP8266 to forward it on through the internet to your chosen server?
Jun 12, 2017 at 11:48 comment added Code Gorilla @hypocrite420 - The connections should be Tx to Rx not Tx-Tx.
Jun 12, 2017 at 9:03 comment added Sagnik Pradhan I don't really have.
Jun 12, 2017 at 8:54 comment added hypocrite420 I tried with both way, doesn't work. And don't know how to write code to esp that will read from arduino, or other way arond. do you have any working code sample? @ Sagnik Pradhan
Jun 12, 2017 at 8:50 comment added Sagnik Pradhan If you are trying to send data to the server then I think that connecting tx-tx and rx-rx should maybe work. Or else you could write a code that reads Arduino's messages and sends it to the server.
Jun 12, 2017 at 8:30 review First posts
Jun 12, 2017 at 8:36
Jun 12, 2017 at 8:15 history asked hypocrite420 CC BY-SA 3.0