WiFi examples, no pinouts given. Want to test with ESP8266-01 module.

This should be an easy one.

I'm presently connecting an ESP8266-01 wifi module to my UNO for testing, and all is operating using AT commands. My own test uses SoftwareSerial Serial1(6, 7); // RX, TX so I know exactly how the ESP8266 connects.

Now I'm trying to get a couple of the included example WiFi sketches to work, but they give no indication how things are connected, and they don't employ SoftwareSerial ports. I tested with the wifi connected to 0 and 1, but didn't work. Should it?

Any advice appreciated.

What library / examples are you using? Post a link. Use the little chain icon so your link is click-able.

This the WiFiClient example I'm testing.

Ohh, so the SPI library would answer the connection question? 11, 12, & 13.

3.3V 1A power supply for the ESP-01 module!

Have the power supply covered! :smiley:

Ashton:
Have the power supply covered! :smiley:

What about signal level translation? Baud rate? Please show a diagram of your electrical connections (especially after the statement "no pinouts given").

aarg,

What about signal level translation? Baud rate? Please show a diagram of your electrical connections (especially after the statement "no pinouts given")

My original question is asking about understanding the data lines of the wifi example. My logic levels are matching, baud rate all at 9600. I'm familiar with logic level conversion and baud rate requirements.

I don't have a diagram Of my own, but this is similar, except I use the below module. And external power.
(for serial com references only)

I use this ESP8266 adapter module that handles power and logic levels.

Ashton:
My logic levels are matching, baud rate all at 9600. I'm especially familiar with these obvious requirements.

Actually, your first post (as well as the subject line) contradict that assertion.

Thanks for the diagram. Even though it is a horrible Fritzing, not a real diagram. Next time, though, don't go back and edit previous posts without any explanation. It makes the logic of the replies seem confusing.

Now, please post your entire sketch, in code tags please.

Have you tried simple AT commands, using the SerialPassthrough sketch, for example?

As I stated in my original post, I have tested the EPS8266 adapter using AT commands in a sketch using Software Serial pins 6 & 7 and its working fine.

The example code:

#include <SPI.h>
#include <WiFi.h>

char ssid[] = "myNetwork";          //  your network SSID (name) 
char pass[] = "myPassword";   // your network password

int status = WL_IDLE_STATUS;
IPAddress server(74,125,115,105);  // Google

// Initialize the client library
WiFiClient client;

void setup() {
  Serial.begin(9600);
  Serial.println("Attempting to connect to WPA network...");
  Serial.print("SSID: ");
  Serial.println(ssid);

  status = WiFi.begin(ssid, pass);
  if ( status != WL_CONNECTED) { 
    Serial.println("Couldn't get a wifi connection");
    // don't do anything else:
    while(true);
  } 
  else {
    Serial.println("Connected to wifi");
    Serial.println("\nStarting connection...");
    // if you get a connection, report back via serial:
    if (client.connect(server, 80)) {
      Serial.println("connected");
      // Make a HTTP request:
      client.println("GET /search?q=arduino HTTP/1.0");
      client.println();
    }
  }
}

void loop() {

}

Wow. Not only do you ignore the request in reply #8 by retroactive editing again, after you've been told not to, you also contradict yourself by posting two completely different hardware configurations together.

I'm done here.

That's now three times you've gone back and retroactively edited posts without an explanation. That won't win you friends around here.

I think the library you're using is meant for a WiFi shield that connects to the Arduino via SPI. You need to use one specifically meant for ESP8266 (with AT Firmware not reflashed by Arudino IDE) connecting via serial.