Pages: [1] 2   Go Down
Author Topic: Reaction time Mega R3 extremely slow  (Read 1569 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I hope somone can help me..
I'm realy new to arduino and well, electronics in general actualy but i'm having a problem with my arduino mega r3 (i think).

I bought this mega for a project i want to built with a matrix of electro magnets and ferro fluid and started out with some simple examples like the one for the ping shield and for a capacitive touch sensor and i noticed that the reaction time of the arduino is extremely slow. For instance the touch sensor, when i look at the serial monitor i have a reaction time of 3900ms.. when i take out the code for the serial comm. it makes no difference, it takes about 4 seconds before a led starts to light up after i touch the sensor.. i think i'm just missing something but i can't figure out what it is.

I realy hope someone can help me out..

Thanks in advance!

p.s.

I checked the serial connection and this works fine, everything i send is echo'd back without any visible delay..

Anne
« Last Edit: December 07, 2012, 05:10:44 am by Anne404 » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26538
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i think i'm just missing something .
So are we.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So are we.

Hmmmm..  well, don't we all..
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26538
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you want to keep up the witty banter, or actually post some details, like code, schematic, observations, debug output..?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 506
Posts: 19139
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Read this before posting a programming question
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 506
Posts: 19139
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
For instance the touch sensor, when i look at the serial monitor i have a reaction time of 3900ms ...

Do you have this in your code?

Code:
delay (3899);

Without seeing it, of course, we can't tell.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Queens, New York
Offline Offline
Faraday Member
**
Karma: 106
Posts: 3772
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We can't help you unless you post your code.
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I realy hope someone can help me out..

The problem is probably in your code.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes it was the code...

in the example code of the capacitive sensor there are 3 inputs, i only wired 1 of them so it always timed out on the other two.... 

next time i'll wait a week before i'll post..

thanks to all who replied!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And now let's continue the witty banter    smiley-lol
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26538
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, no worries - glad you found it.
Sorry if that was a bit rough - belated welcome.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wait, what if I come here only for the witty banter?

Lefty
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
next time i'll wait a week before i'll post..

Somehow the msg got mangled. Too subtle, maybe. The moderator is named HAL. To a new
poster on their very "first" post, someone should say, click on the # icon and display your code,

Code:
code goes here

fix comes here.
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Wait, what if I come here only for the witty banter?

1. wait.
2. go to 1.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Wait, what if I come here only for the witty banter?

1. wait.
2. go to 1.

I left the Basic language behind long ago, probably before you were born, but thanks anyway.  smiley-wink

Lefty
Logged

Pages: [1] 2   Go Up
Jump to: