Show Posts
Pages: 1 ... 12 13 [14] 15 16 ... 21
196  Using Arduino / General Electronics / Re: atmega328 glitching on and off on: August 03, 2012, 01:26:15 pm
Quote

The meter won't show everything. An oscilloscope might.

Try some decoupling capacitors.

http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

thanks for that information just tryed that and still seems to make no apparent difference

Quote
If the 328 works with a separate 5V on it, but not when running off the 7805,
then it sounds like some of the other components in the circuit may be crowbarring
the 7805.

disconnected them from circuit no difference unfortunatly

Quote
Just a thought about voltages in your circuit.
Your transformer will give a peak voltage of 1.414 x 24 volts ( 33.936 ) at the rated output. If you are drawing less current, which seems likely, the peak voltage will be higher. The spec for a 7805 is maximum input 35 volts, your rectifier will drop a few volts but it might still output more than 35 volts so it might keep shutting down.

oh yes with no load i have 40v off the bridge rectifier so yeah your probably correct that the voltge regulator is shutting down due to over voltage does anybody have any recommendations for a regulator what will handle the higher input voltages?
197  Using Arduino / General Electronics / Re: atmega328 glitching on and off on: August 02, 2012, 03:48:25 pm
just had another play and just ran two temporary leads picking up the pos and neg from te board and linking them to the 5v out on the arduino programming board it appears to work fine then bit hard to exactly say as some of the componenets will not work as they need higher voltages so i presume my bridge rectfier needs replacing or the voltage regulators im using are a load of crap?? but seem to test out ok on the multimeter
198  Using Arduino / General Electronics / atmega328 glitching on and off on: August 02, 2012, 03:20:26 pm
hi there i have made a control board for a heating system that i work with on a regular basis was in the process of fine tuning my code to work correctly so all hardware seemed to be working ok but just recently it seems like the processor is switching on and off continously. hardware:
8va transformer 24v output
KBP005M rectifier
16uf capacitor changed for 33 and then 1000 still no different
L7805 Voltage Regulator  was changed no different
16uf capacitor changed for 33 and then 1000 still no different
atmega328 works fine in the arduino board and has been replaced aswell
the 2 capacitors and crystal have been changed still no difference

when i changed the two capacitors either side of the voltage regulator to 1000uf when you turn the board off it suddenly seems to work for a split second just before the capacitors discharge 

any ideas?
199  Using Arduino / Project Guidance / Re: heating control on: July 21, 2012, 08:45:51 am
still can not get it to work the other way round
200  Using Arduino / Project Guidance / Re: heating control on: July 20, 2012, 12:43:20 pm
if we can get this to work that will be sufficient

the timer is continously going round and round and round not starting when the button goes LOW

What you have looks nothing like what I posted, you aren't checking for the edges or recording times down. My example is exactly what you need expect for the maximum timer and the flipped HIGHs and LOWs on the button readings.

if we can get yours to work correctly then we will use yours but the switch works the wrong way around and we defintely need a max time on it
201  Using Arduino / Project Guidance / Re: heating control on: July 19, 2012, 02:35:36 pm
if we can get this to work that will be sufficient

Code:



const int fan =  13;     
const int buttonPin = 53;     
// Variables will change:
int HeatButtonState = LOW;      // HeatButtonState used to set the fan
long previousMillis = 0;        // will store last time fan was updated
long interval = 20000;          // delay time

void setup() {               
 pinMode(fan, OUTPUT);
  pinMode(buttonPin, INPUT);
}
void loop() {

   
  int lastState = HIGH;
  int currentState = digitalRead(buttonPin);
  //--------------------------------------------------------------------
 
  if (currentState == HIGH) {
    digitalWrite(fan, HIGH);
  } else {
    // Code goes here to occur whenver the button is LOW
  if (lastState == HIGH) {
    unsigned long currentMillis = millis();
    if(currentMillis - previousMillis > interval) {
      previousMillis = currentMillis;   

      if (HeatButtonState == HIGH)
        HeatButtonState = LOW;

      digitalWrite(fan, HeatButtonState);
    }
  }
  }
   lastState = currentState;
   
}


