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 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








comandos do arduino Social






Last weekend we announced that we’re working on a new development environment with advanced features. Let’s take a deeper look at what is in store for the Arduino Pro IDE!
safe image.php?d=AQB3t842udQGDBtr&w=720&h=720& content%2Fuploads%2F2019%2F10%2FPRO IDE BlogpostFeatured - comandos do arduino

“Let us change the world by making technology accessible to everyone and put it into the hands of every student and educator.”
safe image.php?d=AQCy9PEcAbMgaw1B&w=720&h=720&url=fbstaging%3A%2F%2Fgraph.facebook - comandos do arduino
LvojLOV8 normal - comandos do arduino
Wed Apr 16 01:19:22 +0000 2014

Os experimentos usando #arduino e controle remoto continuaram hoje. Desta vez, os comandos foram para controlar posição do servo motor.

E quem diria, chegamos ao PDF 9 com o 3o módulo de Eletrônica. Faltam três pra…



(Visited 48 times, 1 visits today)

About The Author

You might be interested in

Comment (20)

  1. si se usa la fuente para adaptarse al protoboard y el arduino para comunicarse con la computadora, ¿se necesitan unir las tierras de ambos?

  2. Hola. Tengo un Arduino MEGA, conecte como se indica pero no recibi respuesta del modulo Wifi a 9600, ni a 115200. Solo aparecen sinos “?”

  3. Profe me surge una duda, cda que se requiera conectar a una red diferente hay que hacer el mismo proceso. Hay alguna forma de estandarizar? o que una persona con poco conocimiento lo haga en su casa?

    Mil gracias.

  4. Buenas profe, hago la misma pregunta que te hizo otra persona, ¿Habrás avanzado en un programa que decodifique la orden recibida “Led on”?, Saludos.

  5. Hola, cuál es el comando AT que se utiliza para las redes PEAP – MSCHAPv2? Necesito conectarme a una red de este tipo con usuario y contraseña T_T

  6. Hola, hay alguna manera de volver a dejar el modulo de fabrica, es decir que tenga que volver a configurarlo, un saludo.

  7. Brother, saludos desde Colombia y muy buen video, agradezco tu ayuda con lo siguiente, tengo un ARDUINO LEONARDO. este wifi tambien se puede conectar con ese arduino, estoy intantando seguir tu video pero no me da. para conectar con un ARDUINO LEONARDO el pin del wifi RX va a conectado al TX del aurduino? y el pin del wifi Rt va a conectado al RX del aurduino? ,

    Actualmente la alimentacion que tengo es la de la USB del PC, sera porque la salida es de 50ma del pin de 3.3V del arduino?, le debo colocar una fuente que tenga mas mA? gracias por tu ayuda….

  8. Excelente video! Como sugerencia/petición, podría hacer un video del Arduino Mega + ESP8266 (lo trae integrado). Hay muy poca documentación sobre eso y ese “DIP switch” es algo confuso… Gracias! 😀

  9. saludos, la unica velocidad donde sale algo coherente es en 74880 baudios, pero el mensaje que sale es “ets Jan 8 2013,rst cause:2, boot mode:(1,7)
    ” sabes que puede ser? bueno esto me salio estando en modo programación, ahora estando en modo normal aparece otro texto : ets Jan 8 2013,rst cause:2, boot mode:(3,6)

    load 0x40100000, len 1856, room 16
    tail 0
    chksum 0x63
    load 0x3ffe8000, len 776, room 8
    tail 0
    chksum 0x02
    load 0x3ffe8310, len 552, room 8
    tail 0
    chksum 0x79
    csum 0x79

    2nd boot version : 1.5
    SPI Speed : 40MHz
    SPI Mode : DIO
    SPI Flash Size & Map: 8Mbit(512KB+512KB)
    jump to run user1 @ 1000

    rf[112] : 03
    rf[113] : 00
    rf[114] : 01

    SDK ver: 1.5.4(baaeaebb) compiled @ May 17 2016 19:23:54
    phy ver: 972, pp ver: 10.1

    OCI⸮P⸮ [QY⸮V)⸮⸮⸮⸮R⸮⸮

  10. Profe Garcia: La programacion funciona bien mientras esta conectada la tarjeta ESP 8266, pero al desconectarla pierde parte de la programacion y no hay forma que opere. Hay que repetir los pasos AT+CIPMUX=1…y…. AT+CIPSERVER=1,80 …para que vuelva a funcionar. No se si falta algun parametro para que conserve los valores anteriormente descritos al desconectar la ESP 8266.

    Estare muy agradecido por su respuesta.

    Saludos, desde Chile, Federico Espinoza A.

  11. Sería bueno que les mencioné a sus espectadores la magnitud del poder de ese módulo ya que es muchísimo más que un simple módulo wi-fi, buen video !



  13. Hola profe, vi su video y me gustaría que hiciera uno con el mismo chip pero que prenda y apague un led desde home kit

  14. Hola profe, necesito controlar un motor de 12 Volt accionar la el contacto y la partida del motor, con WiFi porque la distancia es larga como lo puedo hacer para poder llevar a cavo eso gracias…..

  15. Tengo una duda, si quiero configurarlo y usarlo en un Arduino Mega 2560, como le hago, si el microcontrolador es diferente?


Your email address will not be published. Required fields are marked *