Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 13
61  Using Arduino / General Electronics / Re: TPS63001 to power arduino on: September 16, 2012, 07:49:20 am
Oh ok thank you, I am unsure of how to calculate what I need.  Any advice would be appreciated.  I am running everything at 3.3V
62  Using Arduino / General Electronics / TPS63001 to power arduino on: September 16, 2012, 07:12:58 am
Hi,
I have been looking at using a TI TPS63001 to get the last bit of juice out of my batteries and I was wondering because it doesnt produce a completely flat output do I need a linear regulator afterwards?

http://www.ti.com/product/TPS63001
63  Using Arduino / Programming Questions / Re: Mini loop for a short period of time. on: September 16, 2012, 06:08:25 am
Code:
void loop()
{
  Serial.println("hello");
    while( intervaltimer() != 1)
    {
    continue;
    }
    Serial.println("finished loop");
}

  unsigned long currentMillis = millis();
 
 unsigned long intervaltimer(){
  if(currentMillis - previousMillis  interval) {
    // save the last time you blinked the LED
    previousMillis = currentMillis;   
    wdt_reset();

    return 1;

  }
  else
  {
    return 0;
  }
 }
64  Using Arduino / Programming Questions / Mini loop for a short period of time. on: September 16, 2012, 05:45:24 am
Hi,
What I am trying to achieve is that I want my device to wait for 10 minutes at the end of my loop, however, here is the catch, I need to reset the watchdog timer every 8 seconds,  How would I go about doing this?
I have been trying to use the BlinkWithoutDelay Example with no success, please help.
Thanks
65  Using Arduino / Displays / Re: Pervasive Displays [no power displays - e-paper] on: September 09, 2012, 05:29:45 pm
I look forward to it.
66  Using Arduino / Programming Questions / Re: Efficiently carry out an action ever x seconds. on: September 09, 2012, 04:57:18 am
Oh ok so from what I understood I need to do this?

Code:
unsigned long currentMillis = millis();
                       while((currentMillis - previousMillis < interval))
                       {
                              // save the last time you reset the watchdog
                              previousMillis += interval;   
                              wdt_reset();
                       }
67  Using Arduino / Programming Questions / Re: SetTimeout() on: September 08, 2012, 06:31:20 pm
Hi, thanks.
I will look into integrating that into the library.
68  Using Arduino / Programming Questions / Re: Efficiently carry out an action ever x seconds. on: September 08, 2012, 06:27:43 pm
Thanks guys,
Went with this in the end.

Code:
unsigned long currentMillis = millis();
                       while((currentMillis - previousMillis < interval))
                       {
                              // save the last time you reset the watchdog
                              previousMillis = currentMillis;   
                              wdt_reset();
                       }
69  Using Arduino / Programming Questions / Efficiently carry out an action ever x seconds. on: September 06, 2012, 05:29:00 pm
Hi,
I need to carry out a WDT reset every 5 seconds but I want to put in a delay of 10 minutes.
I am unsure of how to use the millis function as I think that is what I need to accomplish it.
I am sure that millis would be better instead of:
Code:
delay(5000);
wdt_reset();
delay(5000);
wdt_reset();
delay(5000);
wdt_reset();

for 10 minutes.

Thanks
70  Using Arduino / Programming Questions / Re: SetTimeout() on: September 06, 2012, 04:47:53 pm
Hi,
Thanks but I don't quite understand how that works, if my device hangs on the reads for the sensors, is there any way I can have it skip over that part of the code?

Many thanks
71  Using Arduino / Programming Questions / SetTimeout() on: September 06, 2012, 12:03:29 pm
Hi,
I am unsure of how to use this function, the documentation seems to be almost non existent.  I would like to set a timeout when I read one of my sensors that is on an i2c bus incase it gets unplugged so doesn't hang the arduino.

Code:
float hum1 = (SHT2x.GetHumidity());
 float temp1 = (SHT2x.GetTemperature());

If anyone knows how to put that within a setTimeout function I will be very appreciative.
72  Using Arduino / Displays / Re: Pervasive Displays [no power displays - e-paper] on: September 06, 2012, 12:00:06 pm
Very impressive.  Nice to know pervasive are helpful.
Are you planning on releasing your code? or at least some documentation on how to get them working?
Thanks
73  Using Arduino / Displays / Re: Pervasive Displays [no power displays - e-paper] on: September 02, 2012, 10:13:07 am
Oh ok, that is fair enough.  Please post on how you get on.
74  Using Arduino / Displays / Re: Pervasive Displays [no power displays - e-paper] on: September 02, 2012, 06:58:58 am
The problem is they are quite difficult to get hold of and densitron their main distributers are D****
75  Using Arduino / Displays / Re: E-Paper on: September 02, 2012, 06:58:05 am
Hi, no update sorry, we ended up going with a regular LCD due to cost, I do have a 5" pervasive display hooked up to a pic dev board though but havent had much of a chance to play with it.
Pages: 1 ... 3 4 [5] 6 7 ... 13