Show Posts
Pages: 1 ... 47 48 [49] 50 51 ... 88
721  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 17, 2012, 11:11:10 am
Another few experiments later: The 1.0.1 works fine with my Sparkfun FTDI USB-Serial converter when going to a homebrew 328 based board, and it also works with the Duemlianove with only TX/RX where I push reset at the right time. (With the normal USB pushing reset makes no difference)

There is a faint possibility that there is a fault on the Duemlianove (but it works fine with 0022 version) but all other boards I have now work fine with the old (avrdude: Version 5.4-arduino) and the new kit (avrdude: Version 5.11).

I get exactly the same problems and solutions on both Win-XP and Win-7 machines.
722  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 16, 2012, 05:24:50 pm
Status so far:

After upgrading from Arduino IDE version-0022 to the Arduino 1.0.1 it was necessary to upgrade the drivers with the new ones in the kit for upload to work on an Arduino UNO and an Arduino MEGA 2560. (These use the new "u2" chip)

Unfortunatly it has not worked for the Duemilanova (which uses the "old" FTDI chip) - the version 1.0.1 IDE still can not upload to it (error message as in earlier post, LED blinks) but the 022 IDE works fine even with the latest drivers from FTDI. This happens both on an Windows XP and a Windows 7. I suspect the same problem will be with the "serial cable" from Sparkfun which also uses the FTDI chip.
(Edit: typos fixed and ambigous wording clarified)
723  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 16, 2012, 04:54:14 pm
Working on it ... smiley-sweat now it is only the Duemilanova that is having difficulty.
724  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 16, 2012, 04:15:27 pm
Having a little help and understanding (really more the latter) is a great support.  smiley  Thanks.

The 1.0.1 now uploads correct on the win7 machine after I upgraded the USB driver (admin computer, device manager, upgrade driver ...).

I am trying the same stunt on the XP - but am having difficulty ... doesnt seem to find the driver, irrespective of my pointing to it (using the 1.0.1 kit)
725  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 16, 2012, 03:39:01 pm
At the moment both the Dueminlanove, a Mega 2560 and an UNO. Got a few homemade 328-boards I program with a "serial cable", I'll try with one of them. (The MEGA I've always had trouble to get to run on the Win7, so I cant confirm that one)

