Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / Re: Recommendation for project needing ~15 potentiometers on: January 09, 2013, 06:41:04 pm
Mayhew Labs sells a Mux shield:
>
http://mayhewlabs.com/products/arduino-mux-shield
>
This shield can take up to 48 analog inputs which would support the large number of potentiometers the OP requested.  They also provide some simple sample code for reading the mux's so you can process the signals.  To get the data into the PC will require writing to the serial USB port and perhaps the use of the "Processing" software to handle whatever changes you would like to do to the data written.
2  Using Arduino / Project Guidance / Re: Standard USB to PC on: January 09, 2013, 06:19:33 pm
Maybe I didn't ask the question correctly.  I am really trying to figure out the purpose of the midiLoopback function in the YaamiDrum program code.
3  Using Arduino / Audio / Re: Communication Arduino/MIDI Software on: January 08, 2013, 02:09:53 pm
You might take a look at the Hairless MIDI Serial Bridge.  This software is open source, does not require a USB reprogram effort and has an excellent latency reduction algorithm.  The URL is:
>
http://projectgus.github.com/hairless-midiserial/
4  Using Arduino / Project Guidance / Re: Standard USB to PC on: January 08, 2013, 01:25:18 pm
That doesn't answer the question I asked. 
5  Using Arduino / Project Guidance / Re: Standard USB to PC on: January 07, 2013, 09:40:52 pm
Having taken a look at the YaamiDrum source code can anyone explain what the purpose is, for the function midiLoopback()?  It appears to be writing three bytes to the Serial port for no apparent reason.  There is a call within this function to the MIDI_TX function which appears to be the mechanism for pushing midi data to the Serial port.  I was thinking that the purpose for the midiLoopback function would be to clear the buffer but the followup call to MIDI_TX has the potential to send out ambiguous data.  Any thoughts would be helpfull.  Here is the link to the source if anyone cares to review it, just do a search for midiLoopback and that should get you to the section I am referring to:
>
http://mirror.transact.net.au/pub/sourceforge/c/project/ch/chloris1.u/YAAMIDrum.pde
>
Thanks!!
6  Using Arduino / Programming Questions / Re: Arduino Uno & Seeed Studio TFT Touchscreen on: October 31, 2012, 12:38:43 am
Here is a link to the entire thread I have going on over at Seeed Studio:
http://www.seeedstudio.com/forum/viewtopic.php?f=4&t=3950
I believe my last post will take you to the sample code and libraries (TFT and Touchscreen) that they have made available.  The specific shield can be found at the following url:
http://www.seeedstudio.com/depot/28-tft-touch-shield-p-864.html?cPath=132_134

So far this has been a very disappointing experience although I am hopeful that something can be worked out.  I have been able to get all of the examples provided to work correctly, however, the touchscreen example and the commentary I am receiving from the site itself is turning out to be dismal at best,
7  Using Arduino / Programming Questions / Arduino Uno & Seeed Studio TFT Touchscreen on: October 29, 2012, 09:38:36 pm
Does anyone here have any experience with this shield.  I have been able to successfully work through all of the non-touchscreen examples, however, when it comes down to getting the touchscreen to work it's a total lights out proposition.  So far the only response I have received from the folks at Seeed Studio is:

"Hi,dear
Those examples we have posted were based on bottom-driven, we could not support detailed programs in application layer.
But, don't be too disappointed, we are updating our forum, we'll show some demos or posts about great creation.
Let's hope it is.
Jacket
Best Regards"

I have no idea what they mean by bottom-driven and my expectation was that the shield's touchscreen functionality would at a minimum , well, you know...work!  As you can tell I am a little disappointed but if I am misunderstanding something here would someone please point it out to me.  If someone has a sketch that they have been able to successfully deploy on this device I would appreciate some advice.
8  Using Arduino / Installation & Troubleshooting / Re: Mega 2560 R3 not uploading any sketch on: September 10, 2012, 11:59:00 pm
spcomputing,

As things turned out I had a bad 16u2, which I suspect is a pervasive issue with the 2560 board, but that is just an opinion.  I received a full refund for the board and then bought two UNO R3's.  Funny but everything simply behaves a LOT better as in everything works properly now.  It really is a breeze vs. the amount of work the 2560 required to do the simplest da_m_n thing.  Any way, my recommendation is to choose option (c) in you multiple choice comment stated earlier in this thread.  Thanks for trying to help, I really appreciate it.

Kuba,

In my humble opinion I think you are pounding a lot of dirt to get the 2560/16u2 to work.  The spec sheet on the MC is awesome but I don't think the makers have worked out the defects in production and there just doesn't seem to be critical mass support for that particular chip.  I would encourage you to keep trying but perhaps it should be a 2nd or 3rd hobby because that dog (2560) just don't bark.  Again, my opinion and I do apologize to anyone that is offended and or disagrees.
9  Using Arduino / Installation & Troubleshooting / Re: Mega 2560 ADK not responding on TX & RX on: September 09, 2012, 01:08:28 pm
the 2560 R3 utilizes a 16u2 not a 16au and unfortunately this is the third thread indicating similar issues.  It would seem that Arduino may have made a bad combination here.  Any way, I will post anything I discover in hopes of resolving this issue for all of us.
10  Using Arduino / Installation & Troubleshooting / Re: Mega 2560 R3 not uploading any sketch on: September 09, 2012, 02:32:12 am
Absolutely no apology necessary.  Please don't feel bad.  My experience and that of many others that I have talked to including, I think, the OP of this thread, is one of frustration with the R3 2560 and its union with the 16u2. My post was not, at least in my case, meant to be directed towards anyone. Especially someone such as yourself willing to help out...so if anything I owe you an apology.

So, I have attached three screen shots taken from the AVR Studio 6 Device Programming menu.  These snap shots could have just as easily been taken from any of the Atmel Studio IDE's.  The first snapshot represents  current interface settings, the second represents current fuse settings and the third represents current lock bit settings.  These settings were read from the board using the AVRISPmkII.  The AVR One set in ISP mode reads the exact same thing.

When I try to flash any hex file it always returns the same confirmation indicating that the program has been transfered correctly and I should be ready to go, however, this is never the case since I immediately de-activate the Jungo devices, then pull up any of a number of Arduino IDE's and try to program the board via serial USB connection.  Inevitably I receive a string of timeouts...I receive the same response when I go to a command prompt and run avrdude.  My goal is simply to get the 2560 and 16u2 back into a start state and load a stupid simple program such as blink.

I am able to program the 2560 (bypassing the 16u2) with the ISP both the AVRISPmkii and the AVR One.  Any assistance would be GREATLY appreciated.

Thanks!!
11  Using Arduino / Installation & Troubleshooting / Re: Mega 2560 R3 not uploading any sketch on: September 08, 2012, 10:53:03 pm
In this case I am "avrdude" savvy and have tried the code that you have provided:
Quote
avrdude -p at90usb82 -F -P usb -c avrispmkii -U flash:w:MEGA-dfu_and_usbserial_combined.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m
with changes to fit my development environment...
And some of the additional derivatives on this theme have included:
Code:
avrdude -C avrdude.conf -p m16u2 -F -c avrispmkii -P COM8 -U flash:w:\arduino1\hardware\tools\avr\bin\Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex  -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m
In the previous case I have tried a variety of Arduino hex builds as provided on their sourceforge site.

As stated I have an AVR One as well and although it can not program to the 16u2 in JTAG mode, when I add the ISP connector it does not work either.

I have also tried to use the programmer provided within Studio 5 and Studio 6 and although as stated I am able to program via the ISP to the 2560, the 16u2 remains a mystery, even with the hardware reset as indicated for the 8u2.

There seems to be quite a few users having a great deal of difficulty with the 2560 or rather Arduino's delivery and lack of support for the chip and its 16u2 R3 add-on.  I don't understand the total lack of support either by Arduino or Atmel.  I do understand the nature of open source but these boards are being sold in retail outlets and if plugging them in and simply trying to load a simple blink program onto them via the IDE causes this amount of difficulty then perhaps some thing need to be re-examined.  Either by Arduino or the consumer (you and me).

