Show Posts
Pages: 1 2 [3] 4 5 6
31  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 27, 2012, 12:19:26 am
Thanks for the replies everyone.

Nick I downloaded and compiled your bootloader in Arduino 1.0.
I'm getting an error message. It's not letting me copy and paste so I'll short hand it.

md5.c:40: multiple definition of 'md5_starts'
" : first defined here
md5_process, md5_update, md5_finish all give the same error message.
32  Using Arduino / Microcontrollers / Re: Trying to load bootloader for 2560, nothing is working on: June 26, 2012, 10:48:45 pm
Windows 7, Arduino 2560 Mega v2, 6 pin cable from ICSP on the ATMEGA2560 on both boards. Selected Burn bootloader from Arduino 1.0 IDE as Arduino as ISP.

TX light on the 2560 Mega is flashing. There's no RX/TX LEDs on the custom board so I'm not sure if it's receiving.

Been going for 4 minutes now, and the IDE still says Burning Bootloader to I/O Board. I waited 40 minutes before with no results and has to kill the program.
33  Using Arduino / Microcontrollers / Trying to load bootloader for 2560, nothing is working on: June 26, 2012, 10:45:34 pm
I have a custom 2560 based board with an 8u2 usb chip with ICSP headers on both chips. There's no bootloader on it and I'm trying everything without luck. And I mean everything.

I have a Pololu AVR ISP programmer, a Arduino 2560 Mega V2 and a OSEPP 2560 (FTDI). Tried using all three to program the custom board on two different computers. I have two of the custom boards and have tried both of them also, same results.

Tried all three programmers on Ubuntu 11.10 and on Windows 7-64. I've tried avrdude, Arduino 1.0 IDE and AVR Studio 4 and 6 with all three devices to try and load the bootloader.

AVR Studio 4 can't find any of the programmers except the Pololu and when it does it says I need to downgrade it. I say ok and then it says it can't find a programmer.

Code:
Windows 7. Arduino 1.0 Arduino. Arduino as ISP, Burn firmware
avrdude: stk500_getsync(): not in sync: resp=0x00

Same error when I try to program either ICSP ports.

Windows 7. 2560 as ISP v1. Same error when I try to program either of the ICSP connectors on the new board.
c:\Program Files (x86)\arduino-1.0\hardware\arduino\bootloaders\stk500v2>avrdude
-p at90usb82 -F -P com3 -c avrisp -v -e -U flash:w:MEGA-dfu_and_usbserial_combi
ned.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com3
         Using Programmer              : avrisp
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.


c:\Program Files (x86)\arduino-1.0\hardware\arduino\bootloaders\stk500v2>

Windows 7. Pololu ISP programmer.
c:\Program Files (x86)\arduino-1.0\hardware\arduino\bootloaders\stk500v2>avrdude
-p at90usb82 -F -P com7 -c avrispv2 -v -e -U flash:w:MEGA-dfu_and_usbserial_com
bined.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m


avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : avrispv2
         AVR Part                      : AT90USB82
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC6
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           eeprom        65    20     4    0 no        512    4    128  9000  90
00 0x00 0x00
           flash         65     6   128    0 yes      8192  128     64  4500  45
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0
0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0
0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP V2
         Programmer Model: AVRISP
         Hardware Version: 15
         Firmware Version Master : 2.10
         Vtarget         : 0.0 V
         SCK period      : 39.1 us

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 done.  Thank you.
34  Using Arduino / Sensors / Re: reading 4-bit hex from a rotary encoder on: June 25, 2012, 03:47:09 pm
Perfectly. Thank you.
35  Using Arduino / Sensors / Re: reading 4-bit hex from a rotary encoder on: June 25, 2012, 12:53:41 pm
I'm using a 2560 Mega based board. Would I be using pins 14-19 and do a Serial connection?
36  Using Arduino / Sensors / reading 4-bit hex from a rotary encoder on: June 25, 2012, 12:48:02 pm
http://lgrws01.grayhill.com/web1/images/ProductImages/Series%2025L%20Encoder.pdf

I'm going to be using this to determine exact position of a cam driven by a motor. Quadrature feature won't tell me position, just speed and direction so I figured I could use 4-bit hex code output.

How do you read 4-bit hex code with an Arduino? Is there a library for it?
37  Using Arduino / Sensors / Re: stuck on what type of sensor to use here. on: June 23, 2012, 05:29:14 pm
The cams are driving different parts of a robots arm. When one cam rocks up it pulls the shoulder, when another rocks up it pulls the bicep, etc. To coordinate the movements I need to know where the arm is. I haven't been able to find any shaft encoders that look like they'll fit and be affordable.
38  Development / Other Hardware Development / Re: Arduino Mega Shield, IDC connections on: June 23, 2012, 03:44:55 pm
You may be at the point of designing your own shield. Not cheap but you get exactly what you want. ruggedcircuits.com designed a custom board for me. Should be showing up next week. They were pretty easy to work with and reasonably priced compared to others.

