Pages: [1]   Go Down
Author Topic: Starting sketch before connection to pc  (Read 618 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

Hi,

I'm trying to make an arduino uno output times to serial, sort of a external stopwatch,
and I have managed to do this. But I was wondering if it is possible to start the sketch,
and the timing, before I connect the arduino to the pc, so that I can start in one place,
and then move to the "finish line", without having to move the computer also.

Is it possible, and if yes, how?

Thanks
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 636
Posts: 34579
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need two things.
1) To power the arduino. This can be done by batteries and will start a sketch running.
2) To disable the auto reset that resets the arduino when ever the serial port is enabled. There is a link on the board you can cut to do this.
Logged

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

Where can I find the link I would need to cut?

Thank you very much for the reply   smiley-grin
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 636
Posts: 34579
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Depends on what you have. This link shows you haw for some versions:-
http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection

On the uno it is a pad to the left of the resistor pack marked reset close to pin 14 of the ATmega chip, slice the thin wire in between and add a solder blob to reconnect.
Logged

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

Thank you so much for all your help!  smiley
Logged

Pages: [1]   Go Up
Jump to: