microrobotics icon

Untitled

microrobotics | PRO | 02/14/26 04:20:49 AM UTC | 0 ⭐ | 13000 👁️ | Never ⏰ | []
Arduino |

470 B

|

None

|

0 👍

/

0 👎

// Code Example - Arduino Nano Wiring 
// SDA → A4    SCL → A5
// VCC → 5V    GND → GND
// This toggles the DAC output between 0V and ~2.5V every second. The value 2048 is half 
// of the 12-bit max (4095), giving half the supply voltage.
 
#include <Wire.h>
#include <Adafruit_MCP4725.h>
 
Adafruit_MCP4725 dac;
 
void setup() {
  dac.begin(0x62);
}
 
void loop() {
  dac.setVoltage(2048, false);
  delay(1000);
  dac.setVoltage(0, false);
  delay(1000);
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