Pages: 1 [2] 3   Go Down
Author Topic: Why use int instead of byte for pin numbers?  (Read 3056 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 285
Posts: 25632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
And why cripple it with an Atmel chip anyway?  That was a bad idea from the outset
Wow! A sudden outbreak of 20:20 hindsight.

Except, the hindsight needs a little focus.

Back in 2005, which useful cheap microcontroller families were supported by free, un-hobbled compilers?
Hint: it's a very short list.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

I will neither praise nor criticize the many arduino design points (hardware and software, of which some seem valid to me and some silly) being brought up in this post, but rather just celebrate the vast popularity of the arduino platform and the huge membership of this forum, even consisting of some members that think they got it all wrong.  smiley-grin

If I was to add to the critic list, I would be tempted to add:

Auto-reset circuit that has had many revisions and cannot be defeated with an easy switch or jumper clip selection.

Auto-voltage selection circuit that is complex, forces the priory selection if both voltage sources are available. Should have been a simple jumper clip like an early arduino board had.

Latest rev 3 uno and mega boards that use pin 13 led opamp driver/buffer that has a floating input pin condition allowing the led to randomly be on or off if not forced low by a pin 13 output mode and digital output LOW commands.

Lefty

« Last Edit: February 25, 2013, 01:00:35 pm by retrolefty » Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I will neither praise nor criticize the many arduino design points (hardware and software, of which some seem valid to me and some silly) being brought up in this post, but rather just celebrate the vast popularity of the arduino platform and the huge membership of this forum, even consisting of some members that think they got it all wrong.  smiley-grin
It's just like Windows.  Just because everyone uses it, doesn't make it good.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

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

I will neither praise nor criticize the many arduino design points (hardware and software, of which some seem valid to me and some silly) being brought up in this post, but rather just celebrate the vast popularity of the arduino platform and the huge membership of this forum, even consisting of some members that think they got it all wrong.  smiley-grin
It's just like Windows.  Just because everyone uses it, doesn't make it good.

Yea, many seem to hate all oil companies but still buy their gasoline.  smiley-wink

Disclaimer, retired oil company employee. Great job, great company, some great supervisors, some piss poor ones also.  smiley-grin

Lefty
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 473
Posts: 18695
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

yea, I am getting close to the edge of ram in one of my project, changed all my const X's to #defines and freed up almost 2 dozen bytes of ram

Proof? Constants don't take up RAM.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 473
Posts: 18695
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Well now that we are dissing Arduino, allow me to add my gripes!

Yes, very good, but the design is good enough that they are selling tens of thousands. The good points are that it is aimed at the beginner market, the shields are a useful add-on, and it was an excellent decision to use the open-source g++ compiler.

Compare that to other boards where you have to buy their own (dodgy) compilers, or get a cut-down "beginner" version, and put up with an IDE that is so complex it's almost impossible to get a project up quickly.
Logged

California
Offline Offline
Sr. Member
****
Karma: 3
Posts: 433
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Well now that we are dissing Arduino, allow me to add my gripes!

Yes, very good, but the design is good enough that they are selling tens of thousands. The good points are that it is aimed at the beginner market, the shields are a useful add-on, and it was an excellent decision to use the open-source g++ compiler.

Compare that to other boards where you have to buy their own (dodgy) compilers, or get a cut-down "beginner" version, and put up with an IDE that is so complex it's almost impossible to get a project up quickly.

Yeah I figure, maybe they weren't the best programmers or engineers but they did create the best, most successful beginner development board and IDE so there's something to be said about that.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8471
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@majenko and Krupski
All the above gripes have been posted many times, some even by me. I don't understand many of the design decisions made by Arduino either but the often dubious "features" haven't stopped it becoming a success.

As someone who has never had such a runaway success despite spending a lifetime trying to produce good hardware and software design I find it quite discouraging and another case of both marketing over function and being in the right place at the right time with the right product. Also the fact that most users don't give a rodent's posterior as long as they can get a LED to blink in time with the music smiley

_____
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 473
Posts: 18695
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Wait, you can get the LEDs to blink in time with music? I must try that ...
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 285
Posts: 25632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
the shields are a useful add-on
...and difficult for beginners to plug in the wrong way round  smiley-wink
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 473
Posts: 18695
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Exactly! And that is what was so brilliant about the original design. smiley
Logged

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12520
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think it's fair to say that the Arduino is designed for and marketed towards people who don't know any better. Obviously there are people here who can see ways to improve the development environment, runtime library (and its documentation) and the hardware. (No matter how good it was, that would always be the case.) But these are not the people that Arduino targets.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Worst state in America
Offline Offline
God Member
*****
Karma: 32
Posts: 792
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yea, many seem to hate all oil companies but still buy their gasoline.  smiley-wink

There is little choice other than to bicycle or walk (both of which are impractical in cold weather and/or long distances).
Logged

Gentlemen may prefer Blondes, but Real Men prefer Redheads!

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yea, many seem to hate all oil companies but still buy their gasoline.  smiley-wink

There is little choice other than to bicycle or walk (both of which are impractical in cold weather and/or long distances).
There's always running...  Gets you warm in cold weather, and gets you further distance in a shorter time.

It also gives you heart attacks and knackered knees.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Worst state in America
Offline Offline
God Member
*****
Karma: 32
Posts: 792
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Well now that we are dissing Arduino, allow me to add my gripes!

Yes, very good, but the design is good enough that they are selling tens of thousands. The good points are that it is aimed at the beginner market, the shields are a useful add-on, and it was an excellent decision to use the open-source g++ compiler.

Compare that to other boards where you have to buy their own (dodgy) compilers, or get a cut-down "beginner" version, and put up with an IDE that is so complex it's almost impossible to get a project up quickly.

I'm not saying Arduino is "bad", I just have gripes about the design. The ONLY reason I use Arduino is because of the great GCC support.

The boards, at the very least, should have usable mounting holes. People actually do build REAL projects with Arduino boards and it's ridiculous to either need special plastic standoffs or double sided foam tape to mount the board!

And, the Atmel AVR line certainly isn't the best choice for a microcontroller, but it's good enough for most uses.

I personally prefer the "Motorola" style (von Neumann) CPU architecture. The Harvard / Intel / AVR style architecture is a nightmare to work with. Thankfully, the C libraries shield me from most of that grief...
Logged

Gentlemen may prefer Blondes, but Real Men prefer Redheads!

Pages: 1 [2] 3   Go Up
Jump to: