Pretty Confused...

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Pretty Confused...

Postby rob drizzle » Wed Feb 01, 2012 9:26 pm

It all started with me trying to make some temperature sensor nodes that have a low power draw. I'm making this a project of firsts. First time designing a PCB, first time using nRF24 radios, first time building a project around a ATMEGA328P rather than a Arduino, first time trying to run a MCU on low power and at a slow speed, first time writing bootloaders with a ISP, etc.

After reading about some people's projects and whatnot, I gather that I need to do. But much of the information is spotty or is written in such a way that I feel like I'm only getting half of the story.

Anyway, I have a lot of questions and am very confused. Almost all of it comes from the ISP, bootloading, etc portion of it. Here are just some of my questions or confusions:

1) I'm worried about installing WinAVR on my Win 7 64bit machine (I have read that it messes the Windows paths), has this been resolved?
2) I didn't see the ATMEGA328P in the partno list, I'm assuming that you can't just select the 168? Am I missing something? (http://www.ladyada.net/learn/avr/avrdude.html)
3) Running the MCU at 8MHz sounds like it's all set in the fuses (and an 8Mhz crystal :wink: ). After reading what was in the fuses info page linked to AVR Tutorial, I think I got a handle on the concept, however, it seems like there are a lot of people messing with the boards.txt and programmers.txt files. I have no idea what these files do. It appears that the boards.txt file either tells the IDE what is supposed to be set in the chip or the IDE is setting the chip using the info in the boards.txt which would by-pass the need for an ISP no?.
4) Could it be as easy as burning a bootloader for a 3.3v 8MHz Pro Mini on to my chips?


Any help would be great.

Thanks
rob drizzle
 
Posts: 101
Joined: Wed May 04, 2011 5:14 pm

Re: Pretty Confused...

Postby philba » Sun Feb 05, 2012 10:39 am

I installed winavr about 5 days ago on my win7 machine. So far, it seems to still run a browser... (yes, a little sarcasm). You can see the old path in the install log if you need to restore it.

what programmer did you select? -c arduino supports m328p

I've not done it but burning a bootloader should all you need to do.
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 5:59 pm

Re: Pretty Confused...

Postby uhe » Mon Feb 06, 2012 4:40 pm

If you upload your code via ISP you don't need a bootloader.
I've never seen any boards.txt or programmers.txt file, could you give an example of one of those?
"I have not failed. I've just found 10,000 ways that won't work." - Thomas Edison
uhe
 
Posts: 178
Joined: Mon Sep 03, 2007 3:50 pm
Location: metric world

Re: Pretty Confused...

Postby westfw » Mon Feb 06, 2012 8:49 pm

If you already have Arduino installed, you don't really need to install WINAVR. Arduino already includes a copy of WINAVR, and you can just point your paths to point at it. That way you're sure to get a version that supports the 328p and contains some patches, and has the same version of stuff you're used to from Arduino. Nor does the Arduino install muck with paths or registry settings or anything.

You'd want \arduino\hardware\tools\avr\bin (avr-gcc) and \arduino\hardware\tools\avr\tools\utils\bin (a collection of unix-like tools (make, a shell, etc.)
User avatar
westfw
 
Posts: 1321
Joined: Fri Apr 27, 2007 12:01 pm
Location: SF Bay area


Return to Microcontrollers

Who is online

Users browsing this forum: No registered users and 7 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]
cron