Author Topic: Arduino woe's  (Read 61782 times)

0 Members and 1 Guest are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 42488
  • Country: au
    • EEVblog
Re: Arduino woe's
« Reply #100 on: February 03, 2012, 06:30:24 am »
- 16 MHz crystal and 2 22pF capacitors as clock source.

8MHz if using a 3.3V rail.

Dave.
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2053
  • Country: us
Re: Arduino woe's
« Reply #101 on: February 03, 2012, 06:46:29 pm »
- 16 MHz crystal and 2 22pF capacitors as clock source.

8MHz if using a 3.3V rail.

Dave.

And at 8MHz it is programmed as a LilyPad.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 42488
  • Country: au
    • EEVblog
Re: Arduino woe's
« Reply #102 on: February 03, 2012, 11:14:16 pm »
And at 8MHz it is programmed as a LilyPad.

Or an Arduino Pro like I am using. There are options for 3.3V 8MHz or 5V 16MHz

Dave.
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2485
  • Country: gr
Re: Arduino woe's
« Reply #103 on: February 03, 2012, 11:30:47 pm »
In what stage is the code now?

Alexander.
Become a realist, stay a dreamer.

 

Offline kodon

  • Contributor
  • Posts: 18
  • Country: fi
Re: Arduino woe's
« Reply #104 on: February 06, 2012, 10:44:22 pm »
Heh. Sounds familiar. I've had similar problems with burning the bootloaders with 3 different computers. Sometimes it worked out with AVR studio 4, sometimes AVR studio 5. I was also using the AVRISP mkII. The last time I had problems with this, I decided to update the firmware in the programmer (I've been told not to!). I have no clue if it did the trick, but I managed to get it work.

So my conclusion is that the AVRISP mkII and everything related to it is a heap of crap. period.

The arduino in the other hand, is a good way to start. I am not an experienced embedded programmer (or programmer at all!) but still I managed to do nice things with it. For example SD memory card, Real Time Clock, OneWire sensors, LCD displays, ZigBee and other radios, interrupts, power saving etc etc.

So the bottom line is that if I buy an Atmel branded chips, programmer, use their tools etc etc I would very much indeed expect them to work... But no. Since I'm just a beginner with embedded stuff, I'm having second toughts moving to use TI's MCU's. Still the Arduino is pretty good thing to begin with. I'm currently using homemade FTDI USB board to program my project. It works with the Arduino IDE as Arduino Duemilanove.

So the Arduino part has been working out nicely to me. Only drawback I had was the original bootloader which did not support sleeping the MCU. It has been fixed now, I hear. Other than that, I'm pretty happy.

Just to know that you're not struggling with these things alone.

-Kodon
 

Offline gjh

  • Contributor
  • Posts: 34
Re: Arduino woe's
« Reply #105 on: April 11, 2012, 03:37:06 am »
Wow I just went through this pain just trying to get my first Arduino going!   I gave up in the end!   Im happy to find out Im not the only one experiencing this and shocked by the reported issues in v1.0 of the Arduino IDE.  I'll be sticking to more conventional paths.
 

Offline jpelczar

  • Contributor
  • Posts: 36
  • Country: kr
Re: Arduino woe's
« Reply #106 on: April 11, 2012, 04:36:19 pm »
- If you don't have an ISP programmer, get a USBTinyISP. Probably the most compatible one out there and only $20. Note that another Arduino board can be used as an ISP programmer, but it sucks (25% reliable?).

