Recent Posts

Pages: [1] 2 3 ... 10
No, the 2nd micros() will return  a slightly bigger (or much  bigger) number than the 1st  micros(), depending on how long it takes for the digitalRead to return HIGH.
In a perfect world you'd be correct, and the code would be working as well. If while(digitalRead(echpin) != LOW) { }; fails, i.e. echpin is LOW, the code falls straight through, and it's going to do so in a lot less than 4us, ergo a-a will still equal zero.
Generale / Re: Presentazioni nuovi iscrit...
Last post by giosue78 - Today at 02:20 pm
Ciao a tutti, mi sono appena affacciato al mondo arduino. Digito da La Spezia
Displays / Re: mcufriend 3.5 LCD TFT ILI9...
Last post by ddpleasant - Today at 02:18 pm

Thank you!

This falls under the category of "You get what you pay for." 

Lesson learned.

Can you recommend a reliable Arduino dealer that I could get 3.5 TFTLCD displays from for UNO and Mega25620?

Thank you once again.

David Pleasant

Sensors / Re: Disappointing response and...
Last post by wvmarle - Today at 02:17 pm
For accuracy ratings, check its data sheet. If you're within 1 deg C you're normally OK.

The internal reference will give you a better result as it's much more stable, and you make better use of the range of your ADC. With a 5V reference you use only the bottom 20% of your range, with the 1.1V reference you use like 90% of the range.

Also mind that this reference voltage has an error of +/- 10% or so. This is between devices - your device will have a very specific voltage of about 1.1V, but could be a bit more or a bit less. You'll have to calibrate. I usually just stick the sensor in my mouth (I mostly use waterproof thermistors), keep it for a while under my tongue, and expect to see a reading of about 36.5 deg.
Arduino Due / Re: Ethernet w5200/w5500 libr...
Last post by nitrof - Today at 02:17 pm
Have you some example sketch, or is it the same come of witch the original ethernet lib... also, did you have to replace the original lib with this one...

So, a little how to use it will be appreciated.

Look like very processing. I want to use it in a similar project, with a multi room thermostat controlled by internet.

To keep in the DMA performance idea, I enable the ADC PDC sequencer on all 12 analog input: ADC_SEQR

Enable DMA for the interface web server should be very cool !!
Nederlands / Re: url van active browserwind...
Last post by Jantje - Today at 02:17 pm
Verder zou ik een externe partij laten toetsen of dit allemaal we voldoet aan beveiligings eisen voor epd dossiers.
Dat raad ik je ook ten stelligste aan.
Al gehoord van vingerafdruk inloggen bv?
Français / Re: PCF8583 avec arduino
Last post by liche - Today at 02:17 pm
Le voici:
Code: [Select]
#include <Wire.h> // necessary, or the application won't build properly
#include <stdio.h> 
#include <PCF8583.h> 
 *  read/write serial interface to PCF8583 RTC via I2C interface
 *  Sanguino digital pin 16 - I2C SCL (PCF8583 pin 6)
 *  Sanguino digital pin 17 - I2C SDA (PCF8583 pin 5)
 *  You can set the clock by sending the type in this format YYMMDDhhmmss;
 *  the semicolon on the end tells it you're done...

int correct_address = 0;
PCF8583 p (0xA2);  
void setup(void){
  Serial.println(" done");

void loop(void){
  if(Serial.available() > 0){
       p.year= (byte) (( - 48) *10 +  ( - 48)) + 2000;
       p.month = (byte) (( - 48) *10 +  ( - 48)); = (byte) (( - 48) *10 +  ( - 48));
       p.hour  = (byte) (( - 48) *10 +  ( - 48));
       p.minute = (byte) (( - 48) *10 +  ( - 48));
       // Use of (byte) type casting and ascii math to achieve result.  
       p.second = (byte) (( - 48) * 10 + ( - 48)); 

       if( == ';'){
         Serial.println("setting date");

  char time[20];
  sprintf(time, "%02d/%02d/%02d %02d:%02d:%02d",
    p.year, p.month,, p.hour, p.minute, p.second);
Français / Re: Besoin d'aide pour un prog...
Last post by NiiiZ - Today at 02:16 pm
J'ai corrigé :

Code: [Select]
int D;

void setup() {

void loop() {

if (digitalRead(2) == HIGH) D=1;
if (digitalRead(3) == HIGH) D=2;
if (digitalRead(4) == HIGH) D=3;

switch (D){
case 1:
case 2:
case 3:




C'est bon comme ca ?

Je sais que mon collègue me donnera les infos via un module nrf, mais je ne sais pas comment faire exactement, donc pour l'instant on m'a dit de simuler ces infos, pour déjà faire la suite de mon code
Français / Re: Conflit entre GSM et Softw...
Last post by Ilaan - Today at 02:16 pm
Tu ne comprend pas quoi?
Français / Re: Fichier .h et .cpp pour me...
Last post by Zelione - Today at 02:15 pm
c'est vrai, une faute de frappe.
Pages: [1] 2 3 ... 10