Show Posts
|
|
Pages: [1] 2 3 ... 35
|
|
12
|
Using Arduino / Microcontrollers / Leonardo as ISP
|
on: January 04, 2013, 05:45:46 pm
|
|
Hi all, I've been struggling to get my new leonardo to work as an ISP programmer. But finally found out what I was doing wrong.
1. The ICSP pins are not broken out to digital pins - Use the 6 pin header - mosi->mosi, sck->sck etc 2.1 Need to modify the Arduino as ISP sketch - find #define RESET SS, and replace SS with 10 (The reset from the TARGET connects here) 2.2 I've saved the sketch as LeonardoISP - in the Examples Directory - Easy to find (Also works with the UNO) 3. modify the programmers.txt file (its in the arduino folder-hardware-arduino, include :
leo.name=Leonardo as ISP leo.communication=serial leo.protocol=arduino leo.speed=19200
at the end of the file
Upload the Arduino as ISP sketch to the leonardo Load/Type your sketch select the target chip type Click 'Upload Using Programmer' or 'Burn Bootloader'
Hope this helps.
Edited to update Info.
|
|
|
|
|
13
|
Using Arduino / Project Guidance / Re: Single shot
|
on: January 03, 2013, 08:00:54 am
|
|
Follow this logic : if I read high - set (triggered=TRUE) if I read low while triggered=TRUE set (triggered=FALSE) if triggered=HIGH and done=FALSE - DO SOMETHING,then set done=TRUE start again
Hope this helps
|
|
|
|
|
14
|
Using Arduino / Microcontrollers / Re: Just got a new Mega 2560 - full of hope, but fail :(
|
on: January 03, 2013, 07:50:55 am
|
|
I assume you have tried a loopback test? if not, try that first. OK - try this : (Make sure you have the correct board & com port selected) & make sure your board is not laying on top of something metal (I've been caught by this one)
Press upload on the ide when the sketch size comes up, tap the reset button on the mega if this works, then its probably the reset cap is faulty
if not - it may be the bootloader is faulty - do a search for using your UNO as an ISP, try re-uploading the bootloader, If it's still faulty, I recommend arranging for a replacment from your supplier.
|
|
|
|
|