If one still has got paralell port on the mainboard, they could build ghetto ISP programmer (http://gopchandani.wordpress.com/2007/01/18/the-atmega32-programmer/ or http://www.lancos.com/prog.html) just to burn the Arduino bootloader.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #107 on: April 11, 2012, 06:37:51 pm »
I was also using the AVRISP mkII. The last time I had problems with this, I decided to update the firmware in the programmer (I've been told not to!). I have no clue if it did the trick, but I managed to get it work.
-snip- So my conclusion is that the AVRISP mkII and everything related to it is a heap of crap. period.

funny.. my experience is the opposite... that is , if you have a REAL AVRISP MKII and not a cheap wing-wang-pong clone !
I had nothing but trouble with those flaky things like USBASP that emulate USB ( they are not even usb compliant , neither on timing nor signal levels )

I bought the real AVRISP Mk II from atmel ( thru digikey) , installed avrstudo 4 and use the STK500 programmer module. If i plug the connector wrong then the programmer tells me. It doesn't burn up , it supports mulitple i/o voltage ( programmable )  and it lets you talk to all of the atmels.


I also bought a fing-tai-chong clone from fleabay ... nothing but trouble.. i took both of them apart ( i'll post a teardown ). the original one has waaaaay more components and chips in it than the clone. the clone is essentially an ASP in the same box.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4676
  • Country: us
Re: Arduino woe's
« Reply #108 on: April 12, 2012, 01:22:28 am »
>> I bought the real AVRISP Mk II from atmel, installed avrstudo 4 and use the STK500 programmer module.
Have you used it with AVRDude?  AVRStudio 5?  AVRStudio 6?   IIRC, one of Dave's original difficulties was that the firmware on the AVRISP kept being out-of-sync with the programming tool he was using...  (Yeah, you could say "just use all Atmel tools, all the time", but then why are you posting in an Arduino thread?)
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #109 on: April 12, 2012, 03:04:45 am »
used it with AVR studio 4 and AVr studio5 without problems. I don't get why anyone wants to muck about with stuff like avrdude and all those other homebrew pieces of junk. They are all half implementtions and based on half-arsed reverse engineering. And they are constantly behind the curve. I like to focus on what i am doing. Why spend time debugging your debugging tools ? why make screwdrivers if you can buy them ? i have something i want to put together... i'm not going to make my own screwdriver.

Everything has to be cheap cheap cheap these days ... you get what you pay for. if 49$ for the real tool is too much : change hobbies. Making flower-arrangements is very popular i hear.

i posted here in reply of the complaints about the AVRisp-mkII. nothing to do with arduino.
Once you flashed the cpu with arduino's bootcode you simply replug it and then use the arduino code to update.

I am also working on some 'arduino-compatible' system like dave's power supply. It is neither arduino form factor or hardware expandble. Fixed purpose board with dedicated peripherals. The master code is compiled AVR code. (which i release also) but , the wiring of my board is done in such a way that you can flash the arduino bootloader and then upload your own sketch . So if you don't want to spend money on the compiler then you flash arduino bootloader and you can use that environment to mod it to your hearts content.

I just finished debugging the firmware. works perfectly fine. i also flashed arduino bootloader to try. works fine either way.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline kodon

  • Contributor
  • Posts: 18
  • Country: fi
Re: Arduino woe's
« Reply #110 on: April 12, 2012, 05:00:34 pm »
that is , if you have a REAL AVRISP MKII and not a cheap wing-wang-pong clone !

Quote
if I buy an Atmel branded chips, programmer, use their tools etc

Everything happened to be genuine Atmel branded devices. And that is why I was so pissed off about it. I was trying to burn a bootloader to the chip, but it just refused to work. What a pain in the ass.
 

Offline electrode

  • Regular Contributor
  • *
  • Posts: 141
  • Country: au
Re: Arduino woe's
« Reply #111 on: April 12, 2012, 10:25:28 pm »
I don't get why anyone wants to muck about with stuff like avrdude and all those other homebrew pieces of junk.

Perhaps because avrdude has worked flawlessly for those people? What would you suggest mac/linux people use instead?
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #112 on: April 12, 2012, 10:28:05 pm »
Perhaps because avrdude has worked flawlessly for those people? What would you suggest mac/linux people use instead?
Windows perhaps ? with the real tools ? If you are so narrow minded you only have one flavor OS in your hobbylab ...
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline electrode

  • Regular Contributor
  • *
  • Posts: 141
  • Country: au
Re: Arduino woe's
« Reply #113 on: April 12, 2012, 10:29:54 pm »
I hope you see the irony in that statement...
 

Offline bilko

  • Frequent Contributor
  • **
  • Posts: 405
  • Country: 00
Re: Arduino woe's
« Reply #114 on: April 12, 2012, 10:33:07 pm »

Everything has to be cheap cheap cheap these days ... you get what you pay for. if 49$ for the

Most Linux users have the 'Real Kit' too, they also have Linux tools as well. One screwdriver does not fit all screws !!
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #115 on: April 12, 2012, 11:19:17 pm »
I hope you see the irony in that statement...

Yes ! Pun was intended :P
i don't take myself too seriously.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4676
  • Country: us
Re: Arduino woe's
« Reply #116 on: April 13, 2012, 04:11:25 am »
On the one hand, if your tools only run on windows, you should just buy a windows system and deal (far less than $1000.)  On the other hand, it's really annoying to be forced to use an environment that you just don't like.  I picked an editor 30 years ago on the basis that it had versions running on all six of the major operating systems I was using or expected to use, rather than separately picking the "best" editor for each operating system.  That's a smaller issue now that things are GUI'ed, but it's still one of my major annoyances with Arduino; that it doesn't support the familiar keystroke commands.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #117 on: April 13, 2012, 04:34:38 am »
Exactly! Finally someone that understands what i'm saying.
It doesn't do you any good to mope and complain that you car won't run on diesel if its got a petrol engine. You can complain all you want to the manufacturer, they don't listen. You either live with it, buy a different car or you buy a second car that does have a petrol engine.

If atmel only release their tools on windows, so be it. There's tool that are linux only , solaris only or mac only. I could gripe all i want that final cut pro doesn't exist on pc, it is not going to change.
Pc hardware is cheap , vm managers are free, windows is 99$ and linix (picking you distro is going to be the hardest choice here..) is free too. Multiboot you machine and off you go. You can even do it on a mac if you want.

The operating system is only a layer that let's you run applications that let you do the things you want to.
Why throw up additional roadblocks by using something that doesn't come from the device manufacturer. You'll have plenty of troubleshooting to do on the design itself, no need to inject more unknowns.

And stances like 'i won't use windows because it is against my philisophy'... That's just daft. Use the right tool in the right place. You are doing yourself a disservice.

That's my point of view.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline electrode

  • Regular Contributor
  • *
  • Posts: 141
  • Country: au
Re: Arduino woe's
« Reply #118 on: April 13, 2012, 04:38:38 am »
That's your point of view based on your premise that avrdude and friends are junk. I rejected your premise, not the statements you just followed with about using another OS if necessary.

In other words, I'm not disagreeing that you should get a diesel car if you want to use diesel. Rather, I am asserting that petrol engines aren't junk.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #119 on: April 13, 2012, 05:14:15 am »
That's your point of view based on your premise that avrdude and friends are junk. I rejected your premise, not the statements you just followed with about using another OS if necessary.

In other words, I'm not disagreeing that you should get a diesel car if you want to use diesel. Rather, I am asserting that petrol engines aren't junk.
I call avrdude and friends junk because they are NOT the tool that is released ATMEL. It is throwing unknowns and uncertainties in the works.
When debugging a design, the last thing you need is unreliable tools!

Car analogy : I bought a community designed ferrari clone.. It is made from real ferrari spareparts (the dongle) but since we couldn't get the specs of the engine (the pc software and api) we sort of tried building it ourselves... From parts that belong to an old peugeot 305 ... Oh, and we had to mod it so the steering weel sits in the boot ( emulated usb on a device that does not have a usb controller) It fit better that way ( our engine design forced us to install it where the driver seat would normally be.. )

It's a lot cheaper than having to buy the real ferrari, but you'll spend 10 years assembling it and it will stall every 10 miles of driving after which you will have to completely rebuild the engine and move the steering wheel to a different position.. That'll cost you another 3 years every time.

We complained to ferrari that it's really hard to drive this thing , and why can't they just release the specs of that engine... They are such abunch of monopolistic capitalistic eggheads.. Mope, whine...

Raises the question : why do you still want a ferrari...

Meanwhile, the real ferrari driver is enjoying himself driving to a party... Which was his goal anyway.

Simply use the things as they are made and intended to be used. Don't throw up roadblocks. No need to go look for trouble. Trouble is waaay ahead of you in that race...
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Arduino woe's
« Reply #120 on: April 13, 2012, 05:32:58 am »
The back-end tool chain of AVR Studio that does the real work--that's all open source.  The AVR C library, open source.  Largely developed and supported by someone other than the vendor.  So to imply that the vendor's tools are the end-all, be-all seems to gloss over the fact that all the vendor is really doing is providing a front end to these open source tools.

Don't get me wrong, IDEs are nice.  Hell, kids today can't seem to function without them.  However, I have a problem when people seem to think Atmel's products are superior when said product is pretty much just a front-end to the same tools everyone else is using!

LOL.  I had a good laugh when I noticed that Atmel included an optional (beta) extension for AVR Studio 5 to support C++.

Us Linux folks have been using C++ on AVRs for years.  Years.  Arduino's too.  By the way: you're welcome for all the testing we've done for you Windows folks.  While you were running version X of the toolchain we were running version Y.

So far as AVRDude goes, I've never had any problems with it.  I definitely wouldn't call it 'junk.'  It actually seems extremely well engineered.

I do have to agree about staying with the vendor's hardware.  Especially if you're just going to save "chump change" by getting a 3rd party tool.

Edited to add...   ;D

http://youtu.be/oYZD1sQBdlE
« Last Edit: April 13, 2012, 05:41:50 am by TerminalJack505 »
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4676
  • Country: us
Re: Arduino woe's
« Reply #121 on: April 13, 2012, 07:59:34 am »
>> they don't listen.
Actually, vendors get judged on how well they DO listen.  I was astounded (and pleasantly surprised) that Microchip's MPLAB X is cross-platform.  And TI's CCS is now based on Eclipse (even though CCS itself isn't multi-platform, at least it uses an IDE/GUI that is available on multiple platforms.)  That EAGLE was not only made to run on Macs, but implemented a Mac-native GUI.   Atmel's choice to have a new AVR Studio that was so dramatically single-platform was like a slap in the face.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: Arduino woe's
« Reply #122 on: April 13, 2012, 03:23:03 pm »
Actually, vendors get judged on how well they DO listen.
...
Atmel's choice to have a new AVR Studio that was so dramatically single-platform was like a slap in the face.

Especially because for a year or two before the release they hinted that great cross-platform tools were about to come.

And you are absolutely right, manufacturers are judged by how well they do listen. And how honest they communicate, i.e. if they can be trusted or not.

Funny enough, Atmel has recently instantiated some kind of ban on criticizing Atmel developers and developments on their community site AVRfreaks. Instead of listening to feedback they decided to stick their fingers in their ears and try to steamroll their customers.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 9056
  • Country: us
    • SiliconValleyGarage
Re: Arduino woe's
« Reply #123 on: April 13, 2012, 04:18:32 pm »
As for the vendors listening or not listening : that heavily depends on whom they cater to : the small developer crowd , or the 'large' developer crowd.
Small developer crowd : lots of customers , low volume. Large developer crowd : few customers, gigantic volume.

Microchip may be bending over backwards because there's plenty of new stuff out to eat their lunch..  You can get Cortex M3 based chip for the price of a lobotomized PIC16 ... they clearly cater to the small developer crowd.

The problem is user support ... it becomes a massive burden to support all your users. sometimes you are better off with few of them , have one platform and support that one well , as opposed to doing 25 platforms and all of them being in a fuzzy state.

Anyway. i don't know what mindset they are in and i don't care. I have work to do. The 'official tools' wil cause the least trouble. i don't want to fidget around with 'homebrew' tools. Give me an ICE and an IDE where i can trace code execution, set breakpoints / watchpoints and snoop around in the memory. Throw in a code profiler and i'm a pig in mud. A compiler is only the base. The debugging environment is the important bit.

Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->