vote up 7 vote down
star
4

When working with AVR microcontrollers or Arduinos, what is something that if you had known sooner would have saved you a lot of time or frustration?

flag

9 Answers

vote up 6 vote down

I think of loop as being the arduino's substutitue for main in C. So I declared some variables at the top of loop. Bad idea, they get re-initialize each time around the loop. Instead declare as globals before any subroutine. Not a big deal, but took a few minitues to fugure out what was happening.

link|flag
vote up 4 vote down

For me it's the other way around: I wish I knew about Arduino's and AVR's before they tried to teach me electronics in secondary school. Learning Ohms law without ever having seen or used an actual resistor was not a pretty exercise. Back then it would be ideal to have an Arduino around to play around with.

Because of this, I would have like to have known more about basic electronics. Simple questions as: why should I care about current? (because things blow up if you don't) Why should I care about resistors? (same here and other stuff) Why should I care about caps? (all kinds of reasons)

Having the ability to play with micros (and frying them in the process) has tought me most of these things but I wish I had learned them sooner. (Classic chicken and egg problem I guess)

link|flag
vote up 4 vote down

I wish I'd known how much FUN it was :) If I had I would have started playing with this stuff much sooner!

link|flag
vote up 4 vote down

I wish I had known that every math class I would ever take I would use again, and more than once, and I sure as hell wish I had paid a bit more attention.

I wish I had a lot of hands on experience programming and using FPGAs. They are the new wave of embedded system development and I have only basic class experience with them.

I wish I had been taught how to use all of the modules of Microcontrollers in classes before my boss expected me to use them all.

I sure as hell wish that my university's electrical engineering department started design classes before senior year.

link|flag
vote up 4 vote down

I wish i had arduinos and "make things talk" when i was a kid. I would have automated everything!

link|flag
vote up 3 vote down

I have used the Arduino a fair bit and I wish I had known how difficult serial IO was on arbitrary pins. I eventually settled on a 3rd party library but it took weeks to get to that point and even then it was not rock-solid reliable.

link|flag
vote up 3 vote down

I'm with Kortuk. I wish we'd started simple design classes before final year of university, but specifically I wish we'd gotten to use an Arduino board in my classes!

We used a specially configured board designed at University of Wollongong based on an old Motorola chip, all programmed in assembler via a monitoring application. Pain in the arse!

Of course, I look up the course content for digital design now and they're all using Atmel AVR chips. sigh

I also wish I had more time to tinker with 'em, 'cause that's the best way to learn!

link|flag
3 
Yeah, We did the same Motorola work. There is a big shift towards ACVR inside the tinker/educational community at many schools, but I think the PICs from Microchip are a better starting product personally. I think they have a broader range of applications, but I will admit in Low power apps I use MSP430s created by TI. – Kortuk Nov 17 at 9:18
For our third year group project, we built a wireless electrocardiogram rig based on a PIC chip for the data collection and RS-232 reporting to a computer running the host application. The one we used was a great little unit (can't remember spec now, it's been a while) and really gave me a proper appreciation for Micro's in small, complex logic devices. :D – Sketchy Fletchy Nov 19 at 21:18
1 
Sounds like a great project for senior design. I am getting ready to change up how my school teaches PIC. I got some professional development boards and will be teaching students how to handle multiple interfaces. – Kortuk Nov 24 at 7:58
vote up 3 vote down

I wished I'd had a clearer understanding of Fuse bits. I spent half my time early on terrified that I'd brick my mega32. Oh and ditto with regards to serial IO.

link|flag
vote up 3 vote down

The CAN bus communication scheme and CANOpen.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.