Giter Site home page Giter Site logo

wifimic's Introduction

wifimic

Transfer voice over WI-FI with an ESP8266 and PIC18F25K22 microcontroller.

Schematic in GhettoCAD:

Schematic

How it works:

PIC18 MCU reads and buffers 512 audio samples from the microphone using its ADC. Sampling frequency is 10KHz with 8 bits resolution.

When the buffer is full, PIC18 notifies ESP by pulling low a GPIO(RB4 on PIC18 - GPIO9 on ESP). This GPIO triggers an interrupt in the ESP.

ESP8266 transfers those 512 samples from PIC18 to its internal memory and then it sends them over WiFi.

The transfer between PIC18 and ESP8266 happens over SPI, where ESP is the master and PIC the slave.

Here's a logic analyzer capture:

Workings

Add your WiFi credentials in the user_set_station_config function for ESP8266 to connect to the WiFi AP.

After ESP8266 is connected to WiFi, it will send audio data to a listening server IP on port 1235. Set the server IP in function serv_tcp_connect.

In order to listen to the audio from you computer you should start a server with nc and pipe the audio data to aplay:

nc -l 1235 | aplay -r 10000 -f U8

Youtube demo: https://www.youtube.com/watch?v=bxUD8CM0LWY

wifimic's People

Contributors

spanceac avatar

Watchers

 avatar

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.