You are not logged in.



#1 2009-11-05 13:28:58

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Owl Panoramic Head - electronics

Some of you have been following the DIY panoramic head thread and have seen some of my design and progress of my 'Owl Panoramic Head'. I decided to start a new thread on it for the electronics design. I would appreciate input on my design ideas in case I have forgot to include something or if I'm heading the wrong way. If I use the term servo without RC in front of it I will be referring to a dc motor with an encoder and the required electronic for closed loop control.

The system will be based on the Arduino Duemilanove micro controller board. The interface card will plug onto the card using the existing header strips.
Card input/outputs will be:
1/ Serial TX/RX
2/ Shutter and focus with relays interfaced
3/ Step and direction out for the stepper/servo systems (could be configured PWM for RC servo control)
4/ Flash detection input
5/ Error interrupt for servo system
6/ Limit/emergency stop switch inputs
7/ Home switch (future development)

All the switch connections will be a 3 pin header with signal GND and Vcc. All remaining pins will have a wire connection point for special/missed connections. I will have a 7805 on-board to supply all the boards with 5 volts. Main power supply input for power distribution to the stepper/servo.

Please let me know if this appears to be a good design concept, what I am missing and any specific pin connections in-case it would match existing Arduino firmware.

All of the mechanical components should be finished by this weekend, I am just waiting for the delivery of the timing belts. I want to finalized the control boards and interface board designs this next week so that I can get the first boards made. Any assistance with the code for the Arduino will be appreciated since I must admit my coding skills are very amateur.


--Greg Nuspel

Offline

 

#2 2009-11-05 14:17:21

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

You should also add a third axis, for either roll control, or focal control.
And maybe 4 additionnal inputs to connect a 4-arrows keyboard, to move the head manually.

PS: I added this thread in the main topics.


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#3 2009-11-05 15:01:53

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

Excellent suggestions, I'll definitely add those to the board.


--Greg Nuspel

Offline

 

#4 2009-11-05 15:49:40

Paul
Member
From: Bonn, Germany
Registered: 2008-08-30
Posts: 846

Re: Owl Panoramic Head - electronics

Hi Greg,
do you plan to run the head via Papywizard with serial or bluetooth connection or should the owl run controlled by the arduino?

Second case is much more complex.

there is an nice blog by Dan Thompson about motion control and arduino
http://danthompsonsblog.blogspot.com/se … el/Arduino

a LCD may be usefull to have some response from the owl
if you add a serial LCD, it cost only two pins on the arduino
http://moderndevice.com/LCD

Last edited by Paul (2009-11-05 15:56:44)


Paul

close, but no cigar ... ... ...

Offline

 

#5 2009-11-05 16:33:30

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

Paul,

I was planning to run the Owl through the Arduino in as much as counting the steps and monitoring the system. I figure Papywizard will do all the hard calculations and send instruction via the Bluetooth. The Arduino is just for keeping track of the positions and decoding the instructions from Papywizard. It will also control the shutter etc. I am hoping that Papywizard can issue an instruction, confirm the data then wait until the mount indicates last instructions are completed. It will also be useful for the Arduino to send the present positions back to Papywizard. This way using the jog buttons on the Owl you can visually pick the start and end points for a Gigapixel shot.


--Greg Nuspel

Offline

 

#6 2009-11-05 17:33:55

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

Keep in mind that Papywizard is not designed to receive asynchronous data from the head; it always initates the communication, by asking the position (periodically to monitor it on the GUI), or requesting a new position.

As I explained before, when a goto command is sent, the head should execute it in background, and continue to handle new commands ; Papywizard continue to periodically read the position and the status to see if the head is still moving or if the drive command ended.


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#7 2009-11-05 18:15:09

claudevh
Moderator
From: Mont-Saint-André (Belgium)
Registered: 2007-11-25
Posts: 1301
Website

Re: Owl Panoramic Head - electronics

Hi Greg,

2/ Shutter and focus with relays interfaced

Maybe beter to use "opto couplers" who are cheaper than relays and more save for the camera ...?


