Recent Posts

Pages: [1] 2 3 ... 10
1
You would only need to use avrdude if you need to upload another program and that should never be necessary just because of a code malfunction.

You can include the WatchDog timer in your code if you are concerned that, for example, something might get in an endless loop. The WatchDog timer will restart the Arduino after a short time unless it is told not to by the properly functioning program.

You could also connect a physical switch that mimics the reset switch on the Arduino board if you are happy with human intervention.

...R
2
Français / Re: Lecteur RFID
Last post by B@tto - Today at 12:52 pm
Salut,

Quote
car il s'agit d'un char et je dois le transformer en String.
Mouais enfin ce qu'on fait avec des String on peut toujours le faire avec des tableaux de char. En plus c'est fiable au moins :)

Ensuite ça :

Code: [Select]
        if(!Serial2.available())
        {
                break;
        }


Bin ça sert à rien puisque c'est la condition inverse du while dans laquelle il est inclu.

Après pour ton problème je vois pas bien vu que les string je m'en passe très bien :)

Si c'est pour une comparaison que tu as besoin de String, ça existe aussi avec les chaines de caractères : strstr() et strcmp()

3
Deutsch / Re: Projekt: LCDMenuLib - LCD ...
Last post by Jomelo - Today at 12:52 pm
In der Betaversion ist noch einiges nicht ganz sauber gelöst. Ich plane noch den InitScreen auszulagern, da dieser eigentlich nur Speicher frist. Durch externe Funktionen lässt sich das sauberer lösen.

Zum Encoder:
Im Anhang befindet sich ein Beispiel wie der Drehencoder angeschlossen werden kann. In dem Rar Archiv ist dann der Beispielcode. Im Moment sind die Eingänge 10, 11 und 12 in Verwendung. Auf dem Kontroller werden die internen Pullups genutzt, dadurch werden keine externen Widerstände benötigt.  

Das Beispiel, kommt in der nächsten Version auch regulär hinzu.
4
Generale / Re: Modulo Wi-Fi ESP8266
Last post by nid69ita - Today at 12:51 pm
5
Arduino Due / Re: Arduino DUE DAC Output
Last post by Dande80 - Today at 12:50 pm
That's normal. The DAC Pins of the DUE are not full swing. I don't know the exact limits but your measurement is in the range that I expect.
6
That's basically what I was getting at.  You need a LDO regulator rated for a higher input voltage.  In fact, you should be able to synthesise such a function with discrete transistors, since close regulation is clearly not as important as LDO and surge isolation.

(Not everything comes in ICs.)
7
Programming Questions / Re: I2C accelerometer with del...
Last post by aarg - Today at 12:50 pm
aarg, to avoid the rollover problem, it is necessary to use "unsigned long" and timestamp the current moment. That way the "millis() - prevMillis" is always a positive number and that prevents the rollover problem.
When for example the time in the future is remembered, millis() could be higher or lower than that value, and that is not possible with unsigned long.
Here is an example that shows what it is like to use unsigned variables that rollover : http://playground.arduino.cc/Code/TimingRollover#arithmetic
There is something about this that is fishy. I modified that code to show a little more of the results of the arithmetic and comparisons. The idea behind it is to use byte to simulate unsigned time. I am giving a snippet here because a link is already provided to the source.
Code: [Select]

   p = 4;         // rollover of value 260
  q = 250;
  r = p - q;     // valid for unsigned variables
  Serial.println( F("260 (=4) - 250 = "));
  Serial.println( r, DEC);
  Serial.println( r < 10);
  Serial.println( p-q, DEC);
  Serial.println( p-q < 10);

which produces this:
Code: [Select]

260 (=4) - 250 =
10
0
-246
1

Notice that unless an assignment is made to a byte, the value is incorrect.
But! This form of comparison seems like the comparison of long ints in the actual blink code that follows, the structure of which we are all so familiar:
Code: [Select]

  if ( ul_CurrentMillis - ul_PreviousMillis > ul_Interval)

It seems to me, that if the analogy to the byte example is valid, this expression should fail, as it did with
Code: [Select]

( p-q < 10)

above.
I'm just not quite buying into this at the moment. Something is wrong. For sure, it could be the way I'm seeing it, but I'm not sure how.
9
Hi,

What is written on the label in the 12V 2A power supply?
Can you post  a picture of it.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?

Can you please post a copy of your sketch, using code tags?
Please use code tags.. See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom.... :)
10
Français / Comment savoir si une carte SD...
Last post by elhemia - Today at 12:48 pm
Bonjour,

J'aimerais intégrer une sécurité dans mon programme, si la carte SD du shield ethernet n'est pas dans son port, je marque erreur sur mon LCD.

J'ai vu ça sur internet : http://playground.arduino.cc/Learning/SDMMC

Je pense qu'il faut lire la pin 1, si elle est Low c'est bon, si elle est High c'est pas bon.

Mais je ne sais pas "faire" le code, surement un utiliser un
Code: [Select]

 if(digitalRead(.......,HIGH) {
lcd.print("Erreur");
}
else{
faire le code
}



Pouvez-vous m'aider ?
Pages: [1] 2 3 ... 10

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy