Show Posts
Pages: 1 [2] 3
16  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino 007 serial monitor problem on PPC Mac on: January 24, 2007, 01:37:27 pm
it gives the error every time i run it.  but i believe it worked after first run.
17  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino 007 serial monitor problem on PPC Mac on: January 24, 2007, 12:25:27 pm
no other version of rxtx.  no /var directories.  no other software using serial ports.  

but, i after running macosx_setup.command, it works!  so although 007 is supposed to take care of that, apparently sometimes it doesn't?  
18  Forum 2005-2010 (read only) / Troubleshooting / Arduino 007 serial monitor problem on PPC Mac on: January 17, 2007, 12:01:23 am
Hello, first post here.  Trying to use a known-good Arduino NG board with 007 on a PPC Mac (10.4.smiley-cool.  Searched forums and some have had similar error but none of the suggestions helped.  Uploading sketches works fine. Opening serial monitor gives error:

Error inside Serial.<init>()
gnu.io.PortInUseException: Unknown Application
   at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
   etc...


Serial ports shown in IDE are
   /dev/tty.usbserial-a4000q4n [this one selected]
   /dev/cu.usbserial-a4000q4n

like i said, uploading works so obviously port access is ok.  according to forums, this error happens when something else is using port but no other programs are running and i've shut down and restarted.  this machine also has a clean install of tiger on it, btw.  forum posts all suggest re-running macosx_setup.command file but 007 doesn't use that any more, having supposedly fixed the issue that required it right?  i tried downloading 006 and it anyway, which is probably a bad idea, and i got this:

niutil: can't get property users in directory /groups/uucp: No such property
Finished making changes, you should be all set


TIA for any help,

- eric
19  Forum 2005-2010 (read only) / Bugs & Suggestions / NG auto-reset fix page still wrong on: August 12, 2009, 07:38:40 pm
http://www.arduino.cc/en/Hacking/NGAutoReset - this page still shows the capacitor being soldered to the wrong pins - should be TOP pins, not bottom.  

confirmed here, among many other places:
http://www.libelium.com/squidbee/index.php?title=Adding_autoreset_feature_to_Arduino_NG_rev.c
20  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: forum search error on: August 12, 2009, 07:35:55 pm
the forum search is terrible.  defaults to one week and anything longer times out.  also in forum categories you can't tell difference between sections as sub-sections have same name...
21  Forum 2005-2010 (read only) / Bugs & Suggestions / Bug in MAX7219 LED driver example code on: April 09, 2007, 01:54:23 pm
Hello, the code in the built-in example file (examples/leds/led_drivers/max7219_v1) and the playground file http://www.arduino.cc/playground/LEDMatrix/Max7219 have bugs in them.  As it so happens, the code will still work with a 7219 but not with an identical, fully SPI-compatible chip like the 7221.  

In the max7219_put function, the load line should be set LOW to begin, not HIGH.  this is not strictly necessary for the 7219, only the 7221.  But it is technically wrong regardless.
Code:
void max7219_put(byte reg, byte data)
{
  max7219_setLoad(LOW);  // begin    ** in the example this is HIGH, which is wrong! **
  max7219_putByte(reg);  // specify register
  max7219_putByte(data); // put data
  max7219_setLoad(LOW);  // latch in data
  max7219_setLoad(HIGH); // end
}
22  Forum 2005-2010 (read only) / Development / Re: Library for Nuvoton ISD1700 chipcorder family on: November 08, 2009, 10:14:16 am
okay keep us posted on your progress.  while you're fiddling, see if you can set bit to hear audio while recording.  
23  Forum 2005-2010 (read only) / Development / Re: Library for Nuvoton ISD1700 chipcorder family on: August 12, 2009, 05:40:09 pm
jesus jiminy!  it turned out to be a bug in NG board with LED on pin 13 interfering with hardware SPI.  i did the fix pictured here http://www.eng.uah.edu/~jdw/avr/arduino_r13_mod.jpg and it works!

also did chip.wr_apc1(0x408); // B10000001000 and that seemed to work.  

however, i still have some questions.

when i play a sound and then send stop() in the middle, the sound stops but i get CMD_ERR PU Not_RDY.  why is that?

fwd() only works if sound is stopped first, otherwise you get CMD_ERR PU Not_RDY.  it works in pushbutton mode - is that an SPI thing, or is something wrong?

in pushbutton mode, you need FT active (low) to record ANA-IN.  the audio is clear and loud until you start recording, but then the audio monitor is turned off despite the change to apc.  unless i am not understanding something correctly, i thought D4 monitor bit set to 1 enables audible preview *while* recording.  

the recorded audio is much lower volume than the feed-through monitor.  it's also much noisier.  the noise is a big issue, i've added decoupling caps everywhere but still trying to figure out how to follow recommendations for separating all the power and ground on a breadboard.

the speaker noise when FT is left active (low) but nothing connected to ANA-IN is very, very noisy.  i was hoping to install this somewhere and be able to record new sounds on site by plugging into a jack and hitting record button.  but it looks like i will need to keep FT off, so will have to add another external switch?  or is something wrong with my circuit if i hear this noise?

thanks again to anyone still with me after all of those questions.  

24  Forum 2005-2010 (read only) / Development / Re: Library for Nuvoton ISD1700 chipcorder family on: August 12, 2009, 04:17:59 pm
great library, thank you for contributing this.  

however, having some problems - with your example code, i'm getting Not_RDY for every command.  ID returns 0.  my wiring is:
Code:
/*
SCLK_PIN  13         to ISD1700 pin 6
MISO_PIN  12         to ISD1700 pin 4
MOSI_PIN  11         to ISD1700 pin 5
*/
ISD1700 chip(10); // to ISD1700 pin 7 - Initialize chipcorder with SS at Arduino's digital pin 10

i thought for a second i had switched MISO/MOSI, and when i do
Code:
/*
SCLK_PIN  13         to ISD1700 pin 6
MISO_PIN  12         to ISD1700 pin 5 [MOSI]
MOSI_PIN  11         to ISD1700 pin 4 [MISO]
*/
...i get CMD_ERR PU RDY for every command, and ID returns 11111111.  confused about that.

the ISD1700 plays/records in pushbutton mode, so i know it works.  

any ideas on what might be the problem?  

by the way, the only reason i'm using the SPI library is because Winbond/Nuvoton made the aggravating decision to route ANA-IN by default so you can't record from it.  or, i can, but it sounds terrible.  (i need to record from an 1/8" computer sound-out.)  am i correct that i need to use an SPI command to change routing?

from the datasheet it looks i need to change APC register to 0100 0000 1000, or 0x408 (record ANA-IN, with monitoring).  so in this library - once i get it working - is the following correct?
Code:
// change routing to record ANA-IN, with monitoring:
chip.wr_apc1(0x408); // but don't change volume
// or...
chip.wr_apc2(0x408); // set volume to max (000)

thanks in advance,

e
25  Forum 2005-2010 (read only) / Troubleshooting / Re: SPI troubles using the Arduino ATmega168 on: August 12, 2009, 11:03:21 pm
yeah that's here - http://www.arduino.cc/en/Hacking/NGAutoReset - but it's wrong.  see my bug post here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1250123920/0

if i have time, i'll make the list myself and post it
26  Forum 2005-2010 (read only) / Troubleshooting / Re: SPI troubles using the Arduino ATmega168 on: August 12, 2009, 04:38:08 pm
jesus, i never would have figured that out.  thank you!  i did the mod described in that thread and it worked!

btw, is there a single list somewhere of all the mods one should make to NG or other prior boards to approximate later improvements?  e.g. the essentials might be adding pullup resistor from RX, changing 9V label to V-in, and the above resistor fix, and optionals might be adding a capacitor to avoid pressing reset when programming, improved bootloaders to avoid long waits for program to start, etc...
27  Forum 2005-2010 (read only) / Troubleshooting / Re: SPI troubles using the Arduino ATmega168 on: August 12, 2009, 03:02:20 pm
i'm having the same problem with an atmega168-upgraded NG...

?
28  Forum 2005-2010 (read only) / Troubleshooting / Re: Auto-reset on NG on: August 12, 2009, 07:33:55 pm
lost a few hours on this one until i found fix on arduino blog.  this page is still incorrect:

http://www.arduino.cc/en/Hacking/NGAutoReset

will post in bugs
29  Forum 2005-2010 (read only) / Development / Re: Turn Arduino into an ISP programmer on: August 12, 2009, 09:54:10 pm
i've been trying to figure out the -B option to fix speed of AVRISPmkII.  i used this command line and the speed did indeed improve dramatically, it only takes 10 seconds now, here it is in case it helps anyone else [assuming USB and atmega8]:

avrdude -p m8 -c avrispmkII -B 1 -Pusb

seems you have to specify -p (part) even though you're not doing anything with the part, not sure what you do if you have nothing to connect the programmer to.  

i just chose 1 for -B value, not really sure what the proper value is, based on this:

-B bitclock

Specify the bit clock period for the JTAG interface or the ISP clock (JTAG ICE only). The value is a floating-point number in microseconds. The default value of the JTAG ICE results in about 1 microsecond bit clock period, suitable for target MCUs running at 4 MHz clock and above. Unlike certain parameters in the STK500, the JTAG ICE resets all its parameters to default values when the programming software signs off from the ICE, so for MCUs running at lower clock speeds, this parameter must be specified on the command-line.
30  Forum 2005-2010 (read only) / Development / Re: Turn Arduino into an ISP programmer on: August 10, 2009, 03:00:18 pm
so, how long should a USB AVRISPmkII take to burn a bootloader, e.g. ATmegaBOOT_168_ng.hex or ADABOOT_168.hex, with the Arduino 16 IDE Burn Bootloader?  (the former is 5700 bytes, the latter is 4800.)

it's taking about 10 minutes on my G4 Mac 10.4.  if this is not normal, what is the best way (on a Mac) to increase the ISP comm speed?
Pages: 1 [2] 3