• 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 12 months 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 12 months 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 12 months 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 11 months 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] Download Build Web Servers with ESP32 and ESP8266 (2nd Edition) February 8, 2021
  • [eBook Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020

You must be logged in to view this content.

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

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