Show Posts
Pages: 1 [2] 3 4 ... 12
16  Using Arduino / Programming Questions / Re: USB Shield + EOS control on: March 09, 2013, 02:28:56 am
SOLVED
If this could help any interested users, the issue has been solved thanks to Lauszus from TKJ Electronics blog.
He's the guy who wrote the USB Host library and was kind enough to help me out.
Check the comment over here http://blog.tkjelectronics.dk/2013/02/documentation-added-for-the-usb-host-library/comment-page-1/#comment-326922.
You'll find the details and a zip file to help overcome the hurdles.

Hope you'll find this useful.
 smiley
17  Using Arduino / Interfacing w/ Software on the Computer / Re: "Dimmer" noob question on: March 09, 2013, 01:40:00 am
PaulS, read one of your comments here http://arduino.cc/forum/index.php/topic,40414.0.html

And so added this in the arduino sketch:
Code:
if (Serial.available()) {
    // read the most recent byte (which will be from 0 to 255):
    brightness = Serial.read();
    Serial.print (brightness);  //this was added now to check data w/o openineg serial monitor
    // set the brightness of the LED:
    analogWrite(ledPin, brightness);
  }

and this in processing sketch:
Code:
// write the current X-position of the mouse to the serial port as
 // a single byte
 port.write(mouseX);
 println (port.readString());

I get "null" repeatedly.
18  Using Arduino / Interfacing w/ Software on the Computer / Re: "Dimmer" noob question on: March 09, 2013, 01:13:33 am
Fixed the "Display 0 does not exist..." by editing prefernces.
Still nothing
19  Using Arduino / Interfacing w/ Software on the Computer / Re: "Dimmer" noob question on: March 09, 2013, 01:08:36 am
This is really weird.
Still nothing.
I have a message stating

"Display 0 does not exist, using the default display instead."

But from reading the various Processing forums this seems redundant...
20  Using Arduino / Interfacing w/ Software on the Computer / Re: "Dimmer" noob question on: March 09, 2013, 12:56:18 am
First of all thanks for checking this out.
This must mean physical connection is wrong.
I'm going over everything again.  smiley-slim
21  Using Arduino / Programming Questions / Re: USB Shield + EOS control on: March 08, 2013, 02:23:38 pm
Quote
it dangles somewhere below on my "I want to do" list ... (too many fun projects .. too little time )
I know the feeling...  smiley-wink
22  Using Arduino / Interfacing w/ Software on the Computer / Re: "Dimmer" noob question on: March 08, 2013, 02:05:58 pm
Quote
you're LED is not attached to A9. Why did you say it was?
I'm used to the UNO and am confused by the MEGA. According to this code I should connect the LED to PWM 9, right?
That was my (wrongly stated) meaning.
Quote
What did this show? Which port is the Arduino actually connected to?
Com9 which according to the processing feedback is [1]
Quote
Are you sure about this?
Yeap. This is taken from the Arduino playground. http://arduino.cc/en/Tutorial/Dimmer
Quote
Is it safe to assume that you have written a simple sketch on the Arduino to confirm that the LED is wired correctly?
Indeed I have
23  Using Arduino / Interfacing w/ Software on the Computer / Re: "Dimmer" noob question on: March 08, 2013, 12:48:15 pm
Thanks.
Using Mega 2560

Arduino code:
Code:
const int ledPin = 9;      // the pin that the LED is attached to

void setup()
{
  // initialize the serial communication:
  Serial.begin(9600);
  // initialize the ledPin as an output:
  pinMode(ledPin, OUTPUT);
}

void loop() {
  byte brightness;

  // check if data has been sent from the computer:
  if (Serial.available()) {
    // read the most recent byte (which will be from 0 to 255):
    brightness = Serial.read();
    // set the brightness of the LED:
    analogWrite(ledPin, brightness);
  }
}

Processing code:
Code:
import processing.serial.*;
 Serial port;
 
 void setup() {
 size(256, 150);
 
 println("Available serial ports:");
 println(Serial.list());
 
 // Uses the first port in this list (number 0).  Change this to
 // select the port corresponding to your Arduino board.  The last
 // parameter (e.g. 9600) is the speed of the communication.  It
 // has to correspond to the value passed to Serial.begin() in your
 // Arduino sketch.
 port = new Serial(this, Serial.list()[1], 9600); 
 
 // If you know the name of the port used by the Arduino board, you
 // can specify it directly like this.
 //port = new Serial(this, "COM1", 9600);
 }
 
 void draw() {
 // draw a gradient from black to white
 for (int i = 0; i < 256; i++) {
 stroke(i);
 line(i, 0, i, 150);
 }
 
 // write the current X-position of the mouse to the serial port as
 // a single byte
 port.write(mouseX);
 }