If you're more a DIY get Eagle PCB software, use the 2560 shield template and lay out your own. Have a PCB company like http://dorkbotpdx.org/wiki/pcb_order make the PCB and then solder all the chips you need for yourself.
39  Using Arduino / Sensors / Re: stuck on what type of sensor to use here. on: June 23, 2012, 03:40:46 pm
Proximity sensor is not a bad idea.

The other thing I thought about is a Hall Effect Sensor. I would need it to slide past some type of variable magnet so that at each point it would have a different amount of magnetism and I would know where the cam is. I'm having a hell of a time finding a magnet with different magnetic strengths on different points on it. Any ideas? Are Hall Effect sensors used for position or just speed/direction?
40  Using Arduino / Sensors / Re: stuck on what type of sensor to use here. on: June 23, 2012, 01:43:09 am
The image on the left is all the way down in one direction and the other two are all the way in the other. It rotates so it can be in any position between those two points. The total range is about 90 degrees, 45 in each direction.
41  Using Arduino / Sensors / stuck on what type of sensor to use here. on: June 22, 2012, 11:55:49 pm

These three cams rock back and forth, they don't rotate fully. You can see the two positions they can be in. I need some way to know what position they are in. An encoder at the motor only tells me direction and speed.

Something like a hollow shaft potentiometer but I can't find anything that's not super expensive or the right size. Any other ideas how I can track the position? Worse case I might put an accelerometer/gyro combo sensor on each cam and try to track it that way but that's a little pricey and I'm not sure ultimately how accurate it will be if the entire robot will be moving around and experiencing other forces on it.
42  Development / Other Hardware Development / Building a custom board, need help with ICs, sensors, etc. on: June 22, 2012, 05:30:29 pm
Working on a robotics application. I have a custom 2560 board designed and it's going to show up next week but I'm already realizing that I need to make more changes to it, additions, deletions, etc. Want to get some feedback.

I need to drive 5 wormgear (low rpm) DC motors, they are between 50W and 150W at 12V.
All 5 will have quadrature encoders, I already have LS7184 ICs on the board to count ticks by the encoder. I was thinking that encoders would tell me motor position but they are only going to tell me speed and direction. The position of the motor is more critical to me than motor speed. 3 motors will be driving arms on a robot, the other 2 will drive motors on a self balancing platform.

The encoder libraries I've found want to use 2 interrupts each. That's 10 which is a problem because the 2560 only has room for 6.

3 of the motors are driving a cam which oscillates up and down, that's what I need to track, the rotational oscillation of the cam. I was thinking about a MPU-6050 3-axis accelerometer + 3 axis gyro. It uses an I2C interface and I would need 3 of them.

For the self balancing platform I'll need a 9DOF like the FreeIMU (http://www.varesano.net/projects/hardware/FreeIMU), it combines the MPU-6050 with a magnetometer. It also runs on the I2C bus.

There's also a chip or hardware debouncing and a small LCD screen but those are easy.

Will also be polling 4-5 analog pressure sensors and driving 4-5 LED lights and reading a file from an SD card. Little calculation will be done on the board as it will be connected to a Linux computer running ROS (Robot Operating System). It will log data and send back motor commands, etc.

To recap:
5 Encoders (that need interrupts)
4 Accelerometer/gyro sensors that run on I2C
1 1 axis accelerometer for data acquisition (analog)
5 motor drivers
5 analog sensors
5 LED lights

I was thinking about using two ATMEGA2560 chips and connecting them together via a serial connection with two regular Digital Pins. I can put 2 encoders (4 interrupts) on one chip and use SDA/SCL for the 4 accelerometers that use I2C and the other chip could run the other 3 encoders.

The SDA/SCL pins can also be used as interrupts. If I put an I2C multiplexer on those pins does that mean I can no longer use it as an interrupt?

Thanks for the feedback.
43  Using Arduino / Programming Questions / Re: stuck on how to loop through two different routines without threading on: April 18, 2012, 12:48:31 am
I'm being lazy. smiley  I didn't bother to make up a class names when instantiating 'em, this was just pseudocode for an example.

I'm not that familiar with classes, how would you go about doing it?
44  Using Arduino / Programming Questions / Re: stuck on how to loop through two different routines without threading on: April 16, 2012, 01:41:39 pm
Under timer3. http://arduino.cc/playground/Code/Timer1
45  Using Arduino / Programming Questions / Re: stuck on how to loop through two different routines without threading on: April 16, 2012, 12:21:30 pm
Looks like timer1 is not fully supported on the mega. I'm not sure what limitations that will cause. I'll do more research on it.

Maybe I can try timer3. I'll play with it and report back. Thanks.
Pages: 1 2 [3] 4 5 6