cool Claude cool
Merlin + Papywizard on Windows 7 & Nokia 770 § N810 & Acer (Netbook) + PanoramaApp Androïd + Deltawave PapyMerlin BT + Autopano
Spherical Pano (180 x 360) with Canon 40D + Canon EF-S 10-22mm f/3.5-4.5 Zoom & Pôle Pano with Canon 5D MK2 and shaved Tokina 10-17 3.5-4.5 AF DX Fisheye
Gigapixel photography with Nikon D200 + Sigma 70-200 F 2.8 EX DG APO HSM

Offline

 

#8 2009-11-05 18:36:28

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

claudevh wrote:

Hi Greg,

2/ Shutter and focus with relays interfaced

Maybe beter to use "opto couplers" who are cheaper than relays and more save for the camera ...?

I can do that I thought switch contacts would work for anything just like in a remote release. Does anyone have a specific opto coupler that is known to work with camera?


--Greg Nuspel

Offline

 

#9 2009-11-05 18:38:46

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

fma38 wrote:

Keep in mind that Papywizard is not designed to receive asynchronous data from the head; it always initates the communication, by asking the position (periodically to monitor it on the GUI), or requesting a new position.

As I explained before, when a goto command is sent, the head should execute it in background, and continue to handle new commands ; Papywizard continue to periodically read the position and the status to see if the head is still moving or if the drive command ended.

This should work fine. One question is would Papywizard read the positions of the head after we move it with the jog buttons to a start or end point and then be able to store that?


--Greg Nuspel

Offline

 

#10 2009-11-05 19:15:17

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

No problem; once connected, Papywizard periodically calls the read function to update the position (this is done in a thread, 10 times per second). So, the current position is always known.

I second Claude: using an opto is better. You can use a CNY17 or so (you don't need to switch high voltage/current or at a very high rate). It drains less current than a relay, and don't break unless you fry it wink


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#11 2009-11-06 01:27:45

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

Would it be a good idea to use a joy stick http://dkc3.digikey.com/PDF/C091/P1941.pdf interface for the manual positioning? One reason I ask this is I am running short of digital input pins and the analog pins are open for use. There could be also the advantage of having variable speed of the axis movement.

The other option is stepping up to the Arduino Mega and then there is tons of room for expansion. The Mega will provide more processing power as well, and if needed I could run a brake system for the axis with this controller, price is a minor increase except for us that already have the Duemilanove. But you can always make another project with the Duemilanove. The Mega also has the advantage of multiple serial ports 4 times the memory. Then things like the LCD become possible. (Anyone want to buy a slightly used Duemilanove :-) )


--Greg Nuspel

Offline

 

#12 2009-11-06 08:09:33

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

An analog joystick would be just great! You can then change the moving speed according to the position smile


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#13 2009-11-06 20:49:33

Paul
Member
From: Bonn, Germany
Registered: 2008-08-30
Posts: 846

Re: Owl Panoramic Head - electronics

I use a WII Nunchuk as a joystick, it uses SPI-interface, so it does not cost extra pins and I feel it is easier to position the head with a joystick on a cable compared to one mounted on the head. the two switches on the nunchuck are useful to confirm the settings or fire the shutter.


Paul

close, but no cigar ... ... ...

Offline

 

#14 2009-11-06 23:03:06

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

Paul wrote:

I use a WII Nunchuk as a joystick, it uses SPI-interface, so it does not cost extra pins and I feel it is easier to position the head with a joystick on a cable compared to one mounted on the head. the two switches on the nunchuck are useful to confirm the settings or fire the shutter.

I was thinking of placing all my switches on a pendant I didn't know about the WII Nunchuk. Last video game I played was Pong hmm


--Greg Nuspel

Offline

 

#15 2009-11-21 20:19:39

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

I've done some testing with a small stepper motor, I think if I increase the size of the stepper to this unit http://www.web-tronics.com/stmo4.html which has 50% more torque than the one from SparkFun it may satisfy my requirements. I have to get a hold of a video camera so I can show how this moves with the SparkFun motor. I am using the Easy Driver for this and it will rotate my D300 with a 18-70mm lens on it at close to the nodal point. If this works it would be the least expensive way to go. The servo system will still be tested once a few items arrive.