(Edited that test and failure includes the UNO)
726  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 16, 2012, 03:11:48 pm
LED 13 blinks. Both with the 022 upload (which works) and the 1.0 (which doesn't)

What bothers me I get the same problem on the other machine. I could understand if I had this on only one - in the sense one was wrongly configured.
727  Using Arduino / Installation & Troubleshooting / Re: 022 uploads, but 1.0 fails on: June 16, 2012, 02:45:00 pm
Binary sketch size: 1026 bytes (of a 30720 byte maximum)
C:\Programmer\arduino-1.0\hardware/tools/avr/bin/avrdude -CC:\Programmer\arduino-1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P\\.\COM3 -b57600 -D -Uflash:w:C:\DOCUME~1\Michael\LOKALE~1\Temp\build5901131632528936530.tmp\Blink.cpp.hex:i

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 "C:\Programmer\arduino-1.0\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.
728  Using Arduino / Installation & Troubleshooting / 022 uploads, but 1.0 fails on: June 16, 2012, 02:12:47 pm
Hi,

I can upload to my Arduino if I use the 022 version, but not when using the 1.0 (or 1.0.1) version. It comes back with a sync fail.

This is true for several Arduiono boards and on my two machines which us Win-XP and Win7(64) respectivly. So it isnt something simple like I forgot to plug it in smiley

As this works for thousands of other users there is something strange about my setup. I have both 022 and 1.0 (and now even 1.0.1) installed. I noticed the preferences file is the same - my settings are "transfered" between the versions. I have tried with a fresh preferences (delete the current one, it generates a new one)

Any clues where else to look?
729  International / Scandinavia / Re: Arduino + ethernet sende alarm ved indgang on: June 14, 2012, 04:55:11 pm
så ville jeg gerne have en computer til at stå et sted, som kunne opsamle de data, og sende en mail ved strømudfald.
Du har selvfølgeligt tænkt på at computeren kræver strøm ved dette strømudfald ... og det også gælder dine internet router, Arduinoen osv.

Du skal bare skaffe dig en Arduino med Ethernet f.eks. http://store.arduino.cc/eu/index.php?main_page=product_info&cPath=11&products_id=142

Nogle ting kan være nemmere end du tror:  Hvis det bare er en "enkel mail" så er mail protocollen tilpas enkel at Arduinoen kunne sende den selv (hvis alle detaljer er fast kodede i programmet, som navn, adresse, SMTP server m.m.)

Principerne i det du vil er nemme nok (hvis vi har forstået dig ret) - men detaljerne er besværlige. F.eks. de præcise måde Arduinoen kan se at det er HPFI der er faldet ud, og ikke bare en sikring er sprunget ...

Jeg har ikke set en færdig opskrift, men hvad har du fundet af del løsninger? Hvad mener du med "el tavlen har Ethernet"?
730  Using Arduino / Project Guidance / Re: Controlling a Thermoelectric heater/chiller for environmental chamber on: June 13, 2012, 02:55:10 pm
Why not just simply try it ?

The point of a temperature regulation is that you dont need to know the Watt/cm2/time/mm-glass whatever, it will hold the desired temperature (unless the unit is not big enough ... but again, the experiment will show it)

Written by someone who has forgotton all those heavy equations from collage a lifetime earlier....
731  Using Arduino / Project Guidance / Re: Controlling a Thermoelectric heater/chiller for environmental chamber on: June 12, 2012, 02:43:46 pm
The syntax is the if-then-else
Code:
if ( 06 < hour && hour <= 12 )
      { dosetpointstuff(75) }
else if ( 12 < hour && hour <= 18 )
      { dosetpointstuff(82) }
...  continue with above two lines for other intervals
else // no need to test for "remaining" hours in day
      { dosetpointstuff(48) }
 
Note that I use the "<=" on one of the tests. In your code, the code does not know what to do when the time is exactly 1200

Secondly, I usually rearrange the test so the value is visually between the boundaries ( X < value && value < Y )
732  Using Arduino / Project Guidance / Re: 7 inch led touchscreen on: June 10, 2012, 02:11:34 pm
I'd hazard a guess that 7" is more expensive as the main reason others use smaller displays - or the project has a size limit.

If the chip is the same, there should be no reason why more/fewer inches make any difference. Have you looked at the pixel count? The Arduino has to generate the pixels somehow, and it requiures some trickery with handling/expanding simple shapes to manage that with the RMA in the Arduino. If the 7" has many more pixels...
733  Using Arduino / Project Guidance / Re: Controlling a Thermoelectric heater/chiller for environmental chamber on: June 10, 2012, 01:59:19 pm
$70 H-bridge?!  It is only 8 Amp

As you do not need to switch quickly, I would use simple (cheap) relays. One relay to switch on/off and one to turn the current around (DPDT). Now your Arduino just needs a simple thermo device (choice are wide and varied, depends on how accurate you need to keep the temperature) and perhaps a RTC (realTimeClock) too so it konws the time of day even after a power glitch. (Otherwise it can just count seconds)

(NB: I am not a vivarium/aquarium owner at all)
734  Using Arduino / Motors, Mechanics, and Power / Re: Stepper motors and drivers problem on: June 07, 2012, 10:59:28 am
OK, here is some very simple code I have recently used to drive two steppers at the same time. I do not use any library, prefering to drive them directly. One is a Dir/Step type driver, the other a full H-bridge. The idea here is the StepCoil runs continuously (the MoveSteppers() is called as often) determined by "Slowdown", and the StepWireRatio() calls the other stepper (the one using dir/step) so I get the right kind of diagonal movement.
Code:
void MoveSteppers() {
 analogWrite(CoilPWM,45);
 if ( micros()/100-Timer > Slowdown ) {
    Timer=micros()/100 ;
    StepCoil() ;
    StepWireRatio() ;
  }
}

void StepWireRatio() { // Step according to ratio and respect limits
  TFC_Ratio += TFC_Ratio_Nom ;
  if ( TFC_Ratio > TFC_Ratio_Den ) {
    TFC_Ratio -= TFC_Ratio_Den ;
    if (TFC<TFC_Left) TFC_Dir=HIGH ;
    if (TFC>TFC_Right) TFC_Dir=LOW ;
    StepWire() ;
  }
}

void StepWire() { //step always
  digitalWrite(WireDir,TFC_Dir); // adjust direction as needed
  delayMicroseconds(50);
  digitalWrite(WireStp,(TFC%2>0)?HIGH:LOW) ;  // Step the Wire motor
  TFC = (TFC_Dir==HIGH)?TFC+1:TFC-1 ;
  CursorGoto(3,12);
  if (TFC_Dir==HIGH)
    Serial.print(TFC-TFC_Left);
  else
    Serial.print(TFC_Right-TFC) ;
  Kolon();
  Serial.print((TFC-TFC_Left)*100/(TFC_Right-TFC_Left));
  Serial.print(TFC_Dir==LOW?" <":" >");Space(3);
}

void StepCoil() {
  // Change to next Coil state
  TurnState++ ; CursorGoto(2,13);
    Serial.print(TurnState/CoilTickTurn);
    Kolon();
    Serial.print((TurnState%CoilTickTurn)*100/CoilTickTurn);
    Space(2);
  switch (TurnState%4) {
    case 0:    // 1010
      digitalWrite(Coil_A, HIGH);
      digitalWrite(Coil_B, LOW);
      digitalWrite(Coil_C, HIGH);
      digitalWrite(Coil_D, LOW);
      break;
    case 1:    // 0110
      digitalWrite(Coil_A, LOW);
      digitalWrite(Coil_B, HIGH);
      digitalWrite(Coil_C, HIGH);
      digitalWrite(Coil_D, LOW);
      break;
    case 2:    //0101
      digitalWrite(Coil_A, LOW);
      digitalWrite(Coil_B, HIGH);
      digitalWrite(Coil_C, LOW);
      digitalWrite(Coil_D, HIGH);
      break;
    case 3:    //1001
      digitalWrite(Coil_A, HIGH);
      digitalWrite(Coil_B, LOW);
      digitalWrite(Coil_C, LOW);
      digitalWrite(Coil_D, HIGH);
    }
}
You Milage may vary. No Garantees smiley
735  Using Arduino / Motors, Mechanics, and Power / Re: Stepper motors and drivers problem on: June 06, 2012, 05:56:15 pm
Try entering "57BYGH115-003 " in your google search. That usually gets you several web pages where the specfications (voltage, amperes etc ) are shown.

In your Arduino IDE try the menu File - Examples - Stepper - One revolution. There is the code fo one stepper. You only need to replicate the line defining the Stepper varaible (with a new name) and one call to each steper variable's move at different speeds. I also suggest you Google for "Arduino Stepper nonblocking " to run them simlultaneously.

Running at max speed depends on the load, and a bit of tweaking the (software) acceleration and driver current "curves" (if the DQ-542MA supports that)
Pages: 1 ... 47 48 [49] 50 51 ... 88