Show Posts
Pages: 1 [2] 3 4 ... 6
16  Using Arduino / Programming Questions / Re: using any pin as an interrupt on a 2560 mega on: July 05, 2012, 10:13:01 pm
Pins 14, 15, 16, 18, 19 are taken by Motor drivers, it's hardwired on the board, the pins aren't even exposed. 

I'm connecting a second 2560 to drive a 3" LCD and touchpanel and it uses pins 22-53. I may also connect a 9DOF IMU to it because the custom board has its hands full with 5 analog pressure sensors, 5 LEDs and 3 motor drivers (which will likely increase to 5) and 3 rotary absolute position sensors. The main board is being connected to Ubuntu running ROS (Robot Operating System), it will be making all the decisions based on sensor data on when to turn on LEDs and motors.
17  Using Arduino / Programming Questions / Re: using any pin as an interrupt on a 2560 mega on: July 05, 2012, 09:29:01 pm
Looks like that's not going to work. So either I do SoftwareSerial or I use I2C on both Arduinos (the pins are open). Is there an advantage to I2C over Software serial?
18  Using Arduino / Programming Questions / Re: using any pin as an interrupt on a 2560 mega on: July 05, 2012, 09:16:12 pm
I just realized that I do have D17 available on the custom board and its a hardware serial receive. I can use any digital pin as the TX for hardware serial, right?
19  Using Arduino / Programming Questions / using any pin as an interrupt on a 2560 mega on: July 05, 2012, 08:54:56 pm
I have a 2560 mega based custom board and need to use pin 36 as an interrupt so that I can set is as a Receive port (using SoftwareSerial) to talk to another Arduino board.

I know that the ATMEGA2560 (and other Arduino chips) support any pin being an Interrupt. I found this http://arduino.cc/playground/Main/PcInt but am at a loss for how to make pin 36 an interrupt.

Half of the analog pins have interrupts, if I configure one as a digital pin will that also work? Suggestions?
20  Using Arduino / Microcontrollers / Re: What is happening to the ARM based Arduino on: June 28, 2012, 02:42:47 pm
I'm with tim7 on this one. I have a Raspberry Pi showing up any day now. I don't mind deadlines slipping as long as you keep me in the loop.

I just had a custom 2560 board made and really need a 32-bit processor and am looking into non-Arduino platforms now because of the lack of any communication from Arduino.
21  Using Arduino / Microcontrollers / Re: migrating from mega2560 to standalone 2560 on: June 28, 2012, 02:39:03 pm
http://arduino.cc/forum/index.php/topic,111858.0.html

Nick walked me through in this thread how to use his code to load the bootloader from a Mega 2560 to a custom 2560 based board I have. Managed to get to work but I still can't load the firmware for the 8u2. I have an AVR ISP MKii on order and I'm going to send this Pololu programmer back.
22  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 01:41:13 am
Crap, scratch that. I was connected to the original 2560 when I uploaded a test program. Trying to upload through the Pololu, appears to be hanging.
23  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 01:37:42 am
I tried uploading a sketch using the Pololu programmer and the board appears to be working. Thank you for the help.

I still need to get the USB working since it's going to be talking to ROS (Robot Operating System) via USB but at least I've verified the bootloader worked. Maybe a genuine AVR programmer would do the trick.
24  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 01:32:25 am
I'm trying to use AVRDUDE to upload the HEX file in the Firmware folder of the Arduino IDE.

Code:
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_command(): unknown status 0xc9
avrdude: stk500v2_program_enable(): cannot get connection status
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for AT90USB82 is 1E 93 82
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.

avrdude done.  Thank you.

When I try to use my 2560 V2 as ISP I get this.
Code:
c:\Program Files (x86)\arduino-1.0\hardware\arduino\firmwares>avrdude -c avrisp
-P COM4 -p at90usb82 -F -U flash:w:MEGA-dfu_and_usbserial_combined.hex
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.

And with one other HEX file.

Code:
c:\Program Files (x86)\arduino-1.0\hardware\arduino\firmwares\arduino-usbserial>
avrdude -c avrisp -P COM4 -p at90usb82 -F -U flash:w:Arduino-usbserial-mega.hex
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.
25  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 01:14:09 am
Flip isn't working for me. Says it can't open USB device.
26  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 01:06:30 am
I was kind of worried about this. When I plug it into Windows I get an unknown device ATmega8U2 DFU. Do you have a program for that chip?

The Pololu programmer or a 2560 ArduinoISP should be able to program it, right?
27  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 01:04:02 am
Fingers crossed.

Code:
Committing page starting at 0x1FF80
Written.
Verifying ...
No errors found.
Writing fuses ...
LFuse = 0xFF
HFuse = 0xD8
EFuse = 0xFD
Lock byte = 0xEF
Clock calibration = 0xA1
Done.
28  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 12:56:28 am
I hit C twice more and it said 2560. I pressed G and then this happened.

Shortened:

Code:
Committing page starting at 0x1FF00
Committing page starting at 0x1FF80
Written.
Verifying ...
Verification error at address 3E000. Got: 0xFF  Expected: 0x0D
Verification error at address 3E001. Got: 0xFF  Expected: 0x94
5537 verification error(s).
First 100 shown.
29  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 12:55:03 am
It compiled and uploaded fine when I removed the md5. I'm looking at the board, it's definitely a 2560. Your program thinks it's a 2561.

Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x98 0x02
Processor = ATmega2561
Flash memory size = 262144 bytes.
LFuse = 0x62
HFuse = 0x99
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xA1
No bootloader support for this device.
30  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 12:20:56 am
What programmers do support the 2560? I may be programming a bunch of these boards and I want to make it easy.
Pages: 1 [2] 3 4 ... 6