Show Posts
Pages: [1]
1  Using Arduino / LEDs and Multiplexing / LED-fade without delay on: February 17, 2013, 06:46:34 pm
HI,
Does anybody know how can this sketch example from SoftPWM library be changed,and delay() function be exchanged with blink without delay and how?Or is there some other library with "fade without delay"? I need to do it for two LEDs but not simultaneously,one goes up and stays up for 2sec then goes down and stays down for 2sec.Then other goes up and stays up for 2sec.Thats the loop.


#include <SoftPWM.h>

void setup()
{
  SoftPWMBegin();
  
  SoftPWMSet(13, 0);

  SoftPWMSetFadeTime(13, 1000, 1000);
}

void loop()
{
  SoftPWMSet(13, 255);
  delay(1000);
  SoftPWMSet(13, 0);
  delay(1000);
}
2  Using Arduino / Sensors / Re: HELP WITH WEB TEMP CONTROL on: December 09, 2012, 04:14:53 pm
Ok,thanks for your help.I already tried to search exapmles,I found some examples,but not for my needs and I couldn't figure it out.Thats why I wanted some help.I can see here from other posts people are giving examples and I figured out many things by those examples.But never mind maybe someone else could give me an example ,or maybe I better post this thread to  programing forum.
3  Using Arduino / Sensors / Re: HELP WITH WEB TEMP CONTROL on: December 09, 2012, 02:26:05 pm
Yes,yes,that is exactly what I need,but I don't know how to do it.
Can you give me an example f,just from defining textbox,defining variables,storing in eprom and using it to set the temperature to be menaged by the heater.From the example before "tempC" is my measured temperature from the sensor.I don't need stuff like defininig and setting sensors and outpit pins.
Thank You for your help.
4  Using Arduino / Sensors / Re: HELP WITH WEB TEMP CONTROL on: December 09, 2012, 11:33:52 am
Thanks,but value from the textbox shuld be stored in EPROM and used as variable for setting the temperautre,because when the power goes off,the temp. setting will lost.This I don't know how to do.
5  Using Arduino / Sensors / HELP WITH WEB TEMP CONTROL on: December 08, 2012, 07:59:04 am
I made a simple web  page with temp control and monitor.Sensor is DS18B20.But I don't know how to use a value from textbox and setting the temp. to be controled from the web page.
This is the part from sketch defining the temp. for the heater to turn on:
if (tempC < 26)
  {
    digitalWrite(ledpin,HIGH);
  }
  else if (tempC >=27)
  {
   digitalWrite(ledpin,LOW);
  }

This is the textbox:
"<form><input type=text name=targettemp size=10> <input type=submit value=Ok> </form>"

I know that I should work with defining string and work with there values in buffers but I don't know how.
If someone can help me,and tell me what else should i do to make it work
Thanks
Pages: [1]