Login /Register



Wireless TeensyNet™ – ESP-01

You may have read of my attempts to add a wireless capability to the TeensyNet™ by using the TP-Link TL-WR703n and the TP-Link TL-WR702n, both of which work, but require a separate power supply, and use the available ethernet connector.

TeensyNetEsp8266My latest version board uses the cheap, easily available ESP-01, available from Amazon and ebay for as little as two bucks.

This cheap, highly capable board has taken the maker community by storm. It’s capable of being programmed in many different ways, including the Arduino IDE add-on that is used for this combination.

I use the Serial1 channel on the Teensy3.2 to communicate with the ESP-01. On power-up the Teensy3.2 resets the ESP-01 and waits for a response. Once the ESP-01 is ready, the Teensy3.2 sends the SSID, password, IP address, gateway address, subnet address, and UDP port information to the ESP-01. The Teensy3.2 instructs the ESP-01 to connect to the local intranet, and waits for a response. The ESP-01 accepts communications from the intranet via its IP:UDP address:port, and passes it on the the Teensy3.2 via Serial1 for processing. The Teensy3.2 is responsible for all temperature monitoring, and process control of the various available modules. The Serial1/ESP8266 baud rate is set to 921600 baud to facilitate a better response rate for the system.

Initial setup of the Teensy3.2/ESP-01 board is two-fold.

The Teensy3.2 must be programmed using the Arduino IDE/Teensyduino combination, using the source code available from my github.

The ESP-01 must also be similarly setup using an Arduino IDE with ESP8266 addon.

NOTE: The two add-on libraries are currently using different versions of the Arduino IDE.

I use two different versions of the Arduino IDE on my workstation (I use Debian Jessie), each in its own userspace. Your setup may vary.

The code is available at my github.