Pages: 1 [2] 3 4 5   Go Down
Author Topic: Advantage of Arduino  (Read 6727 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Please rewrite your example such that it will blink any digital output pin on the chip (any port, any bit) with a variable delay specified in milliseconds (accurate to +/- 1ms), and THEN compare to the Arduino Blink example...
...preferably setting the delay using a connected potentiometer, and reporting the delay time in decimal to the serial port.
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.

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The other thing is...
I give you three "virgin" computers; one with MacOSX, one with Linux, and one with windows.
Get a "blink" example written, compiled, and loaded onto a microcontroller, using each one.
This is actually not as bad as it used to be for PIC, since MPLAB-X now runs on MacOSX and Linux, but I'd still bet it would go faster using Arduino.

This is actually one of the main strengths of the Arduino hardware and software platform. There is reasonable parity across a wide variety of user environments.  This intersects well with the project goals:

Quote
Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.
Logged

I yield() for co-routines.

Seattle, WA
Offline Offline
God Member
*****
Karma: 8
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The other thing is...
I give you three "virgin" computers; one with MacOSX, one with Linux, and one with windows.
Get a "blink" example written, compiled, and loaded onto a microcontroller, using each one.
This is actually not as bad as it used to be for PIC, since MPLAB-X now runs on MacOSX and Linux, but I'd still bet it would go faster using Arduino.

Actually, I'd extend this further.  I'll give these three virgin computers to someone who has never written a line of code in his/her life.  Then we know for SURE that it'll happen weeks, if not months, faster with Arduino.
Logged


Anchorage, AK
Offline Offline
Edison Member
*
Karma: 37
Posts: 1147
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Give it to someone who knows C or assembly and your definition of better may shift.  The IDE confuses me more than it helps, as there isn't a good reference on how things are done behind the scenes.  I always wonder, "is this part of the process glue, or am I expected to handle it myself?"

This was also a challenge migrating Arduino code into a real IDE.  How are the module .cpp files handled?  Is it just a parser that reads any includes in the .ino file, and automatically compiles all the .cpp files in the same directory and below?

I would've loved a section of documentation like:  "If you have experience with C/C++ development and toolchains, here are things you need to know."  It may seem silly, but when I started, I didn't understand the tabs at all.  Now I know all my code is just concatenated and compiled as one big unit.  I first tried opening a .c file that included a .h file, and things broke horribly.  It took some trial and error to find out the designers had made things "easier".

It is a relatively friendly environment for beginners, however.. I don't think it does anyone any favors if they intend to move up and beyond the IDE.  (At least you can still use generic AVR libc from within the Arduino environment, though.  That's nice.)
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 439
Posts: 23784
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

" The IDE confuses me more than it helps, as there isn't a good reference on how things are done behind the scenes."

I found the IDE pretty easy to use - writing code just seemed like writing fancier BASIC code to me. Once I get the ;s and { }s to line up, and had looked at lots of examples, it started going pretty smooth. Not having to deal with behind the scenes stuff until I was ready to use another uC was not a hindrance for me coming from a hardware designer background.

Of course, if one were to look at some of my initial requests for help in the old forum,  a different opinion might be drawn smiley-wink
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.

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1023
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino is a ready to use prototyping environment that has a good (large?) collection of proven libraries and a large user base operating in an open environment and obtainable at a very reasonable price. The programming IDE is readily adaptable to other devices in teh AVR family (I have added support for the ATtiny2313 and the ATMega1284P). It has a FREE set of tools that has a not-to-steep learning curve and a variety of examples to help get you up to speed. The Arduino comes in a form factor that is very easy to prototype and for which there are a variety of products available to help you to use it in ways that you decide. And most of these devices are opensourced and rather inexpensive. Other than the basic investment (I paid $30US) it has a very low cost of ownership. (unless you buy a handfull of chips, the supporting resonators/crystals, capacitors, resistors, reglators, Max232's, etc)

It is a nice, small, easy to use product that gives excellent results.
Logged

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

Quote
there isn't a good reference on how things are done behind the scenes.
http://arduino.cc/en/Hacking/BuildProcess ?
And of course there is 'read the source'...
Logged

Offline Offline
Edison Member
*
Karma: 4
Posts: 1728
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Im one of those noobs who never got past downloading all the software, learning how to use it, learning c and how to compile and make it with all the parts and files and finally upload to blink an led
when I saw arduino I was writing my first code for an 8x8 matrix before I even had the arduino come in the mail! Now after the fact its been much easier to delve behind the scenes and see how all it works
Logged

Anchorage, AK
Offline Offline
Edison Member
*
Karma: 37
Posts: 1147
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
there isn't a good reference on how things are done behind the scenes.
http://arduino.cc/en/Hacking/BuildProcess ?

Uhm, er... uh... besides that one, of course...  smiley-sweat  mmmm... humble pie....

Quote
Other than the basic investment (I paid $30US) it has a very low cost of ownership.

HA!  Yep, sure it does.  Just like crack.  smiley-lol

Quote
(unless you buy a handfull of chips, the supporting resonators/crystals, capacitors, resistors, reglators, Max232's, etc)

There it is!  Digi-key sends me Christmas cards now.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 439
Posts: 23784
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

Quote
Digi-key sends me Christmas cards now
Oh, you let them off light!  You should see the 3" high catalogs I get!
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.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dave Jones had a funny episode about that:


http://www.eevblog.com/2011/02/20/eevblog-146-digikey-postage-fail/
Logged

Canada
Offline Offline
God Member
*****
Karma: 7
Posts: 583
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

duinopad (OP) seems like a successful troll.

While Arduino (and I mean the software side of things) is great for various reasons (fairly simple, the right price, fairly powerful, hackable), it's still not everything to everyone.  There are simpler to learn approaches and there are approaches that can take you much further.  However, one could spend their entire MCU 'career' working in the Arduino world.
Logged

Facts just don't care if you ignore them.

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 4020
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
there isn't a good reference on how things are done behind the scenes.
http://arduino.cc/en/Hacking/BuildProcess ?
And of course there is 'read the source'...

Occasionally I have found myself here:
http://www.nongnu.org/avr-libc/user-manual/index.html

Logged

Examples can be found in your IDE.

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

Dear All,
Thank you so much for all for the reply
I am sorry for got long delay come back to this tropic. Please accept my apologizes any inconvenience case

But I did not see a relabel software simulator for Arduino that Newbie can practice before buy the hardware   
Please advice
Thank in advance
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 118
Posts: 4554
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear All
I am new for arduino
I would like to know, What is the advantage Arduino than AVR.if both use same chips

Seriously?

Arduino has voltage regulators, a USB connection, connectors for wires.... that's important if you don't know electronics or don't want to solder AVR chips.


Logged

No, I don't answer questions sent in private messages...

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