As you can see, there is some frustration here and I can sense it in the OP follow-on posts as well as other threads regarding the same issue.  However, I am not willing to throw in the towel just yet.  After spending as much time as I have in trying to figure this thing out I believe a certain form of stubbornness has settled in, on my part and giving up isn't an option.  So, like so many of you I shall sally forth and keep at it.
12  Using Arduino / Installation & Troubleshooting / Re: Mega 2560 R3 not uploading any sketch on: September 08, 2012, 09:40:05 pm
I have been experiencing similar issues.  I am running on Windows XP, the loop-back test works successfully, the ATmega2560 is enumerated within the list of available devices.  I have an AVRISPmkii and an AVR One! in all cases I have been able to program the ATmega2560 with the ISP successfully.  However, I am unable to program the 16u2 in order to restore it to an initial state.  I am unable to program via USB in any of the Arduino Development environments going back to version 0022 so I don't think it is:

1> AVRISPmkii
2> AVR One!
3> Arduino Development environment
4> The ATmega2560

I am not sure if this helps but thought I would share my experiences in hopes that we can figure out why Arduino in conjunction with Atmel are turning out defective 2560 boards.
13  Using Arduino / Installation & Troubleshooting / Re: ATmega16u2 problem? on: September 08, 2012, 08:33:22 pm
So, in my continued attempt to get the 16u2 into a state in which I can program the ATmega2560 with the USB cable I ran the following command at the cmd prompt:

avrdude -C avrdude.conf -p m16u2 -F -c avrisp
mkii -P COM8 -U flash:w:\arduino1\hardware\tools\avr\bin\Arduino-usbserial-atmeg
a16u2-Mega2560-Rev3.hex  -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -
U lock:w:0x0F:m -v -v -v -v


=====> Here is an abbreviated response after two hours of just letting it run

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "avrdude.conf"

         Using Port                    : COM8
         Using Programmer              : avrispmkii
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
         AVR Part                      : ATmega16U2
         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  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      eeprom        65    20     4    0 no        512    4    128  9000  9000 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      flash         65     6   128    0 yes     16384  128    128  4500  4500 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      calibration    0     0     0    0 no          1    0      0     0 0 0x00 0x00
                             Block Poll               Page      Polled
      Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
      ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
      signature      0     0     0    0 no          3    0      0     0 0 0x00 0x00

      Programmer Type : STK500V2
      Description     : Atmel AVR ISP mkII
      Programmer Model: Unknown
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [90] . [85]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [90] . [85]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x03
avrdude: stk500v2_getparm(): failed to get parameter 0x90
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [91] . [84]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x03
avrdude: stk500v2_getparm(): failed to get parameter 0x94
         Vtarget         : 25.5 V
         SCK period      : 129.2 us
avrdude: Send: . [1b] . [01] . [00] . [0c] . [0e] . [10] . [c8] d [64] . [19][20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00] 2 [32]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x10
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 ATmega16U2 is 1E 94 89
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x11
avrdude: stk500v2_disable(): failed to leave programming mode

avrdude done.  Thank you.


C:\>

Any help would be appre3ciated...
14  Using Arduino / Installation & Troubleshooting / Re: ATmega16u2 problem? on: September 06, 2012, 04:14:20 pm
Ok, so I seam to have made a little more progress.  I am able to use the AVRISP MkII to program the ATmega2560 R3 chip now.  However, I can not program the chip with the USB cable within the Arduino IDE.  If anyone has experienced this before and been able to resolve this I am still looking for a little help here.

Thanks
15  Using Arduino / Installation & Troubleshooting / Re: Can't upload to Arduino Mega 2560 on: September 05, 2012, 09:33:56 pm
Samueldw,

I noticed in your earlier post that you had mentioned the use of the 8u2 chip and I am pretty sure the 2560 is using the 16u2.  May help may not but anyway it is generally good to know.  Also, I have not found any good information on resetting the 16u2.  I believe mine (16u2) is bricked but haven't completely thrown in the towel yet, whats more I have not been able to determine the reason why it is no longer working.  I must admit that locating complete information on the 2560 is a bit like tracking down "Big Foot" in a snow storm...occasionally you can find a foot print but "Big Foot" always seems to get away...smiley
Pages: [1] 2 3