--Greg Nuspel

Offline

 

#16 2009-11-21 22:34:00

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

Good!


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#17 2009-11-27 14:05:30

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

Feel like pulling my hair out today. Bought a avr programmer off eBay and it isn't Vista 64 compatible. I was wanting to start testing the DC motor system this weekend and now it has to wait a little more. The circuit boards look good just hope I didn't make any errors on it.

I'm holding off on getting larger stepper motors since they also need a higher power driver, my budget has gone way over board on this with all my testing ideas. At least the hardware all fits together.

Thought I would update what is going on.

Last edited by Greg Nuspel (2009-11-27 14:06:08)


--Greg Nuspel

Offline

 

#18 2009-12-05 06:08:02

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

After a few hours of playing around I got the tuning close and the servo moves as instructed.

OT be careful of buying prototype boards out of China the ones I have don't make good electrical contact. It's a real pain when your trying to trouble shoot a circuit ant it is the board that is the problem.


--Greg Nuspel

Offline

 

#19 2009-12-05 11:42:15

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

Well done. Are you able to move both axis independently?


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#20 2009-12-05 12:40:10

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

I'm working on that now. This was just the programing of the servo control, now I have to interface the Arduino to the servo and for that I have to change some of the firmware for the servo. Things are always more complicated then they first seem, but I am making progress.


--Greg Nuspel

Offline

 

#21 2010-01-22 01:23:25

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

I've been playing with the Arduino talking to the servos and have figured out how to get them to be friendly. A big stumbling block I see right now is that the servos do not put up with the kids in the back seat saying are we there yet (sorry a parents joke). If you try to inquire as to the position of the servo while in motion it stops. It will tell you where it is if you want, but not while in motion.  When it has finished the last move it sends out a '%' indicating it is ready for the next instruction. I see this as a potential problem since Papywizard is set up to request positions regularly. I am wondering if it would work to reply with the last position until the servo has stopped and then update the information for Papywizard.

I have been playing with a GLCD and having the Arduino do everything but the interface is not near as friendly as Papywizard.


--Greg Nuspel

Offline

 

#22 2010-01-22 07:50:10

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

The plugin architecture is flexible enought to do what you suggest; we just have to store the state (moving or not), and in the read method, do the right thing (either really read the position or return the last known one).


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#23 2010-01-22 12:59:00

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

I can write the firmware to provide a position after the head has moved. The firmware could to only respond once the move is finished with the position. I don't know if Papywizard would time out because of this or would it wait. If there is a stop move command issued I can interrupt the move and then report the position.

So if this is fine I will start trying to get the head to talk to Papywizard.

One other thing I would like to see is with the shutter control is having the ability to check to see the exposure is finished. I am implementing a flash contact sensor to check the camera's shutter. From what I have read it looks like the flash contacts remain closed during the exposure provided you aren't using rear curtain sync. This would allow a bracketed series in the least amount of time.


--Greg Nuspel

Offline

 

#24 2010-01-22 13:10:22

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: Owl Panoramic Head - electronics

The head should always answer immediatly, or it will be very difficult to know if the problem is in the com (timeout), or in the feature. So, just return the last position you have in memory if you can't read it when Papywizard ask it. In fact, you should internally have a dedicated task which will refresh the position when it is possible, and update a internal var; and the com task just read that var, and don't bother to know if it is up-to-date or not.

If you want to improve it, and be able to return the position even when moving, you can compute the theorical position according to the speed and time elapsed, with a simple interpolator. This way, something will move on Papywizard; we don't need an accurate position, but it is nice to see if it moves or not.


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#25 2010-01-22 13:20:56

Greg Nuspel
Member
From: Calgary, Alberta, Canada
Registered: 2009-10-06
Posts: 169

Re: Owl Panoramic Head - electronics

OK I will try to get the firmware to work with the present plugin, if I have problems that profuse hair pulling does not solve I will look to see if we can write a mount specific plugin.


--Greg Nuspel

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson