Show Posts
Pages: [1] 2 3 4
1  Forum 2005-2010 (read only) / Troubleshooting / I did not have any problem on: August 01, 2008, 02:23:17 pm
running diecimila or nano on my ubuntu 8.04 environment

only running on vista needs lot of patience, thats why i boot my Lenovo N200 with Hardy Heron

2  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE12 Auto Format on Ubuntu 8.04 crashes on: October 28, 2008, 04:04:51 pm
Short example WinXP:
--------------------------
//
// Auto Format bug
unsigned int FL_MM[] = {
 0, 14, 40, 42, 150, 70, 200, 300};

void setup() {
 delay(5000); // give LCD Time to warm up
}
------------------------------------------------------

java.lang.ArrayIndexOutOfBoundsException: 1024

      at processing.app.tools.AutoFormat.getnl(AutoFormat.java:343)

      at processing.app.tools.AutoFormat.show(AutoFormat.java:621)

      at processing.app.Editor$15.actionPerformed(Editor.java:728)

      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

      at javax.swing.AbstractButton.doClick(Unknown Source)

      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

      at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)

      at java.awt.Component.processMouseEvent(Unknown Source)

      at java.awt.Component.processEvent(Unknown Source)

      at java.awt.Container.processEvent(Unknown Source)

      at java.awt.Component.dispatchEventImpl(Unknown Source)

      at java.awt.Container.dispatchEventImpl(Unknown Source)

      at java.awt.Component.dispatchEvent(Unknown Source)

      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

      at java.awt.Container.dispatchEventImpl(Unknown Source)

      at java.awt.Component.dispatchEvent(Unknown Source)

      at java.awt.EventQueue.dispatchEvent(Unknown Source)

      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.run(Unknown Source)
3  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE12 Auto Format crashes on WinXP too on: October 26, 2008, 05:29:36 pm
same bug with windows xp:
______________________________
java.lang.ArrayIndexOutOfBoundsException: 1024

      at processing.app.tools.AutoFormat.getnl(AutoFormat.java:343)

      at processing.app.tools.AutoFormat.show(AutoFormat.java:621)

      at processing.app.Editor$15.actionPerformed(Editor.java:728)

      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

      at javax.swing.AbstractButton.doClick(Unknown Source)

      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

      at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)

      at java.awt.Component.processMouseEvent(Unknown Source)

      at java.awt.Component.processEvent(Unknown Source)

      at java.awt.Container.processEvent(Unknown Source)

      at java.awt.Component.dispatchEventImpl(Unknown Source)

      at java.awt.Container.dispatchEventImpl(Unknown Source)

      at java.awt.Component.dispatchEvent(Unknown Source)

      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

      at java.awt.Container.dispatchEventImpl(Unknown Source)

      at java.awt.Component.dispatchEvent(Unknown Source)

      at java.awt.EventQueue.dispatchEvent(Unknown Source)

      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.run(Unknown Source)
4  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE12 Auto Format on Ubuntu 8.04 crashes on: October 25, 2008, 10:39:32 am
no, I deleted all trailing blanks, but Auto Format still crashes
---------------------------------------------------------

java.lang.StringIndexOutOfBoundsException: String index out of range: 1022
      at java.lang.String.charAt(String.java:687)
      at processing.app.tools.AutoFormat.getchr(AutoFormat.java:313)
      at processing.app.tools.AutoFormat.cpp_comment(AutoFormat.java:243)
      at processing.app.tools.AutoFormat.getnl(AutoFormat.java:370)
      at processing.app.tools.AutoFormat.show(AutoFormat.java:675)
      at processing.app.Editor$15.actionPerformed(Editor.java:728)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
      at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
      at java.awt.Component.processMouseEvent(Component.java:6041)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      at java.awt.Component.processEvent(Component.java:5806)
      at java.awt.Container.processEvent(Container.java:2058)
      at java.awt.Component.dispatchEventImpl(Component.java:4413)
      at java.awt.Container.dispatchEventImpl(Container.java:2116)
      at java.awt.Component.dispatchEvent(Component.java:4243)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      at java.awt.Container.dispatchEventImpl(Container.java:2102)
      at java.awt.Component.dispatchEvent(Component.java:4243)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
5  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE12 Auto Format on Ubuntu 8.04 crashes on: October 25, 2008, 06:58:07 am
I deleted some more lines, the bug happens as long as the arrays are initialized.

-------------------------
//
// panorobot program for Olympus E510 DZ Kit
// - with serial LCD
// - with Nunchuk
// - EasyDriver 3
// - opto coupled remote focus and shutter trigger
// - Arduino Nano
//
// - 4 Eckbrennweiten des Kits und drei BWs für 70-300mm
// - mehrreihig
// - BKT
// - optional Delay
// - Timelaps with FL 0
// - Nullpunkt setzen, Anzeige der Bildzahl ab Nullpunkt zur gewählten BW
//
//
// Timelaps funktion ohne Bewegung evtl. einfach ohne Motorstrom?
//
//
//  TODO: evtl. opt. kurze Erinnerung an AEL, AFL, RemoteSet, WB, no Liveview, Delay
//

// set params for 7 certain focallengths FL / and 0 for timelapse without moving

unsigned int FL_MM[] = {
  0, 14, 40, 42, 150, 70, 200, 300};
unsigned int MAX_ROW[] = {
  1, 4, 10, 10, 36, 17, 48, 72}; // max number of rows
long STEPS_FL_H[] = {
  0, 39996, 15383, 14813, 4166, 8888, 3100, 2072};
long STEPS_FL_V[] = {
  0, 49995, 19998, 19998, 5555, 11764, 4166, 2778};
unsigned int NPP[] ={
  0,350,155,350,250,0,0,0};

void setup() {
  // init LCD
  delay(5000); // give LCD Time to warm up
}
6  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE12 Auto Format on Ubuntu 8.04 crashes on: October 23, 2008, 11:11:32 am
The comment part at begin seems to be the problem,
without it Auto Format works

-------------------------

//
// panorobot program for Olympus E510 DZ Kit
// - with serial LCD
// - with Nunchuk
// - EasyDriver 3
// - opto coupled remote focus and shutter trigger
// - Arduino Nano
//
// - 4 Eckbrennweiten des Kits und drei BWs für 70-300mm
// - mehrreihig
// - BKT
// - optional Delay
// - Timelaps with FL 0
// - Nullpunkt setzen, Anzeige der Bildzahl ab Nullpunkt zur gewählten BW
//

// Timelaps funktion ohne Bewegung evtl. einfach ohne Motorstrom?

//
//  TODO: evtl. opt. kurze Erinnerung an AEL, AFL, RemoteSet, WB, no Liveview, Delay
//

#define VERSION "?fabso.lutum V16"

// set params for 7 certain focallengths FL / and 0 for timelapse without moving
#define MAX_INDEX 7
unsigned int FL_MM[] = {
  0, 14, 40, 42, 150, 70, 200, 300};
unsigned int MAX_ROW[] = {
  1, 4, 10, 10, 36, 17, 48, 72}; // max number of rows
long STEPS_FL_H[] = {
  0, 39996, 15383, 14813, 4166, 8888, 3100, 2072};
long STEPS_FL_V[] = {
  0, 49995, 19998, 19998, 5555, 11764, 4166, 2778};
unsigned int NPP[] ={
  0,350,155,350,250,0,0,0};

// Pins for shuttercontrol
#define FOCUS_PIN 6
#define SHUTTER_PIN 7

//LCD Pins (only D3)
#include <SoftwareSerial.h>
#define rxPin 4  // rxPin is immaterial - not used - just make this an unused Arduino pin number
#define txPin 3

#include <Wire.h>

SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);

// NUNCHUK (Pins: A4 green, A5 yellow
static uint8_t nunchuck_buf[6];   // array to store nunchuck data
// nunchuck X Y
int NUN_X;
int NUN_Y;
// nunchuk buttons
int NUN_C;
int NUN_Z;

// Globals
byte LU_ZERO_SET = 0;
byte LU_FL_Index = 0;
byte LU_DONE;
byte LU_BKT = LOW;
unsigned int LU_Pics_to_do = 1; // change here init no of pics !!!
unsigned int LU_Pic_Delay = 1;   // delay between two pics = wait before move
unsigned int LU_Rows_to_do = 1;  // number of rows

// STEPPER (Pins: D9,D10,D11,D12)
// horizontal
int hsteppin = 9;
int hdirpin = 10;
long LU_STEPS_H = 0;
// vertikal
int vsteppin = 11;
int vdirpin = 12;
long LU_STEPS_V = 0;

// Cam data
int no_of_pics;
int row;
int CAM_position; // 0 at start, 1 if position is set
int CAM_hori_pics;// 0 at start, n if no of horizontal pics is set
int CAM_row_pics;// 1 at start, n if no of vertical pics is set
int CAM_MM = 0; // initial focal lenght
long CAM_STEPS = 0; // initial horizontal steps for 1 pic
long CAM_STEPS_ROW = 0; // initial vertical steps per row
int CAM_NPP; // cam NPP in tenth of mm


