Offline
Newbie
Karma: 0
Posts: 4
|
 |
« on: December 07, 2012, 04:58:38 am » |
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
Online
Brattain Member
Karma: 144
Posts: 19382
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: December 07, 2012, 05:22:25 am » |
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
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #2 on: December 07, 2012, 05:26:02 am » |
So are we. Hmmmm.. well, don't we all..
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 144
Posts: 19382
I don't think you connected the grounds, Dave.
|
 |
« Reply #3 on: December 07, 2012, 05:47:12 am » |
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
Shannon Member
Karma: 226
Posts: 14121
Lua rocks!
|
 |
« Reply #4 on: December 07, 2012, 05:59:36 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14121
Lua rocks!
|
 |
« Reply #5 on: December 07, 2012, 06:01:23 am » |
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? delay (3899);
Without seeing it, of course, we can't tell.
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 31
Posts: 1733
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #6 on: December 07, 2012, 07:56:48 am » |
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
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
UK
Offline
Tesla Member
Karma: 100
Posts: 6788
-
|
 |
« Reply #7 on: December 07, 2012, 08:17:10 am » |
I realy hope someone can help me out..
The problem is probably in your code.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #8 on: December 07, 2012, 09:06:26 am » |
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
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #9 on: December 07, 2012, 09:08:30 am » |
And now let's continue the witty banter 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 144
Posts: 19382
I don't think you connected the grounds, Dave.
|
 |
« Reply #10 on: December 07, 2012, 09:43:24 am » |
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)
Offline
Brattain Member
Karma: 283
Posts: 15443
Measurement changes behavior
|
 |
« Reply #11 on: December 07, 2012, 12:08:30 pm » |
Wait, what if I come here only for the witty banter?
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 91
Posts: 2242
|
 |
« Reply #12 on: December 07, 2012, 01:19:32 pm » |
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 goes here
fix comes here.
|
|
|
|
|
Logged
|
Something different - Kitchen-Sink Arduino-compatible boards
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 91
Posts: 2242
|
 |
« Reply #13 on: December 07, 2012, 01:21:04 pm » |
Wait, what if I come here only for the witty banter? 1. wait. 2. go to 1.
|
|
|
|
|
Logged
|
Something different - Kitchen-Sink Arduino-compatible boards
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 283
Posts: 15443
Measurement changes behavior
|
 |
« Reply #14 on: December 07, 2012, 01:34:36 pm » |
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.  Lefty
|
|
|
|
|
Logged
|
|
|
|
|
|