• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

D-A convertor using an 8266

Q&A Forum › Category: ESP8266 › D-A convertor using an 8266
0 Vote Up Vote Down
drzrudsky asked 5 years ago

I would like to use a D-to-A converter with I2C signals from a sensor. Is there a simple way to do that?

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
Can you give a little bit more details about what you want to do?

Search for “MCP4725”. It is a digital to analog converter module that communicates via I2C.

Regards,
Sara

0 Vote Up Vote Down
drzrudsky answered 5 years ago

Hi Sandra,
As always doing a great job with your responses.
I was getting ready to dig into the sometimes unpleasant intricate details of I2C programming the MCP475 A-to-D, when a friend just sent me the following:
 
https://roboindia.com/tutorials/analog-output-nodemcu
 
I didn’t know the analogwrite function the author used would work on an 8266. 
This is so much simpler than the MCP4725, I’m going to use it. It may be a bit choppy, probably using PWM, but I have a slow application so I can filter the output to fix that. The MCP475  appears to be about 10x more accurate that what I need. Least of all, the sketch provided is much cheaper than an MCP4725.
Once again, I sincerely thank you for the input.

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
We also have a tutorial about analog outputs (PWM) with the ESP8266. Check the tutorial: https://randomnerdtutorials.com/esp8266-pwm-arduino-ide/
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.