Cover image
Try Now
2015-05-06

Una biblioteca para el convertidor A/D de Microchip MCP3021 para usar con el ESP8266.

3 years

Works with Finder

4

Github Watches

13

Github Forks

15

Github Stars

ESP8266 Analog Input Expander Library for MCP3021 A/D Conveters

MCP3021 Breakout Board Product Page

What is it?

A board with four analog to digital (A/D) converters that your ESP8266 can interface with it using I2C.

Why did you make it?

The ESP8266 is great module, but it lacks some functionality that it's often necessary to use another microcontroller to accomplish what you want. One of the features that it lacks are A/D converters (it only has one and it's hard to access if you have the ESP-01 version).

This board solves this problem by giving your ESP8266 module access to 4 analog to digital converters (analog inputs) via I2C.

Software:

We developed some Open Source, easy to use, libraries and examples so you can get started quickly.

Note: For NodeMCU you'll need to burn the firmware nodemcu float if you want to read floating values e.g. 0.56V, 1.35V, 2.8566V . If burn nodemcu integer instead then you'll only be able to read integers e.g. 1, 2, and 3 which is very likely not what you want.

Hardware:

Breakout Board Dimensions:

1.00x0.50 inches (25.43x12.70 mm)

Converter Specs:

  • 4 Microchip MCP3021 A/D converters
  • I2C interface
  • 10-bit resolution
  • Single supply specified operation: 2.7V to 5.5V

See the MCP3021 A/D converter datasheet for more details on each converter.

Note: If you are going to use this board with an ESP8266 you will need to power it with 3.3V and the analog inputs can only accept 0V to 3.3V. If you want to read voltage levels greater than 3.3V you'll have to add logic level converters at SCL and SDA.

Pinout:

  • VDD - 2.7V to 5.5V (Note: If using with ESP8266 you'll have to use 3.3V for this pin, if you don't use 3.3v you'll have to add a logic voltage converter at SCL and SDA to match with the ESP8266 3.3V levels.
  • GND - Ground
  • SCL - I2C clock
  • SDA - I2C data
  • AIN0 - Analog input 0 (0v to VDD)
  • AIN1 - Analog input 1 (0v to VDD)
  • AIN2 - Analog input 2 (0v to VDD)
  • AIN3 - Analog input 3 (0v to VDD)

Schematic:

MCP3021 Schematic

FAQs:

  • Q: Can I use two or more boards to have more than 4 analog inputs?
  • A: No. You can only use one board per I2C master because each converter has a unique address, so using more than one board with the same I2C master means you'll have repeating addresses for all converters which will not allow you to communicate with any converter.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

    Reviews

    1 (1)
    Avatar
    user_wzavrnwO
    2025-04-17

    The ESP8266-MCP3021-Library by AllAboutEE is a fantastic tool for integrating the ESP8266 with the MCP3021 ADC. The library is well-documented, making it easy to get started, and the seamless integration ensures efficient data processing. Highly recommend it for any projects requiring precise analog-to-digital conversion! Check it out on GitHub: https://github.com/AllAboutEE/ESP8266-MCP3021-Library.