24  Using Arduino / Interfacing w/ Software on the Computer / "Dimmer" noob question on: March 08, 2013, 08:01:16 am
Hey there
I'm just trying to make my first steps with processing communicating with Arduino and am trying to run the Dimmer example.
What happens is that once communication is established, I can see the RX ked on my Mega constantly on, but no dimming - or in fact no light at all - from the LED I've attached to A9.

I'm using Processing 1.5.1 with the corresponding sketch and have changed the serial value here
Code:
port = new Serial(this, Serial.list()[0], 9600);
from 0 to 1, to correspond with the arduino.

Any ideas? Is this a common noob error...?
25  Using Arduino / Programming Questions / Re: USB Shield + EOS control on: March 08, 2013, 12:23:15 am
 smiley-slim
No one here has dealt with this project?
 smiley-sad
26  Using Arduino / Programming Questions / USB Shield + EOS control on: March 07, 2013, 10:10:03 am
Hey all.

I've recently discovered this EOS control project: http://www.circuitsathome.com/camera-control/digital-camera-control-using-arduino-usb-host-shield-part-1-basics/comment-page-2#comment-18006
It was developed by the creators of the USB shield and it seems like a great project.
Only problem, as I see it, seems to be that it's not a properly documented project and the dedicated libraries suffer from
some inconsistencies. This leads to some errors and problems that some have figured out and solved, and others have not.
Since I am not a professional coder, I've combed the aforementioned blog through and through and have managed to make some progress. But now I've encountered some errors that I cannot figure out.
If by any chance someone here has some experience with this project, I'd appreciate some help and guidance.

To sum up the steps I've taken and where I am now:
I managed to compile all sketches except EOSRemote.
It was after I:

1. Replaced qp_ccp
2. Commented out these lines in the qp_port.cpp:
// void operator delete(void *) {
// Q_ERROR(); // this operator should never be actually called
// }
3. Added the following line to eoseventhandler.h file found in EOSCamController folder:
virtual void OnObjectCreated(const EOSEvent *evt) {};

I still get the following error for EOSRemote:

EOSRemote.cpp: In member function ‘virtual void CamStateHandlers::OnDeviceInitializedState(PTP*)’:
EOSRemote.pde:-1: error: cannot declare variable ‘hnd’ to be of abstract type ‘EosEventHandlers’
/eoseventhandlers.h:12: note: because the following virtual functions are pure within ‘EosEventHandlers’:
C:\Program Files (x86)\arduino-1.0.1\libraries\ptp/eoseventparser.h:37: note: virtual void EOSEventHandlers::OnObjectCreated(const EOSEvent*) 

I suppose it has to do with the repercussions of editing the libraries, but then again, it was done by following the tips I've managed to collect over there, written by people who seem to have it all figured out.
27  Using Arduino / Installation & Troubleshooting / Re: USB HOST LIBRARY on: March 05, 2013, 01:09:48 pm
Did you ever find it?
It's over here https://github.com/felis/USB_Host_Shield_2.0 as far as I know.
28  Using Arduino / Motors, Mechanics, and Power / Re: Easy driver vs StepStick A4988 on: March 01, 2013, 06:30:58 am
Thanks for the info  smiley
29  Using Arduino / Motors, Mechanics, and Power / Re: Easy driver vs StepStick A4988 on: March 01, 2013, 02:26:14 am
The A4988 is preferred; 2000ma max vs. the A3967 at 750ma. Not much difference otherwise.
Seriously? This is quite a revelation. As far as coding, power, microstepping - no difference?
If so, am I correct in assuming that an arduino with 2 of those will be able to move 3 stepping motors
with the same control I'm used to with the ED?

Thanks
30  Using Arduino / Motors, Mechanics, and Power / Easy driver vs StepStick A4988 on: March 01, 2013, 01:27:57 am
I would very much appreciate if someone could walk me through the differences, or pros and cons of the Easy driver and the StepStick A4988.
I'm in the process of designing a project involving an arduino controlling up to 4 stepper motors, and will need microstepping.
I also have a good experience working with the ED, and am happy with it.
But I've only just now found out about the StepStick A4988 which is significantly smaller and would like to know if these two are exchangeable or if one has better offerings than the other.
Thanks.
Pages: 1 [2] 3 4 ... 12