Loading...
Pages: [1] 2   Go Down
Author Topic: Reaction time Mega R3 extremely slow  (Read 751 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: 138
Posts: 19066
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.

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: 138
Posts: 19066
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.

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 218
Posts: 13897
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Read this before posting a programming question
Logged


Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 218
Posts: 13897
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


Queens, New York
Offline Offline
Edison Member
*
Karma: 29
Posts: 1569
"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

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

UK
Offline Offline
Tesla Member
***
Karma: 89
Posts: 6388
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I realy hope someone can help me out..

The problem is probably in your code.
Logged

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: 138
Posts: 19066
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.

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 279
Posts: 15316
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
Edison Member
*
Karma: 81
Posts: 2123
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

Kitchen-Sink Arduino-compatible boards

the land of sun+snow
Offline Offline
Edison Member
*
Karma: 81
Posts: 2123
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

Kitchen-Sink Arduino-compatible boards

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 279
Posts: 15316
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
Print
 
Jump to: