Dear Friend With the Swiss Accent, I truly enjoy watching your Tutorials. You must enjoy doing them, as I know it must be quite time consuming and involve a lot of work. I have watched others, but find yours to be among the absolute best. So many treat the subject matter as common knowledge, often skipping over some of the more important information. Then go on to talk about how they have overclocked the board or system and are able to send enormous amounts of useless data from nonexistent apps. they never intend to put together to all parts of the globe. Thank you for taking the time to share your wealth of knowledge. It is truly helpful, and easy to understand. And, your accent is no trouble at all to understand, but does help in remembering wonderful people from the world over can work together to make good things happen. Robert Blaylock
Thank you very much for your nice words. This is exactly the intention of this channel: To use modern technology in a good way, and share knowledge. Because knowledge can be multiplied, other than most physical things.
Nice video! Two additional hints that were not mentioned but might be helpfull: 1. Some webtechnologies allow you to choose in which format you want the HTTP Reply by adding .xml or .json at the end of the uri. 2. Use yield() instead of delay(1). This allows the scheduler to switch context (and do WiFi stuff) without the break.
(1) Thanks for the tip. Unfortunately, I do not (yet?) know a lot about web technologies. So, I have to use what is available as services. I am not able to create my own... (2) I know the difference between yield and delay and if I used delay, it usually had a reason (even if I do no more remember, why). Normally, as you wrote, yield is the one to use.
Marvellous Andreas, always steered clear of Web Service API's, but will now dive into the IOT and see what I can find! Many thanks, keep up the grand work....
Dear friend, I hope you continue helping people the way you do on these videos, I just found your videos in 2019 and they really help me with some projects I have for my home city! Thank you!
Please don't query web services every second. It gives a time when you query it; you could store that time to a variable, and loop (using sufficient yield() instructions) for a second, decrementing the time each loop, and end up with the same result. Even the NTP queries could be removed entirely by adding a simple RTC Module... Querying the same information every second wastes your bandwidth (and the servers), and with enough concurrent devices, could overload the web service. Try to limit repeated connections as much as possible.
Each web service has a purpose and its purpose defines when it has to be called. In my example, the real-time info of the public transportation vehicle can change every second. This is the purpose of this whole project. This is why I call the web service so often. I do not remember how often I call it, but if I remember right, the timeis variable and it becomes shorter as the departure time gets closer. If I call it every second, this would be a mistake. It is also only called a few minutes before departure, not always. RTC modules were necessary before the connected devices. The have a few important disadvantages: 1. You need additional hardware (RTC module and backup battery) 2. You need a possibility to input the time (at least set the current time once) 3. You need a display to show the time you entered. Even if I would set the time through the web interface, number 1. would still be valid. To replace hardware by software is the name of the today's game, not the contrary. Concerning bandwidth: If you watch one UA-cam video you used more bandwidth than my device in 100 years...
Really *REALLY* need to be editing out that OBNOXIOUS beeping sound... I've come to expect much more from your videos. Thank you for the efforts regardless!
Jacob Crosby I totaly agree, I'm very glad I did not listen to this in my headphones !. It was so much lauder than the rest of the sounds in the video that I just thought it was a firealarm needing a battery change. Resulting in me running around my house to figure out wish firealarm that was responsible for the noice.
Andreas Spiess Andreas Spiess I apologize if this comment came across in a negative way, it was intended to be complimentary, in that your videos are usually of a higher quality than the majority of the videos of this kind that I come across on YT... The audio in your work is typically of a higher quality, so when I say that I have come to expect more, I mean that your work is usually impeccable. :-) Again, I do thank you kindly for all of the hard work and effort that you put into sharing your knowledge and working to educate those of us that are without the knowledge that you possess. Be well!
Hallo Andreas, erstmals vielen Dank! Super Videos die du da machst, habe schon sehr viel gelernt ;-) Ich habe einen ESP8266 programmiert mit der Arduino IDE, damit er von einem DHT22 Temperatur und Luftfeuchtigkeit an Thingspeak sendet. Funktioniert alles soweit recht gut. Nur ist der ESP auch als Accesspoint sichtbar und das möchte ich nicht. Wie kann ich das deaktivieren? Ist das in einem speziellen Register abgelegt? Mfg Stefan (auch mit Swiss Accent ;-)
wifi.mode() bestimmt das. wifi.mode(WIFI_STA) ist, was du brauchst und wifi.mode(AP_STA) was du hast. Das Statement mache ich vor das wifi.begin. Die ESP chips merken sich das auch wenn sie abgeschaltet werden...
Thank you for sharing with us all this information , unfortunately I'm a beginner that starting to explore it. I'm trying to follow your ESP8266 videos and I'm missing one basic part which is what are the type of models we have ? which one to buy? how to define and connect it to the arduino IDE some basic stuff, I'm sorry if i missed such and can u please direct me to such information?
This channel usually does not cover the basics. I am sure you find this information by googling. There are a ton of videos on how to start with the ESP8266.
Interfaced arduino uno with esp8266-01 Wi-Fi module, 16*2 LCD ...now I have a webpage where it has two text boxes and submit button.So now when I type something on text box and click on submit button ,the text should get displayed on LCD . I tried for led toggle from internet example .it is working . at commands everything is working . I am new to server and web concept. I tried get method with HTML in webpage.but could not succeed. Some people said try php. Any idea.
Hello Andreas I hope you can help me. I'm using a ESP8266 an my problem is that yesterday my code worked perfectly, then made some changes on some conditions and now I still can upload both codes, and create a server in which I can interact but neither the new nor the old code turns the relay on and won't send info to the serial monitor.
@@AndreasSpiess Thanks again for answering ;) just found it was the board type LOLIN (WEMOS) D1 R2 & mini instead of WeMos D1 R1. Don't really understand the difference but I'll search for it. Thanks again!!
Thanks! There are many more videos about the ESP and the internet in the playlist if you are intersted. This was just my beginning and I learned quite a bit since then.
Sir, I have watched your previous videos which help me a lot. But I am facing a problem for using NODE MCU 12 E OUTPUT pin, that is I am unable to use GPIO19(D0), GPIO0(D3),GPIO3(D9) as output pin. They are not giving any OUTPUT(HIGH/LOW) . is it not possible to use them as output pins? which pins can be used for input/output? any help in this regards will be highly appreciated. thank you. DEBASISH BANERJEE
1. D0 is GPIO16 2. D9/D10 are RX and TX. D9 conflicts with your USB to Serial converter. D9 is only usable for the ESP-12 module alone 3. D3 is used to program the chip. So, it might conflict with the programming logic of the nodeMCU board. Similar to D9. Look at the diagram of the nodeMCU board and you will see it.
Thank you Sir, But my question is can I use TX/RX pins D10/D9 as simple output pin like digitalWrite(D9, HIGH) when the ESP-12e module is not connected with usb? I directly powered it through a 5 volt voltage regulator to its Vin pin.
I think, you tried it already and it did not work. I think, I answered the question, why it does not work. Because it is connected to the output of the USB to serial chip on the NodeMCU board. And it you try to connect two outputs, the stronger wins. Obviously, this time, it is the USB to Serial chip ;-)
I am enjoying your videos. I want to play, but... There are too many choices! Andreas, help the confused noobies out. How about doing an "Idiot's guide to ESP8266 models, and what to look for to make sure you get something good for cheap"? I've spent a couple days looking at listings from FastTech, Banggood, DealExtreme, AlieExpress, etc. and sheesh there's a lot out there. Are those companies reliable, are those usable items, or is that "no-name junk"? Some sites advertise a 12F.... I don't think that's a typo, because I see it all over - but 12F isn't listed on the ESP8266 wiki. Can you explain what the meaning and significance is if it says NodeMCU, "Witty", LUA, WeMos, or stuff like that? What's a ESPduino? A "Witty cloud development" board? Is it worth getting a board that advertises "1M flash" or is that still too small for OTA? Argh! I've seen a couple "beta boards" and dev boards for less than $10 that include built-in stuff like temp/humidity sensors, RGB LED, relays, switches... it would sound like this would let you be up and experimenting immediately - but there's no documentation. Color me frustrated. I just want a quick and simple way to play around with web-enabled micro controllers.
+Marc Visconte as a start you can watch my video #41. There you should find answers t many of your questions. The different platforms all sell the same models. I use Aliexpress and banggod. Both are good. You cannot make big mistakes as the investment is usually less than 10$. I always buy two. If I have problems I just change the board. If the error persists, its my mistake ;-) Come back after that and ask again, probably a little more specific.
anguissette Thank you. I looked at that before, but was undecided. I've got to start somewhere. - I think I'll get one - it's about 5 at FastTech... I've ordered from them before. At 3, I'd get two (so I can make them play Marco Polo).
Thank you for your excellent Tutorials, we have several ESP8266 and DA14580 BLE modules, LoRa module with FCC, CE certification, I wonder is it possible that you help me test these modules? Thank you for sharing valuable knowledge with us. It is really helpful for wirelss tech fans.
I will only cover things I did not use before. So, if you have an innovative product, which is interesting for my viewers, I can integrate it in my mailbag, if you send me one
I have LoLin NodeMcu v3 board and it doesn't respod to commands, like AT. And when I restart it with the button it shows this: ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v09f0c112 ~ld What should I do?
Hi Andreas, you can use this lib #include for decoding encondig JSON strings it will simplify it it. it works under ESP , github.com/bblanchon/ArduinoJson , I used it for enconding data over a serial stream and it seems to work very well..
I tried the library, but for my purpose I found it too big, and if I remember, I had also some issues with it. Maybe it works now better. In a future project, I would try it again.
Hi Andreas Greetings from Denmark and thanks for some great videos. You are such an expert in ESP8266, so maybe you can guide me in the right direction :D I'm building a IR remote for my "homeautomation system", and have a ready to go solution with IR connected to a UNO. Now I want to control it with a esp8266f, to get it wireless, so it can talk with the the homeautomation server. But when i'm compiling the code I get a interrupt error..of course (as the esp8266 don't have this interrupt) It's a fairly simple code for a UNO, so the question is 1. do I find another esp8266 type 2. CAN it be done with a esp8266f at all 3. do I find another IR library 4. do I use the UNO as IR sender and talk with the esp8266f via serial communication 5. do I change the source code in the IR library (no sure if it can be done) I use Ken Shirriff's *awesome* IRremote library: github.com/shirriff/Arduino-IRremote And it do not support the esp8266! Here is his Hardware specifications: Board/CPU Send Pin Timers ATtiny84 6 1 ATtiny85 1 TINY0 ATmega8 9 1 Atmega32u4 5, 9, 13 1, 3, 4 ATmega48, ATmega88, ATmega168, ATmega328 3, 9 1, 2 ATmega1284 13, 14, 6 1, 2, 3 ATmega164, ATmega324, ATmega644 13, 14 1, 2 ATmega8535 ATmega16, ATmega32 13 1 ATmega64, ATmega128 13 1 ATmega1280, ATmega2560 5, 6, 9, 11, 46 1, 2, 3, 4, 5 Teensy 1.0 17 1 Teensy 2.0 9, 10, 14 1, 3, 4_HS Teensy++ 1.0 / 2.0 1, 16, 25 1, 2, 3 Teensy 3.0 / 3.1 5 CMT Teensy-LC 16 TPM1 The table above lists the currently supported My idea was nr 4, but again I think it's a lot of work to do, and when thinking of the esp8266f 's memory and cpu power. It should definitely do it all and more, so I think it's a overkill. Some of the hardware in the list I know and some I don't. But it dont list the esp8266.... :( Any ideas would be great. So thanks in advance. Tim M. ---------------------------- Compile with Uno: Sketch uses 3,724 bytes (11%) of program storage space. Maximum is 32,256 bytes. Global variables use 526 bytes (25%) of dynamic memory, leaving 1,522 bytes for local variables. Maximum is 2,048 bytes. ---------------------------- Compile with ESP8266 : #include compilation terminated. Using library Arduino-IRremote-master at version 2.2.1 in folder: C:\Users\Test\Documents\Arduino\libraries\Arduino-IRremote exit status 1 Error compiling for board Generic ESP8266 Module.
1. You can use your Arduino and add and ESP-01 with the "AT firmware". Then, your Arduino does everything and uses the ESP via serial. this is a simple way. If you use the Example files, the effort is not big. But you have to deal with http requests etc. Do not forget the 5v-3.3 volt level converter... 2. If you want to get rid of the Arduino, you have to rebuild your project, because your library does not support ESP8266. Maybe this library helps: github.com/markszabo/IRremoteESP8266. Or you google a little more and find another one. Also here, you have to deals with http requests etc.
+Andreas Spiess thank you for share, but how can i send rest quest to web site ? example is there is a rest /json sample like [/api/getAccounts] and value is { "data"="2"} how can i send? and another question is possble to websocet post/get ?
+Haluk YILMAZ I am not an internet protocol specialist and had to learn and try out the things I use in this scenario myself. So, I am not a big help in internet protocol specific questions.
What I am more worried about is the maximum current draw of the pins on your esp8266(dont want to break anything=P), I looked up a random piezo on ebay and it says 1.5 - 15 volts, 16 mA, for an arduino 16mA would be perfectly fine , on adafruit's huzzah-esp8266 they say maximum IO current draw is 12ma per pin. I am sure it will work just fine, but I myself would have a transistor circuit amplifier in there just to be safe.
+Flo wey in my newest design i used a FET transistor to solve that problem. I had some problems with a few buzzers (they had a bad tone). I never measured the current because so far, output pins were always protected against short overload and i only make 0.1 sec beeps. But if you want to be sure, use a logical level FET. Pay attention that it is completely on with the Vgs 3V. With an n channel FET you have to connect the buzzer to 3.3 V or even jto 5V.
I bought 100 2n2222 npn bjt transistors a while ago, and they are easy to wire, with 180 ohms or so it will fully allow conduction between C and E up to 400 ma or something like that.Good to know you've changed your wiring for piezo, i will take precautions when working with piezos =)
+Hazem Youssry Thank you for this info. You are right. I am not using github very often and obviously did not commit the code. And of course, I should have checked it myself! Now it should be there.
+norm1124 Danke für's Kompliment. Nein. ich habe diesen Parser nicht verwendet, weil ich ihn nicht gekannt hatte und mein json-String ja denkbar einfach ist. Werde aber mal Versuche mit der Library machen. Der ESP-12 sollte ja genügend Speicher haben.
Dear Friend With the Swiss Accent,
I truly enjoy watching your Tutorials. You must enjoy doing them, as I know it must be quite time consuming and involve a lot of work.
I have watched others, but find yours to be among the absolute best. So many treat the subject matter as common knowledge, often skipping over some of the more important information. Then go on to talk about how they have overclocked the board or system and are able to send enormous amounts of useless data from nonexistent apps. they never intend to put together to all parts of the globe.
Thank you for taking the time to share your wealth of knowledge. It is truly helpful, and easy to understand. And, your accent is no trouble at all to understand, but does help in remembering wonderful people from the world over can work together to make good things happen.
Robert Blaylock
Thank you very much for your nice words. This is exactly the intention of this channel: To use modern technology in a good way, and share knowledge. Because knowledge can be multiplied, other than most physical things.
Nice video! Two additional hints that were not mentioned but might be helpfull:
1. Some webtechnologies allow you to choose in which format you want the HTTP Reply by adding .xml or .json at the end of the uri.
2. Use yield() instead of delay(1). This allows the scheduler to switch context (and do WiFi stuff) without the break.
(1) Thanks for the tip. Unfortunately, I do not (yet?) know a lot about web technologies. So, I have to use what is available as services. I am not able to create my own...
(2) I know the difference between yield and delay and if I used delay, it usually had a reason (even if I do no more remember, why). Normally, as you wrote, yield is the one to use.
Marvellous Andreas, always steered clear of Web Service API's, but will now dive into the IOT and see what I can find! Many thanks, keep up the grand work....
Connected devices are very interesting. Watch for example my newest videos about Google Calendar...
Dear friend, I hope you continue helping people the way you do on these videos, I just found your videos in 2019 and they really help me with some projects I have for my home city! Thank you!
Thank you for your nice words!
Grüezi Andreas, Merci vielmal! Keep up the very nice videos!
+Javier Palla Lorden Werde ich versuchen. Das nächste sollte über's WE folgen...
Andreas
Many thanks for such great tutorial videos!
You're welcome!
Hello Andreas,
what a great piece of information! You helped me a lot to understand. Thank you!
You're welcome!
Sehr interessant, ich bin angemeldet , du hast viele meine problem risolviert. Danke sehr
Bitte, gern geschehen.
Nice tips with delay(1).
Please don't query web services every second. It gives a time when you query it; you could store that time to a variable, and loop (using sufficient yield() instructions) for a second, decrementing the time each loop, and end up with the same result.
Even the NTP queries could be removed entirely by adding a simple RTC Module...
Querying the same information every second wastes your bandwidth (and the servers), and with enough concurrent devices, could overload the web service. Try to limit repeated connections as much as possible.
Each web service has a purpose and its purpose defines when it has to be called. In my example, the real-time info of the public transportation vehicle can change every second. This is the purpose of this whole project. This is why I call the web service so often. I do not remember how often I call it, but if I remember right, the timeis variable and it becomes shorter as the departure time gets closer. If I call it every second, this would be a mistake. It is also only called a few minutes before departure, not always.
RTC modules were necessary before the connected devices. The have a few important disadvantages:
1. You need additional hardware (RTC module and backup battery)
2. You need a possibility to input the time (at least set the current time once)
3. You need a display to show the time you entered.
Even if I would set the time through the web interface, number 1. would still be valid.
To replace hardware by software is the name of the today's game, not the contrary.
Concerning bandwidth: If you watch one UA-cam video you used more bandwidth than my device in 100 years...
Great idea and well thought through. Thanks
Really *REALLY* need to be editing out that OBNOXIOUS beeping sound... I've come to expect much more from your videos. Thank you for the efforts regardless!
What exactly did you expect?
Jacob Crosby I totaly agree, I'm very glad I did not listen to this in my headphones !. It was so much lauder than the rest of the sounds in the video that I just thought it was a firealarm needing a battery change. Resulting in me running around my house to figure out wish firealarm that was responsible for the noice.
Is not so loud
Patrik Kron lol I can imagine it sounding like it is coming from everywhere, running around searching for what the hell all the siren is from... Hehe
Andreas Spiess Andreas Spiess I apologize if this comment came across in a negative way, it was intended to be complimentary, in that your videos are usually of a higher quality than the majority of the videos of this kind that I come across on YT... The audio in your work is typically of a higher quality, so when I say that I have come to expect more, I mean that your work is usually impeccable. :-) Again, I do thank you kindly for all of the hard work and effort that you put into sharing your knowledge and working to educate those of us that are without the knowledge that you possess.
Be well!
🆒 Thank you so much for uploading this video.
👍👍👍👍👍
Sharing with community 🇵🇰
:-)
You are really superb personality....i want to meet you some day...
You never know...
Thank you Andreas.
You are welcome!
Very nice!
Thank you!
Hallo Andreas,
erstmals vielen Dank! Super Videos die du da machst, habe schon sehr viel gelernt ;-)
Ich habe einen ESP8266 programmiert mit der Arduino IDE, damit er von einem DHT22 Temperatur und Luftfeuchtigkeit an Thingspeak sendet. Funktioniert alles soweit recht gut. Nur ist der ESP auch als Accesspoint sichtbar und das möchte ich nicht. Wie kann ich das deaktivieren? Ist das in einem speziellen Register abgelegt?
Mfg
Stefan (auch mit Swiss Accent ;-)
wifi.mode() bestimmt das. wifi.mode(WIFI_STA) ist, was du brauchst und wifi.mode(AP_STA) was du hast. Das Statement mache ich vor das wifi.begin. Die ESP chips merken sich das auch wenn sie abgeschaltet werden...
Thank you for sharing with us all this information , unfortunately I'm a beginner that starting to explore it. I'm trying to follow your ESP8266 videos and I'm missing one basic part which is what are the type of models we have ? which one to buy? how to define and connect it to the arduino IDE some basic stuff, I'm sorry if i missed such and can u please direct me to such information?
This channel usually does not cover the basics. I am sure you find this information by googling. There are a ton of videos on how to start with the ESP8266.
can i use esp8266 for localhost? and not using internet service provider????
You can do many things, if you know how.
Interfaced arduino uno with esp8266-01 Wi-Fi module, 16*2 LCD ...now I have a webpage where it has two text boxes and submit button.So now when I type something on text box and click on submit button ,the text should get displayed on LCD . I tried for led toggle from internet example .it is working . at commands everything is working . I am new to server and web concept. I tried get method with HTML in webpage.but could not succeed. Some people said try php. Any idea.
I am not a web person, too. So I can not give yoi advice on that.
Ok Sir. Thank you.
Hello Andreas I hope you can help me. I'm using a ESP8266 an my problem is that yesterday my code worked perfectly, then made some changes on some conditions and now I still can upload both codes, and create a server in which I can interact but neither the new nor the old code turns the relay on and won't send info to the serial monitor.
Unfortunately, I cannot do remote debugging. I am sure you will find the error yourself.
@@AndreasSpiess Thanks again for answering ;) just found it was the board type LOLIN (WEMOS) D1 R2 & mini instead of WeMos D1 R1. Don't really understand the difference but I'll search for it. Thanks again!!
Ok.. for future reference.. beeps that loud, repeated more than once or twice, are AnNoYiNg!!!! And then it got faster!.. eesh...
wery good work. BRAVO.
Thanks! There are many more videos about the ESP and the internet in the playlist if you are intersted. This was just my beginning and I learned quite a bit since then.
very good tutorial but your screen resolution is very hi that we can't read most of text
+Abdullbasit AlHaita Thank you for the comment. I will try to avoid it in the future. You find the code on Github (link in hte comment.
Sir,
I have watched your previous videos which help me a lot. But I am facing a problem for using NODE MCU 12 E OUTPUT pin, that is I am unable to use GPIO19(D0), GPIO0(D3),GPIO3(D9) as output pin. They are not giving any OUTPUT(HIGH/LOW) . is it not possible to use them as output pins? which pins can be used for input/output?
any help in this regards will be highly appreciated.
thank you.
DEBASISH BANERJEE
1. D0 is GPIO16
2. D9/D10 are RX and TX. D9 conflicts with your USB to Serial converter. D9 is only usable for the ESP-12 module alone
3. D3 is used to program the chip. So, it might conflict with the programming logic of the nodeMCU board. Similar to D9. Look at the diagram of the nodeMCU board and you will see it.
Thank you Sir, But my question is can I use TX/RX pins D10/D9 as simple output pin like digitalWrite(D9, HIGH) when the ESP-12e module is not connected with usb? I directly powered it through a 5 volt voltage regulator to its Vin pin.
I think, you tried it already and it did not work. I think, I answered the question, why it does not work. Because it is connected to the output of the USB to serial chip on the NodeMCU board. And it you try to connect two outputs, the stronger wins. Obviously, this time, it is the USB to Serial chip ;-)
I am enjoying your videos. I want to play, but... There are too many choices! Andreas, help the confused noobies out.
How about doing an "Idiot's guide to ESP8266 models, and what to look for to make sure you get something good for cheap"?
I've spent a couple days looking at listings from FastTech, Banggood, DealExtreme, AlieExpress, etc. and sheesh there's a lot out there. Are those companies reliable, are those usable items, or is that "no-name junk"?
Some sites advertise a 12F.... I don't think that's a typo, because I see it all over - but 12F isn't listed on the ESP8266 wiki.
Can you explain what the meaning and significance is if it says NodeMCU, "Witty", LUA, WeMos, or stuff like that? What's a ESPduino? A "Witty cloud development" board? Is it worth getting a board that advertises "1M flash" or is that still too small for OTA? Argh!
I've seen a couple "beta boards" and dev boards for less than $10 that include built-in stuff like temp/humidity sensors, RGB LED, relays, switches... it would sound like this would let you be up and experimenting immediately - but there's no documentation.
Color me frustrated. I just want a quick and simple way to play around with web-enabled micro controllers.
+Marc Visconte as a start you can watch my video #41. There you should find answers t many of your questions. The different platforms all sell the same models. I use Aliexpress and banggod. Both are good.
You cannot make big mistakes as the investment is usually less than 10$. I always buy two. If I have problems I just change the board. If the error persists, its my mistake ;-)
Come back after that and ask again, probably a little more specific.
Excellent. I haven't seen #41. I'll do that on my lunch break or after work today! Thank you
anguissette Thank you. I looked at that before, but was undecided. I've got to start somewhere. - I think I'll get one - it's about 5 at FastTech... I've ordered from them before. At 3, I'd get two (so I can make them play Marco Polo).
if i want to control via localhost, how to connect the json?
I do not understand what you mean.
Another great Video.
:-)
Processor? I thought it’s a micro controller
Every MCU has a microprocessor inside...
i want to control bandwidth,latency or packet loss with esp-8266. Could you help me out?
No, unfortunately, I do not unterstand internet protocols
Can we atleast change channel frequency of transmission in esp8266?
nice video keep up
Hello, why you don't use MQTT protocol?
I use different protocols to have some choice. In another video, I used MQTT
please is it possible to send http DELETE request with ESP8266 ?
I do not know.
Thank you for your excellent Tutorials, we have several ESP8266 and DA14580 BLE modules, LoRa module with FCC, CE certification, I wonder is it possible that you help me test these modules?
Thank you for sharing valuable knowledge with us.
It is really helpful for wirelss tech fans.
I will only cover things I did not use before. So, if you have an innovative product, which is interesting for my viewers, I can integrate it in my mailbag, if you send me one
YOU HELP 96 K WELL DONE AND THANK YOU .
You are welcome!
I have LoLin NodeMcu v3 board and it doesn't respod to commands, like AT. And when I restart it with the button it shows this:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
What should I do?
Which sketch did you load to the board?
Empty sketch, now tried this:
void setup() {
Serial.begin(115200);
Serial.println("Begin");
}
void loop() {
while (1 == 1);
delay(100);
}
Output:
Soft WDT reset
ctx: cont
sp: 3ffef130 end: 3ffef300 offset: 01b0
>>>stack>>>
3ffef2e0: feefeffe feefeffe 3ffee2d0 40201fe8
3ffef2f0: feefeffe feefeffe 3ffee2e0 40100114
Just one ; at the wrong place. Enter a Serial.print("TEST"); command above the delay and you will find out, where. Come back, if you do not find it.
BTW: It will still crash till you remove the ;
Added that print line and it doesn't even print it to the console.
Hi Andreas, you can use this lib #include for decoding encondig JSON strings it will simplify it it.
it works under ESP , github.com/bblanchon/ArduinoJson , I used it for enconding data over a serial stream and it seems to work very well..
I tried the library, but for my purpose I found it too big, and if I remember, I had also some issues with it. Maybe it works now better. In a future project, I would try it again.
Andreas, i didnt find your code in your github :(
If you press the link you find a newer version of the code
what is this loud beeping in the audio ?
I do not know.
Hi Andreas
Greetings from Denmark and thanks for some great videos.
You are such an expert in ESP8266, so maybe you can guide me in the right direction :D
I'm building a IR remote for my "homeautomation system", and have a ready to go solution with IR connected to a UNO.
Now I want to control it with a esp8266f, to get it wireless, so it can talk with the the homeautomation server. But when i'm compiling the code I get a interrupt error..of course (as the esp8266 don't have this interrupt)
It's a fairly simple code for a UNO, so the question is
1. do I find another esp8266 type
2. CAN it be done with a esp8266f at all
3. do I find another IR library
4. do I use the UNO as IR sender and talk with the esp8266f via serial communication
5. do I change the source code in the IR library (no sure if it can be done)
I use Ken Shirriff's *awesome* IRremote library: github.com/shirriff/Arduino-IRremote
And it do not support the esp8266!
Here is his Hardware specifications:
Board/CPU Send Pin Timers
ATtiny84 6 1
ATtiny85 1 TINY0
ATmega8 9 1
Atmega32u4 5, 9, 13 1, 3, 4
ATmega48, ATmega88, ATmega168, ATmega328 3, 9 1, 2
ATmega1284 13, 14, 6 1, 2, 3
ATmega164, ATmega324, ATmega644 13, 14 1, 2
ATmega8535 ATmega16, ATmega32 13 1
ATmega64, ATmega128 13 1
ATmega1280, ATmega2560 5, 6, 9, 11, 46 1, 2, 3, 4, 5
Teensy 1.0 17 1
Teensy 2.0 9, 10, 14 1, 3, 4_HS
Teensy++ 1.0 / 2.0 1, 16, 25 1, 2, 3
Teensy 3.0 / 3.1 5 CMT
Teensy-LC 16 TPM1
The table above lists the currently supported
My idea was nr 4, but again I think it's a lot of work to do, and when thinking of the esp8266f 's memory and cpu power.
It should definitely do it all and more, so I think it's a overkill.
Some of the hardware in the list I know and some I don't. But it dont list the esp8266.... :(
Any ideas would be great.
So thanks in advance.
Tim M.
----------------------------
Compile with Uno:
Sketch uses 3,724 bytes (11%) of program storage space. Maximum is 32,256 bytes.
Global variables use 526 bytes (25%) of dynamic memory, leaving 1,522 bytes for local variables. Maximum is 2,048 bytes.
----------------------------
Compile with ESP8266 :
#include
compilation terminated.
Using library Arduino-IRremote-master at version 2.2.1 in folder: C:\Users\Test\Documents\Arduino\libraries\Arduino-IRremote
exit status 1
Error compiling for board Generic ESP8266 Module.
1. You can use your Arduino and add and ESP-01 with the "AT firmware". Then, your Arduino does everything and uses the ESP via serial. this is a simple way. If you use the Example files, the effort is not big. But you have to deal with http requests etc. Do not forget the 5v-3.3 volt level converter...
2. If you want to get rid of the Arduino, you have to rebuild your project, because your library does not support ESP8266. Maybe this library helps: github.com/markszabo/IRremoteESP8266. Or you google a little more and find another one. Also here, you have to deals with http requests etc.
ok, super. Thanks for your input Andreas :O)
I didn't see this at all. And will try it out right now.
hello, where is arduino rest sending code?
+Haluk YILMAZ All code runs in the ESP8266. No Arduino necessary
+Andreas Spiess thank you for share, but how can i send rest quest to web site ? example is there is a rest /json sample like [/api/getAccounts] and value is { "data"="2"} how can i send? and another question is possble to websocet post/get ?
+Haluk YILMAZ I am not an internet protocol specialist and had to learn and try out the things I use in this scenario myself. So, I am not a big help in internet protocol specific questions.
Does the piezo buzzer need a resistor?
Usually not. Just if it is too loud. I do not exactly know how they are rated. I either add a small resistor or close the hole with hot glue.
What I am more worried about is the maximum current draw of the pins on your esp8266(dont want to break anything=P), I looked up a random piezo on ebay and it says 1.5 - 15 volts, 16 mA, for an arduino 16mA would be perfectly fine , on adafruit's huzzah-esp8266 they say maximum IO current draw is 12ma per pin. I am sure it will work just fine, but I myself would have a transistor circuit amplifier in there just to be safe.
+Flo wey in my newest design i used a FET transistor to solve that problem. I had some problems with a few buzzers (they had a bad tone).
I never measured the current because so far, output pins were always protected against short overload and i only make 0.1 sec beeps. But if you want to be sure, use a logical level FET. Pay attention that it is completely on with the Vgs 3V. With an n channel FET you have to connect the buzzer to 3.3 V or even jto 5V.
I bought 100 2n2222 npn bjt transistors a while ago, and they are easy to wire, with 180 ohms or so it will fully allow conduction between C and E up to 400 ma or something like that.Good to know you've changed your wiring for piezo, i will take precautions when working with piezos =)
Can you provide us the code of this project ?
+Hazem Youssry I put the link in the comment of all videos now. Be aware that ist is still work in progress
+Andreas Spiess thank you but it's project doc only shared on github not the code
+Hazem Youssry Thank you for this info. You are right. I am not using github very often and obviously did not commit the code. And of course, I should have checked it myself!
Now it should be there.
Please send the arduino program code? :)
Usually, my code is on my GitHub and the link in the description.
Hallo Andy, schicke Lösung. Hast Du schon diese Library für JSON untersucht? github.com/bblanchon/ArduinoJson/blob/master/README.md
+norm1124 Danke für's Kompliment. Nein. ich habe diesen Parser nicht verwendet, weil ich ihn nicht gekannt hatte und mein json-String ja denkbar einfach ist.
Werde aber mal Versuche mit der Library machen. Der ESP-12 sollte ja genügend Speicher haben.