Git Product home page Git Product logo

uno-esp8266-i2c's Introduction

UNO-ESP8266-COM

This repository contains all the files required for establishing and communicating data transfer between Arduino UNO and ESP8266.

Overall Working

I2C_Device_Scanner:

  • scans the device address of the slave device by writing to the addresses from 1 to 127
  • Gets the address of the device if the slave device is able to write to it

Master Working:

Sends a passphrase "Hello" to the slave and requests the device name.

Slave Working:

On verifying the passphrase checks for request from the master and replies with the device name.

Master Code:

  • In this project, ESP8266 acts as a master device for I2C communication.
  • The pins used for I2C communication are SDA pin 4 and SCL pin 5
  • Master sends String "Hello" to the slave device and requests the acknowledgment from the slave device
  • Master requests the Device Name from the slave device

Slave Code:

Arduino is used as Slave device

Function receiveEvent():

  • This function is executed whenever there is data sent from the master device
  • Checks for the data on the I2C wire, if there is any data on the wire, slave stores it in the variable recvinfo
  • When slave gets the string "Hello" from the Master device, it executes a function requestEvent()

Function requestEvent():

  • Upon receiving string "Hello", slave writes string "UNO" to the Master Device

uno-esp8266-i2c's People

Contributors

charantejaabbavathini avatar sayeed97 avatar

Watchers

 avatar

uno-esp8266-i2c's Issues

I2C: Prototype I2C communication between UNO and ESP8266

Write code that can successfully perform I2C communication between Arduino UNO and ESP8266.

  • First, try to write this prototype for Arduino and 16x2 LCD so you can simulate something closer to the ESP8266 read/write action.
  • Modify the code to work for the ESP8266 module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.