![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Pages: 1 2
I’m working on a panoramic head but I will control it by the Ardunio processor platform and not with Papywizard. I have ordered the Merlin/Orion mount but I have not received it jet (I will probably get it later this week) but I’m wondering if someone have any good suggestions on the electronics needed to connect the Arduino to the Merlin/Orion head. My idea was to replace the “remote control” with my Arduino. I have read the stuff on the autopano.net wiki but Google translate is not very good and I don’t speak French.
I have seen this image: http://www.autopano.net/wiki-fr/action/ … atic1.png. It looks like I should be able to connect the Arduino instead on the MAX232 unit. It saiys that the transistors are not necessary. Can someone explain a little more why you have them and what alternative you have without the transistors?
I’m planning on presenting the project online with all hardware/software as soon as I have something up and running.
Any help is greatly appreciated!
Offline
This is a very nice project!
Controlling the Merin/Orion through the TTL serial line is very easy. The internal controller uses only 1 line, connected to both RD and TX of both micro-controllers (PIC16Fxxx or something).
So, as for the TTL-RS232 or TTL-BT converters, you just need to wire the RD and TX signals of your Arduino to this line, through 2x 220 Ohm resistors (if these RD/TX signals are TTL; don't connect to RS-232 levels!). From the Arduino point of view, you read/write on your serial line as usual; you just have to think that the transmission is half-duplex: once you have written a command, you have to wait for the head answer.
You will find the Merlin/Orion protocol there:
http://www.papywizard.org/wiki/DevelopG … nprotocole
Hope this helps.
Offline
I’m not sure I fully get it. Do you mean something like this?
Arduino Port tx <---> [220 ohm]
}<---> Merlin/Orion data port.
Arduino Port rx <---> [220 ohm]
If it is just one port shouldn’t I be able to use one port on Arduino as well, and just change input/output when I want to read/write?
Arduino Port tx <---> [220 ohm] <---> Merlin/Orion data port.
Last edited by GuzZzt (2009-06-29 13:09:19)
Offline
Yes, the wiring is that one.
I'm not sure you will be able to use only one pin: once you have send all the datas for a command, you will have to switch your line in input mode; doing this, you may miss datas from the head. And you will also have to implement the serial timing on a standard IO pin (9600-8-N-1); I think using the dedicated serial port of the Arduino is muuuuch more simple.
Offline
I have now finally got my Merlin mount and I did a first communication test with it last night and it was a success! Thanks for the help on how to connect it. Now I will go on and setup all the commands I need.
Offline
Good! Can you tell us what you plan to do? I'm interested to have a small controller with pre-defined presets, for full-spherical panos, for example...
I have an Arduino board too, so I can make some tests with your firmeware if you publish it from time to time...
Offline
My plan is to make a full featured Gigapixel rig. It will have a LCD display and a small joystick to set start,stop/corner positions and then be able to take all the photos.
I will publish everything as soon as I have a first version up and running (hopfully in a few days).
Offline
Hi Guzzzt,
a WII Nunchuk is a nice gadget to set positions via joystick, it is easy to combine with an arduino
code you can find on arduino playground "input devices"
or a lcd with joystick look under news in the arduino forum: Low-cost graphic Nokia 3310 LCD shield & Joystick
Last edited by Paul (2009-08-05 20:43:53)
Offline
Thanks for the tips but the LCD and Joystick parts are already finished. I use a simple little joystick and a 128x64 graphical display. I had to do something while I waited for the Merlin mount to arrive...
Offline
GuzZzt wrote:
I had to do something while I waited for the Merlin mount to arrive...
You also could have worked over your web-site . . . nice text on it . . ![]()
(i know the problem . . .
)
best, Klaus
P.S.: a complete rig of head and controller would be interesting!
Offline
The build is now finished! It is raing outside so I can't go out and test it just jet
but I will as soonas it stops.
I will write a full description and release the code etc. but here is two photos of it to start with.

Offline
That's a big box!
Offline
Yes, I know. A designed PCB with both the Arduino and the rest of the electronics plus smaller buttons or a toutch screen would make it a lot smaller. But now I know that it is possible to get it to work and I can start to take shots with it.
Offline
Cool Arduino project, I like the 80's retro Video Game controller look, was that intentional ![]()
Just now wondering how easy you found it to build.
Best
Gordon
Offline
I guess the retro look was a little bit accidental, but I like how it ended up ![]()
The project was suprisingly easy to implement. But in reality is it just down to three parts. 1. A display and others have already done nice libs for this. 2. Buttons, I used a shift register to shift it in but that is also easy with the arduino. 3. Communication with Merlin mount. fma38 and the other Papywizard developers have already done the hard work here on how to talk to the Merlin mount so it was just to convert it to Arduino code.
Offline
And here is my first panorma taken with the mount.
http://www.gigapixel.nu/photo.php?id=1
It took me 33 minutes to take the 312 photos. Is that a long time compared to Papywizard?
Offline
GuzZzt wrote:
It took me 33 minutes to take the 312 photos. Is that a long time compared to Papywizard?
No thats quite a good value.
May you share your Arduino code? I have an Arduino with LCD shield and want to give it a try ...
Offline
thanks, so I will wait for it ...
Offline
And now is the project online as well. You can download the source code for both the project and for the Merlin mount Arduino library.
http://www.gigapixel.nu/info_project.php
Offline
Thanks! I'll put a link in Papywizard main site.
Offline
Did anyone get the Example from GuzZzt running?
I downloaded the files from his website but if i try to compile just the sample I get the following error and don't know what to do:
MerlinExample.cpp: In function 'void setup()':
MerlinExample:11: error: 'Serial' was not declared in this scope
It would be cool if somebody could help me. If the merlin is running with my arduino uno i will write a howto for the others.
Thanks
Stefan
Offline
Strange i dont remember this Error i have a lot other Problems before and after but not this. :-) I have freez my work on arduino for a little time after he has blow up. My fault, not from the Code. :-)
Offline
At the moment I don't have a Merlin but I'm already testing with my Arduino.
After adding the following line:
#include <avr/pgmspace.h>
Which I found in the MX2 Project I could compile the project and upload it to my Arduino.
This is my testprogramm at the moment:
#include <avr/pgmspace.h>
#include <EEPROM.h>
#include <LiquidCrystal.h>
#include <merlin_mount.h>
// define the camera pins
#define CAMERA_PIN 8
#define FOCUS_PIN 12
#define STATUS_PIN 10
// setup action (run once the arduino is started)
void setup() {
// set the pin modes (OUTPUT or INPUT)
pinMode(CAMERA_PIN, OUTPUT);
pinMode(FOCUS_PIN, OUTPUT);
pinMode(STATUS_PIN, OUTPUT);
// initialise the serial interface
Serial.begin(9600);
// initialise the communication to the merlin
merlin.init();
// set the status led to high
digitalWrite(STATUS_PIN, HIGH);
}
// loop for ever (programm the arduino is running)
void loop() {
long pos_pitch = 0;
long pos_yaw = 0;
delay(5000);
// start to move downward
merlin.startMoving(AXIS_PITCH, DIR_DOWN);
delay(5000);
// start to move left as well
merlin.startMoving(AXIS_PITCH, DIR_LEFT);
delay(5000);
// stop continues moving
merlin.stopMoving(AXIS_YAW);
merlin.stopMoving(AXIS_PITCH);
// read current position
pos_pitch = merlin.readAxisPosition(AXIS_PITCH);
pos_yaw = merlin.readAxisPosition(AXIS_YAW);
// set the new yaw + 20 degree
pos_yaw = pos_yaw + merlin.fromAngle(20.0);
// move 20 degrees in yaw
merlin.driveToPositionBothAxis(pos_yaw, pos_pitch, SYNC_SYNCHRONY);
// do nothing anymore
while(1){
delay(5000);
}
}
Maybe it's a problem with the new Arduino version. I'm using an Arduino Uno and Arduino 0022 software.
Last edited by gloob (2011-02-27 15:12:31)
Offline
Pages: 1 2
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
