Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re:  programmer is not responding... on: August 11, 2010, 10:39:43 am
Hey, Thanks for the response. I made a makeshift switch using a wire (since I didn't have one on my PCB circuit since I never needed it before). I tried a few timing situations with that and it now works on PC again : ) Still not Mac though. At least it half works : )

The AVR Programmer is a good idea. I'll have to invest in one.
2  Forum 2005-2010 (read only) / Troubleshooting / Re:  programmer is not responding... on: August 11, 2010, 09:15:14 am
I tried to upload a different sketch on the PC side and it worked. Now, when I try to re-upload the sketch that I actually need on the board, I cannot upload it. I now get this error on the PC side:


avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Any ideas?
3  Forum 2005-2010 (read only) / Troubleshooting / Re:  programmer is not responding... on: August 11, 2010, 08:45:22 am
Anyone else have any ideas at all? I have the latest version of avrdude and I don't know what else to check. I heard that there can be conflicts with Java Serial on Mac with other programs.. Is this true? Where do I check for these conflicts?

Thanks
4  Forum 2005-2010 (read only) / Troubleshooting / Re:  programmer is not responding... on: August 09, 2010, 01:01:07 pm
Hey liudr,

Thanks for the response. I've downloaded the lastest drivers from FTDI's website for MAC OS X ( multiple times : / haha). An additional Serial Port does show up in the Arduino IDE, so it does recognize my board. It keeps giving me that error. Just annoys  me that it's only on the MAC side...

Thanks again for the response!
5  Forum 2005-2010 (read only) / Troubleshooting / programmer is not responding... on: August 09, 2010, 11:30:02 am
Hey, I made my own Arduino from the arduino duemilanove Eagle schematic found on the site. I bought an Atmega328 with the bootloader preloaded from sparkfun.com. When I try to upload a sketch, I get the following error message:
           avrdude: stk500_recv(): programmer is not responding
I am using a mac OS X. Was wondering if anyone had any suggestions.

Thanks a bunch.

UPDATE** It works on Windows 7, but when I switch over to Mac OS X, it gives me problems. I need it to work on the MAC side because I have another program (Labview) that needs to communicate with it. I only have the Labview license for MAC.
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Unable to upload anything to board on: August 12, 2010, 02:54:10 pm
Could be. I don't have a lot of experience with the Arduino, but I can explain my situation. I made my own without a bunch of the parts, and got that sync error when I tried to upload. So i connected a wire to ground and tapped the other end of it to pin one of the Atmega328 ( Reset pin) when uploading. That was my way of pushing reset since I omitted the reset button. Sry if I cannot help any further. That is my experience with/ knowledge of Arduino. I don't know the details. The grounding wire worked for me, but you could certainly be having a different issue. Good luck!
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Unable to upload anything to board on: August 12, 2010, 02:35:49 pm
Hey, did you try using the reset button while uploading the sketch. I am currently having a similar issue with my board. I have the press the reset button after pressing the upload button in the IDE. It worked for me. Not positive it will work, but you can give it a try. Good luck!
8  Forum 2005-2010 (read only) / Development / Re: How RESET-EN works? on: August 12, 2010, 03:57:00 pm
Yea, just figured that out. In the process of trying to design my own, I get a sync error in windows and a programmer not responding error on Mac. When I just the reset trace on the actual Arduino Duemilanove that I used for testing, I get the same respective errors. When I solder the pads back together it works on the Duemilanove. Only problem is that the setup is the same on my PCB, but I still get the errors hehe. Guess I'll have to fiddle with it more. Thanks for the responses.
9  Forum 2005-2010 (read only) / Development / Re: How RESET-EN works? on: August 12, 2010, 03:38:33 pm
Thanks for the reply. I was confused at the schematic: http://arduino.cc/en/uploads/Main/arduino-duemilanove-schematic.pdf since it looks like the RESET-EN does nothing but short out the  DTR wire next to it, but when I look at the board there is no DTR wire next to it, it just runs through the RESET-EN pads. Sorry for my confusion and thanks again.
10  Forum 2005-2010 (read only) / Development / How RESET-EN works? on: August 12, 2010, 02:23:44 pm
Hey,

I'm sorry if this is a really stupid question, but how does the RESET-EN work? To me, it looks like it is just shorting out another wire, which, I think, doesn't do anything. The only reason I ask is b/c I was trying to make a modified arduino PCB for a project of mine and happened to omit the RESET-EN since I thought it didn't do anything ( Shows how much I know : / ). Now I have to manual reset to upload new sketches.

Thanks for any replies : )
11  Forum 2005-2010 (read only) / Interfacing / Re: AD5791 DAC-Arduino Issues on: June 18, 2010, 01:08:04 pm
I was Initially having problems understanding the SPI, but I am fine with that now. I guess that was what my question was directed toward. Now, I'm just having communication issues of the AD5791 side, but here's not the place to ask questions about the DAC.
Thanks
12  Forum 2005-2010 (read only) / Interfacing / AD5791 DAC-Arduino Issues on: June 17, 2010, 10:43:17 am
Hey, I've been trying to communicate with the AD5791 DAC using the Arduino duemilanove, but all attempts fail to change the voltage output on the DAC...