//-------------------------
void setup() {

  // init LCD
  delay(5000); // give LCD Time to warm up
  pinMode(txPin, OUTPUT);
  mySerial.begin(9600);    // 9600 baud is LCD chip comm speed
  mySerial.print("?G420");
  delay(100);                 // pause to allow LCD EEPROM to program
  mySerial.print("?c0");   // turn cursor off
  delay(200);  

  // init nunchuck
  Serial.begin(19200);
  nunchuck_init(); // send the initilization handshake
  delay(200);
  nunchuck_zero();
  nunchuck_get_data();
  delay(200);

  // cam pins
  pinMode(FOCUS_PIN, OUTPUT);
  pinMode(SHUTTER_PIN, OUTPUT);
  digitalWrite(FOCUS_PIN, LOW);
  digitalWrite(SHUTTER_PIN, LOW);

  // vertikal motor pins
  pinMode(vdirpin, OUTPUT);
  pinMode(vsteppin, OUTPUT);

  // horizontal motor pins
  pinMode(hdirpin, OUTPUT);
  pinMode(hsteppin, OUTPUT);

  // initial values
  LU_BKT = 0;         // no bracketing  
  LU_Rows_to_do = 1;  // 1 row

}
7  Forum 2005-2010 (read only) / Troubleshooting / IDE12 Auto Format on Ubuntu 8.04 crashes on: October 22, 2008, 01:15:19 pm
whenever I call "Auto Format"
I got an Index out of BoundsExecption: String Index out of range:1022
8  Forum 2005-2010 (read only) / Development / Re: Stepper Motor with EasyDrive V3 on: October 11, 2008, 02:50:51 pm
there is no need to use the stepper lib as the ED uses only step and dir

tipp: do some ramping to start and stop the stepper more smooth
i.e. decreasing or increasing the delay

just try how much delay your motor needs


----code snippet ---------------

 unsigned int ramp = 160; // steps to start ramping
 unsigned int del; // delay: should be >= 40

 del = 400; // initial delay
 steps = st; // steps to go

 for (i = 0; i<steps; i++)
 {
   digitalWrite(steppin, HIGH);
   delayMicroseconds(del);        // pauses for del microseconds  
   digitalWrite(steppin, LOW);
   delayMicroseconds(del);        // pauses for del microseconds
   if (i < ramp) del-=2;           // ramp up
   if (i > steps-ramp) del+=2;     // ramp down
 }
------------------------------------------------------

cheers
- Paul
9  Forum 2005-2010 (read only) / Deutsch / Re: Arduino-User wohnen.. ?? on: September 27, 2009, 02:43:47 pm
auch Bonn ...
10  Forum 2005-2010 (read only) / Deutsch / Ground prüfen on: February 20, 2010, 03:19:51 am
prüf mal die Masseverbindungen zum Stepper

am Anfang hatte ich auch nur Zappelkram ...
11  Forum 2005-2010 (read only) / Deutsch / Re: Schrittmotor on: January 30, 2010, 09:14:50 am
wenn 750mA reichen würde ich einen EasyDriver nehmen

http://www.watterott.com/EasyDriver-v4-Stepper-Motor-Driver
12  Forum 2005-2010 (read only) / Deutsch / Re: Projekt Wärmebildkamera ( Jugend forscht ) on: September 05, 2009, 09:23:27 am
Zahnrad erleichtern z.B. so wie es hier zu sehen ist

http://www.rc-motorradshop.de/produkte/produktbilder/rws48102.jpg
13  Forum 2005-2010 (read only) / Deutsch / Re: Projekt Wärmebildkamera ( Jugend forscht ) on: September 05, 2009, 06:10:11 am
die Links zu den Motoren funzen nicht, weil da deine Session mit drin steht ...

poste besser einfach nur die Artikel-Nummern

wie steuerst du den Stepper an?
gleich mit Vollgas oder über eine Rampe?

du hast das Teil ja sehr massiv ausgelegt und brauchst schon einen ziemlichen Impuls um die Masse in Gang zu setzen

allein das Zahnrad liesse sich deutlich erleichtern durch Bohrungen
14  Forum 2005-2010 (read only) / Deutsch / Re: Projekt Wärmebildkamera ( Jugend forscht ) on: April 23, 2009, 04:11:52 pm
ich empfehle für die Ansteuerung von Steppern die EasyDriver von Sparkfun, mit dem shield hatte ich Probleme

habe damit einen Kamerarobot gebaut, der eine DSLR für Gigapixelpanoramen positioniert, für die Steuerung noch einen Nunchuk und für die Menu-Anzeige ein serielles LCD angeschlossen
15  Forum 2005-2010 (read only) / Deutsch / Re: FrOSCon 2009 Call for papers on: April 14, 2009, 05:44:59 am
in der ebucht gibt es wieder Roboduinos zu günstigen Preisen, auch die Nano-Version
Pages: [1] 2 3 4