Loading...
  Show Posts
Pages: 1 ... 6 7 [8]
106  Forum 2005-2010 (read only) / Troubleshooting / Re: AtMega328 on: March 04, 2010, 02:48:56 am
Am pretty sure my connectins are correct..
I only gave connections so that i can run my program in the breadboard..
the rest of the features, i just ignored them..
Actually, 168 has only 3 PWM pins, 328 got 6 PWM pins..
Thats y i think there wld be a difference in their connections..
Also my connectins is not working....I think that 328 might have another circuit.
107  Forum 2005-2010 (read only) / Troubleshooting / Re: AtMega328 on: March 04, 2010, 02:13:47 am
hmmm..
But where shall i get the breadBoard connection for the controller..328.
108  Forum 2005-2010 (read only) / Troubleshooting / Re: AtMega328 on: March 04, 2010, 01:01:33 am
OMG..I cant even find the dataSheet for 328.. :'(
109  Forum 2005-2010 (read only) / Troubleshooting / AtMega328 on: March 04, 2010, 12:38:44 am
Hey.Actually I needed to build my own connection for AtMega 328 controller. But this connection is not available on net.
I tried giving 168 connection for 328..But its not working.Can someone help me on this...

I need the connection circuit for 328... smiley-sad

http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard
110  Forum 2005-2010 (read only) / Troubleshooting / Re: PWM pins on: March 02, 2010, 10:44:29 am
My board is ATMEGA328,Arduino Duemilanove.
111  Forum 2005-2010 (read only) / Troubleshooting / Re: PWM pins on: March 02, 2010, 10:40:56 am
Hmm..THnx.But, there are 6 PWM pins in my board, but only 3 are marked as PWM..
112  Forum 2005-2010 (read only) / Troubleshooting / PWM pins on: March 02, 2010, 10:29:51 am
Can some one plz name the PWM pins in here...

113  Forum 2005-2010 (read only) / Exhibition / Pulse Width Modulation. on: February 17, 2010, 07:14:54 am
I dont find examples on using the pwm pins anywhere..

Can any one tell me how to declare and use the Pwm Pins.
114  Forum 2005-2010 (read only) / Exhibition / Re: My program shows some error..Can anyone help me... on: February 16, 2010, 08:57:32 am
Ah...
U are cool.. ;D
but..will this work??

int pinVal = analogRead(aPin);
if(pinVal == HIGH)
{
   // Do something...
}
else
{
   // Do something else...
}

int pinVal = analogRead(bPin);
if(pinVal == HIGH)
{
   // Do something...
}
else
{
   // Do something else...
}
115  Forum 2005-2010 (read only) / Exhibition / Re: My program shows some error..Can anyone help me... on: February 16, 2010, 08:20:50 am
Err..Which are the true pin and false pin of the analog o/p..Err..Dnt mind if am silly..am new to this programming stuffs...

will this do any good??

 if analogRead(aPin,0)
116  Forum 2005-2010 (read only) / Exhibition / Re: My program shows some error..Can anyone help me... on: February 16, 2010, 07:59:02 am
THe problem was actually with the { }..But I get the same error again after this one...

int aPin = 0;
int bPin = 1;
int mtr1Pin = 2;
int mtr2Pin = 3;

void setup()
{
  pinMode(mtr1Pin, OUTPUT);
  pinMode(mtr2Pin,OUTPUT);
}
void loop()
{
  if analogRead(aPin==0)
  {
  digitalWrite(mtr1Pin,HIGH);
  }
  else
  {
  digitalWrite(mtr1Pin,LOW);
  }
  if analogRead(bPin==0)
  {
  digitalWrite(mtr2Pin,HIGH);
  }
  else
  {
  digitalWrite(mtr2Pin,LOW);
  }
}
  
117  Forum 2005-2010 (read only) / Exhibition / My program shows some error..Can anyone help me... on: February 16, 2010, 07:37:20 am
int aPin = 0;
int bPin = 1;
int mtr1Pin = 2;
int mtr2Pin = 3;

void setup()
{
  pinMode(mtr1Pin, OUTPUT);
  pinMode(mtr2Pin,OUTPUT);
}
void loop()
{
  if analogRead(aPin==0)
  digitalWrite(mtr1Pin,HIGH);
  else
  digitalWrite(mtr1Pin,LOW);
  if analogRead(bPin==0)
  digitalWrite(mtr2Pin,HIGH);
  else
  digitalWrite(mtr2Pin,LOW);
}


I just wanted to know what error I made in the program
118  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Help With LED Fading And Switch on: February 17, 2010, 03:38:42 pm
I got a bad server..my page is loading late..I never intended to post that...Sorry

you have mentioned state==1 for turning on the switch rite..

the if statement before that will need a else statement before the turn off.

#define..smiley-grin..u can simply put that in int. increasing values from 0-255 1 by 1 is kinda laggy.
119  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Help With LED Fading And Switch on: February 17, 2010, 03:38:00 pm
I got a bad server..my page is loading late..I never intended to post that...Sorry

you have mentioned state==1 for turning on the switch rite..

the if statement before that will need a else statement before the turn off.

#define..smiley-grin..u can simply put that in int. increasing values from 0-255 1 by 1 is kinda laggy.
120  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Help With LED Fading And Switch on: February 17, 2010, 03:16:44 pm
Does this code work??

I mean..does that fade out and fade in with the button operation work with this code?
Pages: 1 ... 6 7 [8]