I would like to use a D-to-A converter with I2C signals from a sensor. Is there a simple way to do that?
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
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.
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