Close

534 Results for "esp8266"

  • Analog to Digital Converter (ADC)

  • Embedded computing is basically computing integrated to the real world, and the real world is pretty much analog. By default, electrically measuring analog real world values produces analog voltage or current (which can be converted to voltage using...
  • ESP-Now

  • Ability to connect to WiFi infrastructure is cool, but is costly energywise, if you're on batteries. ESP8266 & 32 have a semi-hidden feature called ESP-Now, that allows very quick data transmissions, like 40-50 ms total for booting up and sending data,...
  • Tools and Materials

  • The following tools and materials were used for this project: Tools: 3D printer - The whole body of the robot is 3D printed. Several hours of 3d printing were needed for building the whole structure;PLA filament - White and black PLA filaments...
  • I2C Communication

  • In the details section of this project you will find a detailed analysis of the I2C bus and how it works, both electrically and in software. Make sure you read this before proceeding, so you understand what the code is doing. We're going to use the NodeMCU...
  • Tools and Materials

  • The following tools and materials were used in this project: Tools and materials: 3D printer (link / link / link). It was used for printing the case where the electronics are encloused. PLA filament (link / link / link) of any color you want. Solder...
  • Get parts, plan

  • This device is something that a random MCU hacker could assemble from parts lying around, so find suitable parts, find their pinouts (regulator, FET, UART) and plan how they shall be placed on the PCB. - I recommend dedicating one edge to ground, to...
  • Putting it all together

  • The ESP8266 libraries that we installed include specific libraries for Wi-Fi control, as well as HTTP client control. We will also be using the aforementioned OneWire and SimpleDHT libraries, as well as an SSL library so that our communication with the...
  • Install code.

  • Copy and paste the following code into the Arduino IDE. Update the AP name and password to match your needs.  90% of this code is not mine. For full details please see this great guide: https://randomnerdtutorials.com/esp32-esp8266-web-server-physical-button/...
  • Code

  • #include "SoftwareSerial.h" String ssid ="yourSSID"; String password="yourPassword"; SoftwareSerial esp(6, 7);// RX, TX String data; String server = "yourServer"; // www.example.com String uri = "yourURI";// our example is /esppost.php int DHpin = 8;//sensor...
  • Fading an LED

  • In Part 1 of this series, we used an online build service to create our firmware. One of the modules we selected was the PWM module. This module allows us to configure PWM on any of the available GPIO pins which support it. We can configure the frequency...
  • Establishing Connection

  • The official documentation is located in the NodeMCU ReadTheDocs. The simplicity of the library reflects how elegantly simple MQTT itself is. All we need to do is create an MQTT Client object, connect, and then publish as needed. Creating the MQTT Client...