Pages: [1] 2   Go Down
Author Topic: Program run switch  (Read 2556 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maby a switch defined by the bootloader will be able to control when the program is run and is not? When the switch it off the program dosent run but you can program it sith the ide. Therefore when testing if you have the arduino mounted and some servos set to run continuosly then when you try to program it, it dosent start moving, (trust me bad expieriences) my temporary solution was to use a seporate servo power supply and wire it to a switch. But that wont work for everything.
Logged

London, UK
Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm sorry, I'm not quite sure I understand. How will the effect of this differ from just making the main loop wait for a button press to get started?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Because the design will be on the pcb... Without having to solder it, personal expierience, such as a robot that im programming (that i built) i forgot a switch and had to hold it up in the air while progrAmming it
the freeduino from sparjfun has a power swutch...
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 572
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino's are designed for prototyping.

The Arduino team had intended that you prototype your design on the Arduino board, then when it's ready to go move the IC to a more permanent application board. This would presumably have an on/off switch.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you don't get it....

for prototyping it is way easier to have something built in.
you probably haven't experienced it to the fullest...
i need to wait till someone who knows what im talking about to reply
sorry smiley-sad
Logged

Spokane, Washington
Offline Offline
God Member
*****
Karma: 1
Posts: 686
My name is Bob, and I'm an addict.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, when making a prototype board such as the Arduino.. you gotta realize they're thinking more of a "general" population when they implement pins, buttons.. etc..

Doesn't seem like what you're trying to explain would have a whole lot of uses.. but then again, it's not very clear what you're explaining!

From the sounds of it.. couldn't this all be done on the Software side?

Only running the program after a button is pushed.. then another button push to turn it off?

I'm sorry if this isn't the right idea.. just confused on what you're explaining:D
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes exactly except in a switch, the only change im suggesting is that a smd or dip switch be mounted  on the side (can access it with shield on) connected to ground with pulldown resistor 5v and a io pin.
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 572
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
you don't get it....

for prototyping it is way easier to have something built in.
you probably haven't experienced it to the fullest...
i need to wait till someone who knows what im talking about to reply
sorry

Way to get added to my "do not help list"!

You can't have a "one-design-fits-all" as a prototyping board - it's not practical cost-wise or size-wise. Compromises are always made.
Logged

UK
Offline Offline
Sr. Member
****
Karma: 1
Posts: 491
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually a built in push-button might not be a bad idea. After all, we have a built in LED on pin 13 for output, why not a built in button on pin 12 for input? It would mean people could run something a little more interesting than Blink without any external hardware at all.

Andrew
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If your just connecting directly to the pins its usefull to have a switch, for running the program, or somthing else. EVEN THE SPARKFUN PROTOSHIELD HAS ONE
Logged

Huntsville, Alabama, USA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 327
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Couldn't this be accomplished by changing the bootloader and avrdude?  You could add a "do not run after download" flag to the download data stream sent by avrdude and received by the bootloader.

-Mike
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

All im suggesting is a swith and pull down resisor be added to pin **.
you do the code...
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 132
Posts: 6746
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which IO pin do you want to give up so that you can have this switch instead?
Logged

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

 I think the original Arduino design made a decent compromise between being general purpose while self sufficient at the same time. Sure an extra push button would have been useful for some but it didn't make the cut.

 The pin 13 LED is very useful to tell if the board is functional by uploading a blink sketch without having to wire anything else up. So it's a quick checkout for the initial IDE installation and set-up (board and comm# selection correct) for someone just starting out.

 Keep in mind the ease of adding either a store bought or DIY proto-shield that can contain any 'extra' component items you want.

Lefty
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 132
Posts: 6746
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
a decent compromise
Indeed.  I've been playing with freescale's Tower eval setup for their MCF51CN128.  Trying to design a PCB "intermediate" board to connect it to arduino shields, in fact.  Despite the fact that this is an 80pin chip, it's been really depressing how many of the "obvious" pins are already "used up" by the demo stuff included on he eval board.  (The Tower Board/setup has a lot of peripherals built in.  Sorta the opposite extreme from arduino.
switches, LEDs, ethernet, switches, accelerometer, potentiometer...)
The Atmel "butterfly" has similar problem...
Logged

Pages: [1] 2   Go Up
Jump to: