Show Posts
Pages: [1] 2
1  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 28, 2012, 06:03:26 am
I'm running Win7 in 64 bits, does this could be the reason? (i.e. no atmel dfu driver for win7 64bits?)

No it shouldn't be a problem, because I'm also running win7 64bit and it works for me. I'm no expert in these things as you can see, so I'm afraid I can't help you out any further
2  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 27, 2012, 08:02:26 am
I got the reflash to work, but unfortunately it didn't fix the problem. It still fails the loopback test, and uploading a sketch won't work either, do you have some more things I could try or should I write this one off?


@gromain
If it doesn't take you driver, you could try doing it manually with hdwwiz.exe (in the start menu, search for hdwwiz and hit enter). Let me know how you get on.
3  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 26, 2012, 12:36:26 pm
Unfortunately I'm running into some errors. On two of the three PC I've tried running this on it gives me address is out of range when I try to load the .hex file (I have Read the target device memory, but it is instantly done the range and checksum don't change [see image]). On the other PC it does take the .hex file without giving any errors, but when I hit run it says "Verify device fail at 0x00000" (also shown in image).

What do you think the problem could be?
4  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 25, 2012, 11:38:01 am
Alright, I've determined that I've got the 16u2. How do I reprogram the firmware? Do I select Eeprom or Flash?
If you could give a step by step tutorial on how to do this that would be hugely appreciated, because quite frankly I'm too scared to screw things up, as I've bricked things this way before.
5  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 24, 2012, 01:28:24 pm
I tried it one more time on a different computer to install the Flip driver, and it worked! Turns out I had to install the regular driver first, and then go into device manager and right click on it and click update drivers. Then connect the Gnd and reset on the Arduino like you said and continue with the driver installation. Point the the install wizard to the \Atmel\Flip 3.4.7\usb\atmel_usb_dfu.inf file, and it should install the driver.

So what do I do now? How do I see in Flip what firmware I'm running?
6  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 22, 2012, 03:55:03 pm
Yeah probably not, it just consists of a parallel port with a few wires soldered on and a couple of diodes and pull-up resistors. I used it for my satellite decoder about a year ago.

What exactly do you think is wrong with my Arduino? Did the software get corrupted?
7  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 22, 2012, 11:24:29 am
Do you have a spare Arduino and (6) female to male jumpers or AVR programmer?

I don't have a spare Arduino laying around, but I do have a jtag device. Will that do the job aswell?
8  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 22, 2012, 08:23:28 am
Sorry, neither of those solutions work. It still isn't taking the .inf file, and although the enhanced suite doesn't give any errors, it still doesn't upload the file. Strange huh? What do you think the problem is?
9  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 18, 2012, 03:12:31 pm
Sorry still no luck, it shows as an unknown device in device manager, and it can't find any drivers in the Program Files\ATMEL\FLIP 3.4.7\usb folder. Not even in the Program Files\ATMEL\FLIP 3.4.7 folder
10  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 18, 2012, 02:43:20 pm
There should be a 3x2 header in that location next to the USB socket.

Right, found it. But I'm having a bit of trouble with getting it to work, what do you mean by navigate the wizard? Tell it to look there for drivers? Nothing pops up when I plug the Arduino in, the only thing it does is make the sound it always makes when you attach a device.
11  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 15, 2012, 02:22:01 pm
Yup, that is the one.  Okay, try this.  Download FLIP and install:

http://www.atmel.com/tools/FLIP.aspx

Leave the software closed after install and plug in the Uno and short the Reset and Gnd pins on the Atmega8u2/16u2:

This should cause a new device to be found in Windows.  Manually navigate the wizard to Program Files\ATMEL\FLIP 3.4.7\usb for the .INF file for your DFU.  After the installation is complete, open FLIP and then post back here which driver installed (Atmega16u2 or Atmega8u2).

I have the R3 version of the Uno, so I am not sure where to connect the reset to the ground, because your pic is a bit different from my Arduino.
Will it also work if I just connect the reset on the bottom of the board (next to the pin where it says 3.3V), to a ground?
12  Using Arduino / Installation & Troubleshooting / Re: Arduino won't upload on: October 15, 2012, 01:46:22 pm
Have you tried CodingBadly's loopback test?

http://arduino.cc/forum/index.php/topic,73748.0.html

I just tried it, and it failed the test. The RX LED flashes when I send something, but the TX doesn't, so I get nothing back.
(by serial monitor he did mean the thing that pops up when I press CTRL+SHIFT+M in the Programming environment, right?)
13  Using Arduino / Installation & Troubleshooting / Arduino won't upload on: October 15, 2012, 10:19:40 am
Hi there,

My Arduino UNO won't upload any sketches anymore, it has worked before, but now it just stopped working.

This is the error message it gives me:
avrdude: stk500_getsync(): not in sync: resp=0x00

This is the error message it gives when holding down shift:
avrdude: usbdev_open(): did not find any USB device "usb"

When uploading it the LED on pin 13 turns off, and the RX flashes 3 times. The TX stays off.

I'm using Windows 7 64bit, and I have also tried it on a Windows 7 32bit machine, with the same results.

I am also sure I have the right COM port selected, and that I have the correct board ticked under Extra --> Board

The sketch I last used with the Arduino was one for reading PPM signals, it was connected to my RC transmitter via port 1, and a ground port. It was sending back data to my computer, but suddenly it stopped.
If you need to know any more info on what I'm using or what I was doing, don't hesitate to ask.

Thanks in advance!
14  Using Arduino / Project Guidance / Re: Read PPM signal on: September 15, 2012, 11:09:52 am
Keep in mind that a PPM stream decoding function requires two different process to happen, frame start/stop detection and the individual channel number's width information . First before it can accurately process the individual channel data it has to 'sync' up with the PPM framing rate so that it will knows which pulse represents which channel consistently. After the last channel there will always be a longer zero period that fills out to the end of the 20-25msec frame period. Only after your decoder's algorithm has detected the end of the frame will it know that the next 1 to 2msec wide pulse represents the channel 1 information, and each in order after that until the end of the PPM frame.

That make sense?

Lefty


Yes, I had found that out in the meantime as well, you mean like the synchronisation frame as shown is this picture right?





I have since then adapted my code to further decode the signal:

Code:
volatile int signal = LOW;
volatile boolean signalIn = false;
volatile long timeBetweenPulse1 = 0; //pulse lenght channel 1
volatile long timeBetweenPulse2 = 0; //pulse lenght channel 2
volatile long timeBetweenPulse3 = 0; //pulse lenght channel 3
volatile long timeBetweenPulse4 = 0; //pulse length channel 4
volatile long timeBetweenPulse5 = 0; //pulse lenght of the synchronisation pulse
volatile long timeLastPulse = 0; //time in microseconds of the last pulse
volatile int counter = 1; //counts from 1 to 5, and makes the channel correspond with the pulse


void setup()
{
  Serial.begin(9600);
  attachInterrupt(0, state, RISING);
}

void loop()
{
  if(signalIn == true)
  {
    Serial.print(timeBetweenPulse1);
    Serial.print(" ");
    Serial.print(timeBetweenPulse2);
    Serial.print(" ");
    Serial.print(timeBetweenPulse3);
    Serial.print(" ");
    Serial.print(timeBetweenPulse4);
    Serial.print(" ");
    Serial.println(timeBetweenPulse5);
    signalIn = false;
  }
}

void state()
{
  if (counter == 1)
  {
  timeBetweenPulse1 = (int)(micros() - timeLastPulse);
  timeLastPulse = micros();
  counter = 2;
  } else if(counter == 2)
    {
      timeBetweenPulse2 = (int)(micros() - timeLastPulse);
      timeLastPulse = micros();
      counter = 3;
    } else if(counter == 3)
      {
        timeBetweenPulse3 = (int)(micros() - timeLastPulse);
        timeLastPulse = micros();
        counter = 4;
      } else if(counter == 4)
        {
          timeBetweenPulse4 = (int)(micros() - timeLastPulse);
          timeLastPulse = micros();
          counter = 5;
        } else
          {
            timeBetweenPulse5 = (int)(micros() - timeLastPulse);
            timeLastPulse = micros();
            counter = 1;
            signalIn = true;
          }
}


I'm still having trouble with getting the right signal, even when the cables aren't connected to anything I still get signals with about 20000 of microseconds time between them. How should I connect the arduino to my transmitter in a way that there is a common ground?
15  Using Arduino / Project Guidance / Re: Read PPM signal on: September 15, 2012, 04:35:11 am
Allright, I'll give that a try, but do I need to make some other hardware adjustments to make this work? Like a pull-up resistor or a capacitator?
Pages: [1] 2