hello
I have a question about my arduino shield 2.
I can't use my shield with my temp sensor (ds18b20) at the same time.
If i put my shield on i don't receive the signal from my temp sensor.
Could you help me please?
Best regards.
hello
I have a question about my arduino shield 2.
I can't use my shield with my temp sensor (ds18b20) at the same time.
If i put my shield on i don't receive the signal from my temp sensor.
Could you help me please?
Best regards.
I have a question about my arduino shield 2.
What kind of shield is it? Motor shield? Wifi shield? Ethernet shield?
Probably because it is improperly connected, or clashing with something on the shield, and easily fixed. Check the forum instructions and post your code in the proper manner using the </> tags.
Also, how did you connect the pullup resistor?
sorry it's a GSM shield
#include<GSM.h>
#define PINNUMBER "0000"
GSM gsmAccess;
GSM_SMS sms;
const int capteur = 1;
float tension = 0.0;
int valeur = 0;
void setup()
{
Serial.begin(9600);
Serial.println("SMS Messages Sender");
boolean notConnected = true;
while(notConnected)
{
if(gsmAccess.begin(PINNUMBER)==GSM_READY)
notConnected = false;
else
{
Serial.println("Not connected");
delay(1000);
}
}
Serial.println("GSM initialized");
char remoteNumber[] = "+33753541296";
}
void loop()
{
valeur = analogRead(capteur);
sms.beginSMS(remoteNumber);
Serial.print(valeur);
sms.print(valeur);
sms.endSMS();
delay(10000);
valeur = 0;
}
char remoteNumber[] = "+33753541296";
}
Define an array that immediately goes out of scope. How useful!
The code you posted won't even compile.
There are many GSM shields. More specifically, which shield (post a URL) do you have?
DS18B20 is a digital device, and one normally uses the OneWire library to read it.