Offline
Newbie
Karma: 0
Posts: 11
|
 |
« on: January 08, 2013, 11:30:41 am » |
i created a program to just check the pin 8 gets a i/p so that the pin 9 will give some output...unfortunately even without the i/p its showing o/p...subsequently i found that wen we shake the uno its giving output!:(....so wat ds that show?
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 27
Posts: 1539
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #1 on: January 08, 2013, 12:14:59 pm » |
Bad wire connection, or a bad cold solder somewhere.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #2 on: January 08, 2013, 12:16:47 pm » |
I guess "floating input", but it really is just a guess, because I don't see code or a schematic.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25392
Solder is electric glue
|
 |
« Reply #3 on: January 08, 2013, 12:17:08 pm » |
so wat ds that show? It shows that it is not connected reliably, what else could it show? Check your soldering. If you are using solder less bread board you now know why it is a bad idea.
|
|
|
|
|
Logged
|
|
|
|
|
Milton Keynes UK
Offline
Tesla Member
Karma: 88
Posts: 6287
-
|
 |
« Reply #4 on: January 08, 2013, 02:21:32 pm » |
so wat ds that show?
If that behaviour isn't what you wanted, then it shows that you've got a problem. Perhaps if somebody more experienced with Arduino reviewed your software and hardware design then they might be able to guess what was causing it.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #5 on: January 17, 2013, 01:22:41 pm » |
so u mean the problem is wth ma circuit or program...thats affordable...my qstn will ther be chance that ma arduino is damaged??
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 5
Posts: 396
|
 |
« Reply #6 on: January 17, 2013, 01:39:14 pm » |
This may come as quite a shock to you, but nobody here can see your code or your circuit. So nobody here can possibly know if you've got a broken board or if you have made a mistake. I'm betting you have a floating pin. Common mistake for people to make. But unless you want to show us the schematic and the code no one here will ever be able to tell you.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #7 on: January 18, 2013, 11:44:04 am » |
int yel= 1; int blue= 0; int in=9;
void setup() { pinMode(yel, OUTPUT); pinMode(blue, OUTPUT); pinMode(in, INPUT); }
void loop() { if(digitalRead(in)==HIGH) { for(int i=1;i<=5;i++) { digitalWrite(yel, HIGH); delay(1); digitalWrite(yel, LOW); delay(1);
digitalWrite(yel, HIGH); delay(1); digitalWrite(yel, LOW); delay(1);
digitalWrite(blue, HIGH); delay(1); digitalWrite(blue,LOW); delay(1);
digitalWrite(blue, HIGH); delay(1); digitalWrite(blue, LOW); delay(1); } } } welll this my code...circuit is just ardui itself...snc pin 1 nd 0 are connectd to onbord leds i just tested testd it wth that... Moderator edit: excess whitespace removed and CODE TAGS added. Grrr.
|
|
|
|
« Last Edit: January 18, 2013, 12:09:12 pm by AWOL »
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15309
Measurement changes behavior
|
 |
« Reply #8 on: January 18, 2013, 11:57:26 am » |
Those delay(1) statements are not going to be able to be seen by human eye site as the eye can't detect a one millisecond blink of an led. Also you need to show the wiring of your digital input pin as that is what may or may not have a floating input pin condition.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Milton Keynes UK
Offline
Tesla Member
Karma: 88
Posts: 6287
-
|
 |
« Reply #9 on: January 18, 2013, 01:20:16 pm » |
circuit is just ardui itself
So nothing connected on pin 9? That means you have a floating input. By the way, if you could take the trouble to write proper English rather than txtspk it would be appreciated.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25392
Solder is electric glue
|
 |
« Reply #10 on: January 18, 2013, 03:20:38 pm » |
By the way, if you could take the trouble to write proper English rather than txtspk it would be appreciated. Is that what it is, I thought he was either very hip or retarded, possibly both.  Anyway as other have said "schematics R us" need your schematic for anything meaningful to be written.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #11 on: January 20, 2013, 02:00:25 am » |
well...there wasn't any circuit...i didnt connect anythng to the i/p pin...even befor connecting the pin the uno started showing the blinking leds..so frustrated and didnt attemptd to connect anything... one more dout what is maximum baud rate that can be supported by arduino uno?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25392
Solder is electric glue
|
 |
« Reply #12 on: January 20, 2013, 02:05:30 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #13 on: January 20, 2013, 03:10:27 am » |
thanks...  
|
|
|
|
|
Logged
|
|
|
|
|
Pakistan
Offline
Sr. Member
Karma: 5
Posts: 318
Arduino rocks
|
 |
« Reply #14 on: January 20, 2013, 07:08:04 am » |
i created a program to just check the pin 8 gets a i/p so that the pin 9 will give some output...unfortunately even without the i/p its showing o/p...subsequently i found that wen we shake the uno its giving output!:(....so wat ds that show?
First of all " Dont break Legs of English"... Write it as it should be dont chew it.. secondly, post your programm... The more you shake Arduino the more it will give you milk...
|
|
|
|
|
Logged
|
|
|
|
|
|