Offline
Newbie
Karma: 0
Posts: 1
|
 |
« on: January 16, 2013, 06:54:06 am » |
The subject says everything. What is the difference of arduino uno and pic18F4550? in what ways does arduino uno is better than pic18f4550 microcontroller?
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Faraday Member
Karma: 72
Posts: 2500
|
 |
« Reply #1 on: January 16, 2013, 07:58:44 am » |
The subject says everything. What is the difference of arduino uno and pic18F4550? in what ways does arduino uno is better than pic18f4550 microcontroller?
The Force is stronger in Arduinos.
|
|
|
|
|
Logged
|
No, I don't answer questions sent in private messages...
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 75
Posts: 6970
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #2 on: January 16, 2013, 08:25:52 am » |
Well for one thing the PIC is a chip, the Uno is a complete circuit board with power supply, IO headers etc.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
Edison Member
Karma: 38
Posts: 1028
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #3 on: January 16, 2013, 09:47:31 am » |
C++ and AVR-GCC.
There is free a C compiler for PIC18 but it doesn't do any sort of optimisation and it is very strict in how it likes you to write code - if you want a compiler which optimises the code you have to pay Microchip many hundreds of pounds. The one thing I have found when working with PICs is that there software is so intermittent in whether or not it works.
The AVR also has better (well more useful) hardware timers (PWM, counters, interrupts etc).
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17035
Available for Design & Build services
|
 |
« Reply #4 on: January 16, 2013, 10:15:43 am » |
And you get this friendly community as a resource to help you out.
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
God Member
Karma: 23
Posts: 704
|
 |
« Reply #5 on: January 16, 2013, 10:20:59 am » |
And many many library's where others have done all the hard work for you for free
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
|
 |
« Reply #6 on: January 16, 2013, 10:39:57 am » |
The AVR also has better (well more useful) hardware timers (PWM, counters, interrupts etc). Hardware wise the two chips aren't that different. The _real_ difference is having GCC on one side vs one-C-dialect-per-(costly)-compiler on the other. IIRC there's an arduino-like board which uses PIC mcus. Don't know what development environment / compiler they require though.
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 80
Posts: 5513
Strongly opinionated, but not official!
|
 |
« Reply #7 on: January 16, 2013, 12:20:58 pm » |
There's a board called the "USB Bit-whacker" that is very close to the Arduino in concept. Plugs into USB and has a bootloader for downloading code.
Arduino has the high-quality C/C++ compiler, and the simplified IDE, and targets a different audience.
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 91
Posts: 2233
|
 |
« Reply #8 on: January 16, 2013, 12:44:02 pm » |
I wonder - does the Arduino/avr compiler do optimizations?
Also, I've used Microchip free MPLAB and the free C compiler for the PIC24 chips, and MPLAB is much more difficult to get setup properly than the Arduino IDE, and sometimes you go around in circles trying to figure out certain things, like how the darn directories and path connections work. Much higher learning curve.
Also, with MPLAB you usually need a chip programmer like the PICKIT2, whereas Arduinos all come pre-programmed with bootloaders so you don't need a programmer.
Also, with Arduino, you have many functions, like I2C, SPI, Serial, on and on, already written, whereas you have to do all that stuff yourself for PICs. There are some libraries for the PICs around, but I found them to be almost inscrutable to try and use.
To put it into historical perspective, Arduinos are as easy to use as the original Parallax Basic Stamps, whereas using PICs is more like buying the raw chips Parallax used to make the Stamps, and you pretty much have to do everything yourself.
|
|
|
|
|
Logged
|
Something different - Kitchen-Sink Arduino-compatible boards
|
|
|
|
Belgium
Offline
Full Member
Karma: 1
Posts: 231
|
 |
« Reply #9 on: January 16, 2013, 12:45:32 pm » |
I started playing with micro controllers about one year ago. I originally planned to buy a couple of pic chips. Until I took a good look at the software/libraries available and compared it to Arduino. The learning curve for pics is a lot steeper. I'm sticking to Arduino/AVR, if you outgrow the Arduino IDE you can always use your favourite editor and use gcc-avr to compile your programs. This very forum also played a big role. I know there is always someone willing to help when I get stuck. I have learned a lot just by reading the programming section.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 282
Posts: 15443
Measurement changes behavior
|
 |
« Reply #10 on: January 16, 2013, 12:50:02 pm » |
I wonder - does the Arduino/avr compiler do optimizations? The arduino platform just uses an AVR adapted GNU GCC open source compiler which is an independent open souce group/project, and yes it offers several levels of optimization. http://gcc.gnu.org/Lefty
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 91
Posts: 2233
|
 |
« Reply #11 on: January 16, 2013, 01:01:13 pm » |
I shouldn't think GCC itself would have many optimizations, as those are usually added on for the specific chip architectures the compiler is running on. So maybe the AVR GCC people added them on.
I believe the Microchip C compilers are also based upon GCC, so they give away the non-optimized versions, but they charge a lot for the versions they optimized in house for their own chips. But this may all be scuttle-butt too.
All in all, however, for most applications, I doubt that most people really need to worry about this.
|
|
|
|
|
Logged
|
Something different - Kitchen-Sink Arduino-compatible boards
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 91
Posts: 2233
|
 |
« Reply #12 on: January 16, 2013, 01:05:44 pm » |
I'm sticking to Arduino/AVR, if you outgrow the Arduino IDE you can always use your favourite editor and use gcc-avr to compile your programs. The other thing about Arduino is, there is an easy pathway when you need more processing power, with boards like the DUE and misc 3rd party boards that use 32-bit processors, but which still use the Arduino environment.
|
|
|
|
|
Logged
|
Something different - Kitchen-Sink Arduino-compatible boards
|
|
|
|
Offline
Edison Member
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
|
 |
« Reply #13 on: January 16, 2013, 01:28:34 pm » |
I believe the Microchip C compilers are also based upon GCC, This is interesting. Do you have any links ? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Faraday Member
Karma: 72
Posts: 2500
|
 |
« Reply #14 on: January 16, 2013, 01:39:10 pm » |
I wonder - does the Arduino/avr compiler do optimizations?
Yes. (Take a look at some disassembled output if you don't believe me...)
|
|
|
|
|
Logged
|
No, I don't answer questions sent in private messages...
|
|
|
|
|