Pages: [1]   Go Down
Author Topic: Start/Stop Arduino  (Read 560 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is a very basic question,

Other than removing the power, is there a way to stop the Arduino from processing i.e. halting the microprocessor?

Thanks,
John
Logged

0
Offline Offline
Faraday Member
**
Karma: 16
Posts: 2855
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you can put it into a sleep mode:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1291420085

--
The QuadRAM shield: add 512 kilobytes of external RAM to your Arduino Mega/Mega2560
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure, you can put it in power down sleep mode, use a hardware interrupt to wake it up.

Err, yeah, what he said!


Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

Thanks.

I should have been more specific; is there a way put it to sleep from the IDE?  In the micro I switched from, one could stop and restart the processor from the IDE. 

While I'm at it; is there a way to clear the serial monitor window? 
Is there a limit to how many lines the window will accommodate? 
Is there a way to capture the contents of the serial monitor window in a text file?

John
Logged

0
Offline Offline
Faraday Member
**
Karma: 16
Posts: 2855
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
is there a way put it to sleep from the IDE?

No, the IDE can only send serial data, it cannot control the running state.

Quote
is there a way to clear the serial monitor window?

No, generally I just close it and open it again (though that resets the Arduino too)

Quote
Is there a limit to how many lines the window will accommodate?

Don't know the answer to that one.

Quote
Is there a way to capture the contents of the serial monitor window in a text file?

Not easily -- you can select all the text as you would select text in a normal window, then paste it into a text editor (Notepad, for example)

You can get more powerful terminal emulator programs (BrayTerm, TeraTerm) which do allow you to clear the screen, log data to a file, etc.

--
The Flexible MIDI Shield: MIDI IN/OUT, stacking headers, your choice of I/O pins
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
is there a way put it to sleep from the IDE
Not directly. You can send through serial a command that does just that, like
if (command is SLEEP)
   go_to_sleep
Quote
is there a way to clear the serial monitor window?
Instead of the serial monitor coming with the IDE, you can use a terminal app which has this sort of capability, like CoolTerm, for example.
Logged

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

Thanks; those are all good replies and I'll check them out.

John-
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I like RS232MON from EVMSoft.com as a test tool.
Can select data format (hex,text/ascii, bin, dec, float)
on both Rx & Tx, and on Tx can send repeating a file, or bursts of characters, in 1mS and up periods.

I've been using it a lot to test out a Tx card that spits out RS232 at 115,200 to see if the correct stuff was coming out,
and sending that same data into an Rx card to see if it was reacting properly.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Hannover, Germany
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

...
Is there a way to capture the contents of the serial monitor window in a text file?
...

You can use another program instead of the serial monitor. If I have to save things in a text file I use putty.

best regards
Andreas
Logged

http://danimathblog.blogspot.com

#define true '/'/'/'
#define false '-'-'-'

Pages: [1]   Go Up
Jump to: