Pages: [1] 2 3 ... 10
 1 
 on: Today at 08:58:20 am 
Started by Vorms - Last post by robtillaart
There is always a number in every location. The default value for EEPROM is 255 0xFF 

so you could check on that.

 2 
 on: Today at 08:57:11 am 
Started by giuseppescola75 - Last post by giuseppescola75
GRAZIE MILLE!!!!!  smiley smiley

 3 
 on: Today at 08:56:56 am 
Started by Isadino - Last post by harddrive123
By wear out I clearly mean heat fatigue on the copper and its insulation. The insulation is thermally resistant not thermal proof, every time it gets exposed to heat it gets a little bit of cooking time. In combination with the expansion and retraction caused by the heat, eventually the insulation will just fail. Given the nature hobby motors I would think a few years puts it into the granpma age range.

Not excluding the wear of the bearings in the motor, if they start to jam, the motor will go into stall and that can easily cause the coils to fail.

 4 
 on: Today at 08:56:22 am 
Started by Vorms - Last post by Vorms
Hello,
I write a software that read and write number in the EEPROM section.

The first operation read all number.

The second operation check for every number (int or float) that the value is in the correct range.

But, when before the software write in the EEProm, the value are not initialised.
So, if the software read uninitialised number, it can be all but not a number.
I would like to check this case, because in this case I can check if the value is lower than xx or greather than yy.
How can I test if there is a number in the assigned value ?

Best regards,

Thierry


 5 
 on: Today at 08:54:02 am 
Started by IMMarkmc - Last post by polymorph
So it works with the Arduino driving the transistor, but not with the IR receiver driving it directly.

That is not surprising. Most IR receivers are active low, and sink current. They are an open collector output. The transistor needs something that sources current.

So you'd need something to invert the signal between the IR detector and the TIP102. Like the Arduino.

Are you wanting to drive the solenoid directly from the IR receiver, or are you just curious and trying things out?

 6 
 on: Today at 08:53:49 am 
Started by Doddy - Last post by julio625
contribution that good fellow, I congratulate me I would like you to collaborate with your project to study the menus I really liked that inplemento in lcd, i want to study your code and learn alongside the schematic you would greatly appreciate this. juliogarcia625@hotmail.com smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin

 7 
 on: Today at 08:53:06 am 
Started by skanman - Last post by Graynomad
What about using I2C driver chips (P82B96 et al), they have a lot more grunt which may help.

______
Rob

 8 
 on: Today at 08:50:54 am 
Started by pedrohms - Last post by pedrohms
 Thanks all for the answer. If I replace all String with char* I will lose all functions: lastIndexOf(), indexOf(), toInt()... or has a work around with char* ?

 9 
 on: Today at 08:50:29 am 
Started by mananp - Last post by polymorph
Using lower resistance in the voltage divider will -not- damage an analog input, because that current is not flowing through the analog input.

Perhaps you meant that lower resistances provide less -protection- of the analog input in case of malfunction. That is true.

 10 
 on: Today at 08:50:24 am 
Started by mem - Last post by Bob808
Like this?

Code:
............................
void setup()
{
............................
    onH=readEEPROM(addr,0);                         
    onM=readEEPROM(addr,1);                           
    offH= readEEPROM(addr,2);           
    offM=readEEPROM(addr,3);   
    flag = readEEPROM(addr,4);
  int time = hour()*100 + minute();
  int on = onH*100 + onM;
  int off = offH*100 + offM;

if(on<off){
                    if(time>on && time <off && flag)
                      {
                        LightsOn();
                      }
                     if(time>on && time<off && !flag)
                      {
                        LightsOn();
                        writeEEPROM(addr,4,1);
                      }
                     if(time>on && time>off && flag)
                      {
                        writeEEPROM(addr,4,0);
                      }
                     if(time<on && time<off && flag)
                      {
                        writeEEPROM(addr,4,0);
                      }
}

if(on>off){
                    if(time>on && time>off && flag)
                    {
                       LightsOn();
                    }
                    if(time<on && time<off && flag)
                    {
                      LightsOn();
                    }
                    if(time>on && time>off && !flag)
                    {
                      LightsOn();
                      writeEEPROM(addr,4,1);
                    }
                    if(time<on && time> off && flag);
                    {
                      writeEEPROM(addr,4,0);
                    }
}
}
 void loop () {
...............................
    onH= readEEPROM(addr,0);             
    onM= readEEPROM(addr,1);             
    offH=readEEPROM(addr,2);   
    offM=readEEPROM(addr,3);
    flag=readEEPROM(addr,4);
   int time = hour()*10000 + minute()*100+second();
   int on = onH*10000 + onM*100;
   int off = offH*10000 + offM*100;

if (time == on)
{
  if(!flag)
  {
  LightsOn();
  flag;
  writeEEPROM(addr,4,1);
  }
}
if (time==off)
{
 if(flag)
 {
  LightsOff();
  !flag;
  writeEEPROM(addr,4,0);
 }
 }
}


Pages: [1] 2 3 ... 10