I know this a long shot, but I was wondering if anyone had done this before and could help...

-DataSheet for DAC is at: analog.com/en/digital-to-analog-converters/da-converters/AD5791/products/product.html

Code:

// DAC Data Transfer
#define DATAOUT 11 // DIN
#define SPICLOCK 13 // SCLK

long AD5791_DATA_REGISTER = 0x100000; //data register mask

int syncPin = 10;
long dac_code = 0x000CC0;
long data = AD5791_DATA_REGISTER | dac_code;

// Setup SPI Interface code BEGIN ///////////////////////////////////////////
void setup()
{
  byte clr;
  pinMode(DATAOUT, OUTPUT);
  pinMode(SPICLOCK,OUTPUT);
  pinMode(syncPin,OUTPUT);
  
  digitalWrite(syncPin,HIGH); //disable device
  
  //The SPI control register (SPCR) has 8 bits, each of which control a particular SPI setting.
  
  // SPCR
  // | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |0000000000000000000
  // | SPIE | SPE | DORD | MSTR | CPOL | CPHA | SPR1 | SPR0 |
  
  // SPIE - Enables the SPI interrupt when 1
  // SPE - Enables the SPI when 1
  // DORD - Sends data least Significant Bit First when 1, most Significant Bit first when 0
  // MSTR - Sets the Arduino in master mode when 1, slave mode when 0
  // CPOL - Sets the data clock to be idle when high if set to 1, idle when low if set to 0
  // CPHA - Samples data on the falling edge of the data clock when 1, rising edge when 0'
  // SPR1 and SPR0 - Sets the SPI speed, 00 is fastest (4MHz) 11 is slowest (250KHz)
  
  SPCR = B01010100;
  clr=SPSR;
  clr=SPDR;
  delay(10);
  
  Serial.begin(9600);
  
  //Write to Control Register
/*  digitalWrite(syncPin,LOW);
  spi_transfer(0x20);
  spi_transfer(0x00);
  spi_transfer(0x20);
  digitalWrite(syncPin,HIGH);
  
  */
  
}

//So now we can write a function SetVoltage(int) that will change the DAC output.
/////////////////////////////////////////////////////////////////////
// DAC SPI Interface
char spi_transfer(volatile char data)
{
  SPDR = data; // Start the transmission
  while (!(SPSR & (1<<SPIF))){}; // Wait the end of the transmission
  return SPDR; // return the received byte
}

/////////////////////////////////////////////////////////////////////
// Set the voltage on the 20-bit DAC
byte SetVoltage()
{
 //Read from Control Register/
/*  spi_transfer(0x00);
  digitalWrite(syncPin,LOW);
  spi_transfer(B10100000);
  spi_transfer(B00000000);
  spi_transfer(B00000000);
  digitalWrite(syncPin,HIGH);  //release chip, signal end transfer
  spi_transfer(0x00);
  
  */
  
  
  spi_transfer(0x00);
  digitalWrite(syncPin,LOW);
  spi_transfer(data>>16);
  spi_transfer(data>>smiley-cool;
  spi_transfer(data);
  digitalWrite(syncPin,HIGH);  //release chip, signal end transfer
  spi_transfer(0x00);
  
}

void loop()
{
  SetVoltage();
  delay(500);
}

** I have commented out my attempts at reading/writing from/to the DAC's control register since no data is returned on the MISO line**

**Thanks for any and all suggestions/comments
Pages: [1]