the timer is continously going round and round and round not starting when the button goes LOW
202  Using Arduino / Project Guidance / Re: heating control on: July 19, 2012, 01:33:23 pm
now we getting there the only thing is the switch is the wrong way around and the over run needs to be limited to a certain amount of time as i have known some of the heaters to run 24hours straight and i dont fancy a 24hour over run time lol.
203  Using Arduino / Project Guidance / Re: heating control on: July 18, 2012, 02:03:39 pm
ive tried switching high's and low's all over and still not working
204  Using Arduino / Project Guidance / Re: altering an output over a period of time on: July 15, 2012, 01:51:15 pm
i tried playing around with analog output/PWM and it didnt really work so i think i might have a go with digital potentiometer.
http://arduino.cc/en/Tutorial/DigitalPotentiometer
205  Using Arduino / Project Guidance / Re: heating control on: July 15, 2012, 01:11:25 pm
yes still no delay though
when the button went low the light goes out instantly but then if you put the button back high it seems to delay a little whle before it goes high it almost seems the delay is the wrong way round lol well thats the illusion it giving anyway
206  Using Arduino / Project Guidance / Re: heating control on: July 15, 2012, 07:35:59 am
so how do we do that and where ?
or is it as sipal as this;
  static unsigned long switchHIGHTime = 0;
  static unsigned long fanTurnOnTime;
207  Using Arduino / Project Guidance / Re: heating control on: July 13, 2012, 01:24:33 pm
this is the example i'm tring to get to work

Code:

#define THIRTY_SECONDS 30000
const int ledPin =  13;     
const int buttonPin = 2;     

void setup() {               
 pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
}
void loop() {
 
  static unsigned long startTime;
  static int lastState = HIGH;
  int currentState = digitalRead(buttonPin);
  unsigned long now = millis();
  unsigned long switchHIGHTime = buttonPin;
  unsigned long fanTurnOnTime;
 
  if (now - fanTurnOnTime > switchHIGHTime)
    // Turn the fan off
   
  if (currentState == HIGH) {
    digitalWrite(ledPin, HIGH);
    // Code goes here to occur whenver the button is HIGH
    if (lastState == LOW) {
      startTime = now; // Time when the switch went to HIGH
    }
  } else {
    // Code goes here to occur whenver the button is LOW
    if (lastState == HIGH) {
      switchHIGHTime = now - startTime; // determine how long it was HIGH for
      if (switchHIGHTime > THIRTY_SECONDS)
        switchHIGHTime = THIRTY_SECONDS;
     
      fanTurnOnTime = now;
      digitalWrite(ledPin, LOW);
      // Turn the fan on here
    }
  }
  lastState = currentState;
}
208  Using Arduino / Project Guidance / Re: heating control on: July 11, 2012, 12:21:38 pm
Quote

That code is designed to turn the LED on as soon as the button goes LOW for the length of time the button was held HIGH up to thirty seconds. What are you trying to do?

thats what i want it to do. it pulls the led low when the button goes low and there is no delay
209  Using Arduino / Project Guidance / Re: heating control on: July 10, 2012, 04:55:31 pm
Quote

So using the code in this post:
http://arduino.cc/forum/index.php/topic,108263.msg846778.html#msg846778

with just LEDs does not work? What are you expecting it to do and what is it doing?

that is the code i am using


i can see the (  if (lastState == HIGH)   ) working, but the code in side that what i ges is doing the delay seem's to be doing navall
so putting the LED on as soon as the button go's low
210  Using Arduino / Project Guidance / Re: heating control on: July 10, 2012, 04:30:09 pm
ok just dun your code on it's on just tuning led's on and off think i see how it work but not the delay and i could not get it to delay ether
Pages: 1 ... 12 13 [14] 15 16 ... 21