Canada
Offline
Sr. Member
Karma: 4
Posts: 396
|
 |
« Reply #30 on: November 28, 2012, 07:17:28 am » |
But I did not see a relabel software simulator for Arduino that Newbie can practice before buy the hardware
Have you typed "Arduino simulator" into google? There must be at least a half dozen free Arduino simulators out there.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Faraday Member
Karma: 72
Posts: 2501
|
 |
« Reply #31 on: November 28, 2012, 07:54:09 am » |
Digi-key sends me Christmas cards now Oh, you let them off light! You should see the 3" high catalogs I get! Oh, no...! I hope I'm not on their list after they shipped those free samples to me.
|
|
|
|
|
Logged
|
No, I don't answer questions sent in private messages...
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #32 on: November 28, 2012, 11:05:29 am » |
Dear cyclegadget, Thanks for reply I downloaded Simulator for Arduino v0.98 and installed. Then I downloaded Arduino IDE and wrote the following program void setup (){ pinMode (13, OUTPUT); } void loop(){ digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); }
Please advice how may I load the compiled file (HEX) to simulator. where the HEX file is generated Please advice Thanks in advance
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #33 on: November 28, 2012, 11:18:59 am » |
Please advice how may I load the compiled file (HEX) to simulator. I don't think you do. You load your sketch into the simulator's IDE, and run it from there.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #34 on: November 29, 2012, 04:35:45 am » |
Dear dxw00d , Thanks for reply Could you please Let me know the different between sketch and HEX file Thanks in advance
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #35 on: November 29, 2012, 05:51:49 am » |
Dear All, 1.I wrote the program as attached picture and compiled well
2.sketch was generated as attached picture 3.Then I uploaded sketch file to Arduino simulator 4 The error message was generated as attached picture Please advice
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #36 on: November 29, 2012, 05:53:33 am » |
Could you please Let me know the different between sketch and HEX file A sketch is your source code. The hex file is the compiled version of your sketch, ie translated from C/C++ to machine code for the AVR processor.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #37 on: November 29, 2012, 12:05:44 pm » |
Can I have the solution for my last question
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #38 on: November 29, 2012, 12:16:03 pm » |
That's not an Arduino error message.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Dallas, TX USA
Offline
Edison Member
Karma: 27
Posts: 1657
|
 |
« Reply #39 on: November 29, 2012, 01:23:52 pm » |
I think much of this discussion suffers from the lack of terms for certain items. I've brought this up a few times in the past. For example what does "Arduino" mean? While accurate, people may get a strange look on their face when you say something like: I used Arduino to program my Arduino with a program written in Arduino.
And that is the problem. There are no separate terms to refer to the individual components such as the IDE, the tools, the board, the bootloader, the chip, the "language". Because of this, people tend to throw around the term "Arduino" and yet it can mean different things to different people.
To me, this makes things very difficult to have a discussion like the one occurring in this thread.
Much of the ease of use with respect to "Arduino" has very little to do with the Atmels AVR or AVR architecture. It is the GUI tools and libraries, documentation, examples etc, and most of that is in no way tied to AVR. In a sense it is the easy to use eco system around a pre-built board, rather than any sort of specific chip or board that makes "Arduino" a good fit for many people, including people with no embedded programming experience.
Because the s/w eco system is open source and in no way tied to AVR, it has been ported and is now available for use on non AVR based processors. ARM, and pic32 based boards now both have "Arduino" IDEs and "Arduino" core libraries available for them.
So to me the Arduino vs non Arduino argument doesn't have anything to do with AVR but rather whether or not to use the "Arduino" eco system or not. And the "Arduino" eco system includes, boards, shields, s/w libraries, an IDE to build the code and documentation with support forums to tie it all together.
More advanced users can selectively pick and choose which of the various components of that eco system to use and not have to use them all.
I do think that for advanced users with lots of embedded development experience, there can be many issues and frustrations with the IDE and the build methodology, but then the Arduino s/w is not really aimed at them.
I just wish there were some established terms to refer to the specific components within the eco system to make discussions like this easier, as to me right now there are just too many things all called "Arduino".
--- bill
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #40 on: November 29, 2012, 01:40:50 pm » |
All that is very well argued and there is very little with which I would disagree, but the fact remains that an nth party simulator is producing an error message. The OP would be better off asking whoever supports that simulator what the message means.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #41 on: November 29, 2012, 05:11:11 pm » |
Advantage of Arduino Arduino's biggest advantage is that it allows a user to code without looking at the datasheet; Arduino's biggest disadvantage is that it allows a user to code without looking at the datasheet.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14101
Lua rocks!
|
 |
« Reply #42 on: November 29, 2012, 05:17:53 pm » |
Have you been reading Oscar Wilde, dhenry? The only thing worse than being talked about is not being talked about.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 282
Posts: 15443
Measurement changes behavior
|
 |
« Reply #43 on: November 29, 2012, 05:49:35 pm » |
Advantage of Arduino Arduino's biggest advantage is that it allows a user to code without looking at the datasheet; Which is a key to allow newcomers to programming and electronics to be productive much quicker on actually accomplishing something with their Arduino projects. They don't need a datasheet to master making some leds blink as they wish, and to many that is a goal worth reaching before having to mastering reading datasheet. Arduino's biggest disadvantage is that it allows a user to code without looking at the datasheet. As newcomer's project become more complex and ambitious they will come to understand the need to learn about datasheets and they will be more motivated because they have an immediate need to.Why make the entry cost in time and learning effort so high as to have many give up in frustration? The Arduino is about enabling ordinary people to do stuff quickly and easily and build upon early successes.
|
|
|
|
« Last Edit: November 29, 2012, 05:52:37 pm by retrolefty »
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14101
Lua rocks!
|
 |
« Reply #44 on: November 29, 2012, 06:20:56 pm » |
Yes, I got started without reading the datasheet. Then when I wanted to do something complex, I read it. So it isn't a huge worry.
|
|
|
|
|
Logged
|
|
|
|
|
|