int val;
int tempPin = 1;
void setup()
{
Serial.begin(9600);
}
void loop()
{
val = analogRead(tempPin);
float mv = ( val/1024.0)*5000;
float cel = mv/10;
delay(1000);
#include<Wire.h> //Include kutuphane ı2 data Wire
#define MCP4725 0X60
unsigned long adc; // 12 bıt :
unsigned long buffer[3]; // adc buffer tampon :
float cel ;
void setup()
{
pinMode ( set, OUTPUT ); // swiccc :
pinMode ( trp, OUTPUT ); // swiccc
void loop() {
adc = analogRead(A6); // anolog :
adc = map(adc,0,1023,4095,0); // voltaj :
buffer[0] = 0b01000000; //Set bit buffer0 with:
buffer[1] = adc >> 4; //Puts :
buffer[2] = adc << 4; //Puts 2 bıt Least:
float mv = ( adc/4095.0)*5000;
float cel = mv/10;
Wire.beginTransmission (0x60); // I2C bus:
Wire.write(buffer[0]); //Sends :
Wire.write(buffer[1]); //Sends MSB to I2C :
Wire.write(buffer[2]); //Sends LSB to I2C:
Wire.endTransmission(); //Ends son verı hattı :
}
Can I adapt the lm35 program to the mcp4725 example?
lm35 can measure 150 degrees, calculates accordingly and detects one degree at 10mv, for example, can a voltage output be calculated every 10mv in mcp4725,
4095/10mv=409.5 degrees conversion multiplier, 4095x10=40.950
I want to make a similar account, is it possible?
What is the purpose in what you are doing? Which Arduino?
I'm trying to do a different project on continuous temperature sensors and sensing with Arduino uno!! then i will install the atmega328 program. Sorry, I'm new to software.
I want to convert it from a regular j type thermocouple with booster opamp and have it read it to the ardunio uno. The mcp4725 analog voltage output temperature is 10mv degrees. 409 degree reading proportional voltage conversion for rating,
When I see the lm35 software, will this adaptation work for mcp4725, I would like to get your opinions, thanks
try a web search for Arduino mcp4725 you will get plenty of links
there is a mcp4725 library see the documentation for a list of functions
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.