comandos do arduino
We will do it with AT commands and we will use in Arduino for USB to serial communication to be able to program it with AT commands. Let’S see how it is done. We will see the WIFI Module. I think I am the cheapest in the market, even the most powerful here we see it compared to other modules, is very cheap worth about 4 or 5 dollars is not worth more. The drawback is that you have to program it with AT commands, so let’s learn to do it there in the product tells us how to connect. We open the photos of the Pinout. This is how we have it, that is to say it is not necessary to see it by the side from where the legs leave. But, above where you can see the antenna on this right side is the GND or land the GPIO2 GPIO0 RX top left. This transmission CHPD one pin for reset on the bottom 3.3 volts important. It only works with 3.3v. If you get connected to the 5v of the Arduino, they burn it immediately gets damaged if 2 GPIO2 ports realize in this part, as well as a raspberry play. Why? Because this is a microcontroller as such we will be able to program it alone same as Arduino or raspberry play, and that we execute instructions receiving from WIFI. It is really very powerful, but you have to know how to program. Let’S see the first part to be able to program our WIFI Module 8266.
We must connect it to the computer to our USB port, but to do so we must get a USB to TTL converter or serial. This is one is very economical in the market. I think they are not worth 2 3 dollars. We can connect them and have the 3v output 3.3v, but it turns out that same converter. We have it already inside the Arduino in an Arduino. This is that module which converts you from USB to serial to communicate with the microcontroller here are the pins that reference transmission and reception. What are we going to do in this case, so they don’t have to buy the module if they have it use it. But if we can’t use the Arduino let’s see how it connects. It is impossible to make connections with this connector, since it cannot be placed with the protoboard here. The legs would be short as if I try to place it here. So what we have to do is buy male cables female to connect us we connect the female here and with the male we go could be to the protoboard or we go to the Arduino UNO. All the materials are obtained in the dinastatecnolgica.com store, where I always buy everything online as we are not going to use a USB to TTL converter. If they have it do it connect directly works great, but we are going to use the one of the Arduino. That is here internally. What we are going to do is to remove the microcontroller with a shovel screwdriver.
We leverage it until we get it out already with the outside. We can start working here are the connections that we are going to make if they realize it is without the Arduino post and at this yellow point, for example, that is reception contrary to what we always do, It is not crossed. That means that it goes with the same reception. Why does it go with the same reception? Because we are connecting directly to this? We are not going to connect to the reception and transmission of the micro since we take them out but directly to this, so we must keep reception with reception and transmission with transmission. Let’S connect it here. The transmission says it’s the first from the upper left and we connect it to the same transmission. Remember that it is looking like this above it’s not seeing it below the reception is, in the part, lower right. We connect it and to the reception of the Arduino let’s connect to ground N, says it’s in the upper right, and we look here for a point of GND. We can use these or these here we need to connect 3.3 volts. Arduino has a 3.3 volt output. It will not reach to connect them, since it is a very low current, so I recommend you use or an external source that can supply 3.3v. These are very good since they can be connected to the protoboard. We can use it from there or we use the Arduino.
We will not be able to use it for a long time, since it does not work only with the USB connection, but we must place an external 9v source, a wall adapter. Then we take out our voltage, remember 3.3v, be sure that they are connecting well, since it is next to the 5v, and if by accident they connect it sure they burn. That is no option. We take it out here to the protoboard to get two connections since one goes at 3.3v and another goes to the point of CHPD. We get connection at 3.3v and similarly to the second going down to the left that comes to CHPD, we connect the Arduino there. We reach to realize that it turns on. Has the light bulb flashing. This means that it is resetting because it does not reach the current. The Arduino is blinking if they leave it. That way, it won’t work and it can burn. So we must connect an external source, a wall adapter, To help you there. We see that I remain stable. It means it lit. Well now it is working, but we must use the external if they are going to use it for a long project. Sometimes it gets hot and the current is not much so I recommend using an external source. How is it coming to adapt to protoboard, and I can vary between 5 and 3.3 volts? We open the Arduino IDE. We will not load any program since we don’t have a microcontroller.
We go here to the upper right where it says serial monitor here where it says no line adjustment. We look where it says Both NL amp CR. They should do it or it doesn’t work for them, and here some come programmed to 9600. Try it there in 9600 or else take it at 115200. Baud being there reset it ie disconnect power, they come back and connect and they realize here he says: he’s ready at first write, some rudeness there and then tells him he’s ready if it doesn’t work for them, take it to 9600 and come back and do the Same procedure here he writes the rudeness, but does not tell me that he is ready. It means that they are not understanding speed. I put it at 115200, which is my case. I go back and give reset and we will start typing the AT commands in capital. Letters they should do it write AT they give him enter and he says it’s. Ok, I’m, going to change it to 9600. I have them written here, text mode so as not to have to type them, then AT CIOBAUD equal to 9600. It is preferable to use it at 9600. I give enter, and here he tells me he already did if I retype another AT command. He won’t receive me anymore. He didn’t do anything to me because, because it’s already at 9600, so I have to change it 9600. I say again AT and indeed he is receiving it let’s see.
If, when I write it I give enter, you can see, a blue LED that blinks, It means that you are receiving the information. Let’S see the AT GRM version. What does the version tell me? The SDK, the 1. 3. 0 let’s find out what mode you are in AT CWMODE and the question mark. It tells me that it is in mode 2. Mode 1 is as a station. Mode 2 is as an access point and mode 3 is like station and access point, so let’s change it to mode 3. For that we write this command AT CWMODE equal to 3. With that we change to season mode and AP mode there. We say that, ok, if we want, we can check that if it has been we give enter, and here it confirms to me that I remain mode 3. We are going to put it to detect that WI. Fi networks are present. We hit it AT CWLAP there. It takes a while, while tracking it I get all these because I’m on a high floor, and there are about 20 30 networks, but let’s analyze them, for example, this one that says Rodriguez Family. That is the first. The first number tells me what degree of security you have if it were at 0. It means that it is open, 1, 2, 3 and 4 it’s. The kind of security is with password. The second thing that appears there is the name of the WIFI network.
Mac address, but before the Mac address here is the 75 is the level with which the WIFI module is receiving. Then we found a channel. What channel is it the WIFI standard? These are connected to channel 1. Most of operators leave it on channel 1 or on channel 11. Then they are channels that are very saturated. What can we do? Take them to another channel connect to a channel that is unoccupied. We have between 1 and 11 and usually leave them at those two ends instead of using 1. 2. 3. 4. In my case, this is mine. I have it as a number. I don’t have a name but it’s, finished 1′ have security, 1 and the level is 49 if they realize it is a high level superior to any of these others or what is near here, and it tells me that it’s on channel 3 already only using this, We can do an analysis. What channel can we change if your operator does not leave the password change a channel that is unoccupied between 1 and 11, but never stay in 1 or 11, which is where operators always leave it Now? What we are going to do is connect. We must type this name exactly as it is here, depending to the network that you want to connect and the key. Then it is written with the following command here. I already have it write AT CWJAP. This is the name comma, and here you must put.
The key must be inside, quotes that way we connect we give send or enter. There is connecting WIFI connected I’m going to reset the WIFI module. I disconnect it and come back and connect it, and if we realize additionally that it is ready, It tells us that it is connecting already. It is connected to a WIFI network, because because we already programmed it, You are ready to connect whenever we turn it on. To a WIFI network, Now we are going to program it so that we can send data through a server or port. We give the following command to support multiple connections: CIPMUX 1, to function as a server through port 80. This is the port that we are going to use. We give send tell me that ok let’s see what IP address we assigned. We do it with the following command, and here we see 2 directions, AP’s and that of the station, the IP we are going to use this one of the station. That is 192., 168.. 0.. 23. You can give another one, they must keep it in mind. We open a browser, any browser we digitize this address in the URL. 192. Point. 168. Point. 0.. 2.. 3. Now we put 2 points and the port port 80. Remember that it was the one we programmed we give enter, and we realize that it appears here. That is to say that there is a communication between the browser via Internet, our WIFI port, receives it, send it via USB cable back to the computer.
If we want to write something port 80 divided and we write, HelloWorld must be stuck, we can’t take it off. We give enter, and here we realize that it appears, that is to say that we are already sending information. We can send other information as led1 off there. We are telling you that led 1 pay for it. Then we decode that with the Arduino – and we put it to work to do another test i’m doing it here from a phone Digit, 192.168.. 0.23. 80. I sent it and we will see that it blinks and it reaches us to the computer there. We can realize that I arrive. I hope the video has been useful and we learned to test and configure the WIFI module ESP8266 from the Arduino. You can now disconnect it and save the configuration and you can reassemble your Arduino UNO support the videos of Prof.
comandos do arduino Video
comandos do arduino news
Posted on Friday August 19, 20163 command-line music players for Linux Opensource.com … Continue Reading »
Posted on Thursday January 12, 20173 open source command-line task managers Opensource.com … Continue Reading »
comandos do arduino Social
E quem diria, chegamos ao PDF 9 com o 3o módulo de Eletrônica. Faltam três pra… https://t.co/LJnBYFOc82