cine

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 9 June 2013

Photography - My new macro-bot

Posted on 10:56 by Unknown
I built a thing today.

It moves stuff in small increments using a small electric motor, in response to a users input.

I guess that means I've built my first robot.

Actually, probably my second.

Anyway...

My device looks like this










It also looks like this.

The bit with the "1" next to it is my previously built power supply that delivers 5 volts to my project.

The bit with a "2" next to it is the previously made PICAXE Proto Board that connects some input/output pins to my breadboard.

The "3" is the transistor bit, that powers the motor when the chip sends a signal to do so.

And the "4" isn't really visible. If you could see the "4", it would be next to the the switch that the user presses to make the subject move a tiny bit.

The point of this exercise is to attempt to make a device that carries an empty box of mints along a steady track, to carry a subject to different focal distances, in order to make a series of photos to create a focus stack, and thus create an image with a greater depth of field than might otherwise be achieved.

This absurdly simple solution, represents my first successful attempt at creating an electronic something without external help from someone, somewhere on the planet.

All the software does is wait for someone to press the button, then move the subject a tiny bit closer to the camera. This changes which bit of the subject is in focus, and enables the user to take a "stack" of pics, each one having a different plane in sharp focus. The user can then knit them all together using some free software, creating a photo with an otherwise impossible depth of depth of field.

The 11 lines of code that makes it work look like this (the very small amount of black text is the actual software, the green text is just my description of it)

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


; Macro Mover ver 2013 06 10 0200
        ;moves a small platform holding a photographic macro subject a tiny amount closer to the camera         '            each time a button is pressed, helping to create a "focus stack"
;120thingsIn20Years.blogspot.com
;no rights reserved
;use at your own risk

;For picaxe 08M2

#No_Data 'saves a few seconds when uploading the code to the chip, because it doesn't have to check for data

main:' begin the main program loop

if pinC.1 = 1 then gosub Move    'if someone is pressing the button, jump to the bit of code called "Move"

goto main ' if it gets this far, go back to the start and check for a button press again

Move: 'the bit of code that moves the platform with the subject on it

do until pinc.1 = 0 :loop ' hang here until the button is released

high 2 'turn on the motorconnected to pin 2
pause 2 ' wait for 2 milliseconds
low 2 ' turn off the motor connected to pin 2
pause 100 ' pause for 100 milliseconds

      return 'go back to the gosub that called the "Move" code

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


I started with an old CD ROM drive that I ripped all the interesting bits out of.

I think this is the original motor because it fits perfectly. This is the motor that made the laser head move from the centre to the rim. Now it's the motor that moves the photographic subject towards the lens, changing which bit is in focus.

The blu-tac is there as a weight to keep the linear cog in contact with the gear that the motor connects to.





So the motor makes the black bit move from this extreme...

(see the black bit)










to this extreme, but in tiny increments each time the button is pressed.

Each button press causes a a quarter of a millimetre migration.

.25 mm = 0.0098 inches

A tiny amount each button press.

The camera sits on the large grey platform to the right.


The software controls how much the motor moves at any given moment. This way we control how much we increment the slice of our subject that is in crisp focus.

The camera is securely set in place because there is a tight fit due to my bending some tags in order to hug the camera. There is also two lumps of blu-tac securing the camera to the base.

This arrangement feels totally secure, and I haven't had any problems with the camera moving.







Last, but far from least, I added a subject platform  and a light source. The subject sits on a platform made form an empty tic-tac (small mint confectionery) box,

The light source is the thing on three zebra legs.

It's best to move the light source with the subject as it moves toward, or away from the camera, to avoid photos with different exposures, so a light that moves with the subject is best.




Once you have a "stack" of photos with different bits in focus, you can knit them all together with a program like "MacroFusion" (free, open source program I run on my linux computer)

To use this Macro-bot device, you press down once or more times, on a button to move the subject a tiny bit closer to the camera. After each button press (or two or three) you take a photo. Each time you press the button, the subject moves a fraction of a millimetre. I found pressing the button once was suitable for macro shots where the lens was at full zoom, and pressing three times when the lens was at minimum zoom.

Some experimentation is required, but as soon as I made this, I immediately solved all the problems I was having with poor alignment of my photos in a focus stack.

Successful results to follow...




120 Things in 20 years - Sometimes, all you have to do to make a robot, is to replace all the bits from the robot you salvaged last week.






Email ThisBlogThis!Share to XShare to Facebook
Posted in electronics, focus stacking, macro, photo stacking, Photography, PICAXE, robots, success | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Photography - Rock melon time lapse
     thought I might do a time lapse of a rock melon developing. I'm not sure why, but I like rock melon a lot. The might be called cantalou...
  • Bread - Knot roll
    I made this, and quite like the look of it. It's a small, knot, slightly sweet(ish) dinner roll. It's my first knot roll. 120 Things...
  • Bread - "Lame" or bread slashing thing
    A "lame" ( pronounced in the first part of this ), or "bread slashing thing" is a razor blade on a stick. It's reall...
  • Aquaponics - Carrot haul
    I pulled up the last of my aquaponics carrot patch and was pleasantly surprised by the result. I suspect I could have planted them a lot clo...
  • Photography - Time lapse camera
    Someone nice gave me a new camera today. Thanks someone nice. It does time lapse photography. You set it to take a shot every 30 seconds or ...
  • Aquaponics - Tomato
    It's cold and rainy here in South Australia, and I keep picking tomatoes. Winter isn't a good time for tomatoes, but mine seem to be...
  • Bread - Hope Loaf
    Just a word of warning for anyone new to this blog (and me in general). I have no idea if this is going to work or not. I'm making it up...
  • Thinking - TV police chases
    It's bound to happen sooner or later that a villain being pursued on foot will slowly gain distance on the police officer in pursuit and...
  • Aquaponics - External Tomato growing in fishtank
    I've been away for a few days. It was nice. One of the best things about aquaponics, is the fact that it takes care of itself. I came ho...
  • Aquaponics - Absurdly low energy system
    I've had an idea. It's been a while. I keep running the problem of a low energy system through what I like to call the invention eng...

Categories

  • aeration
  • air lift
  • air pump
  • air stone
  • AK-47
  • alf alfa
  • algae
  • Amegilla cingulata
  • ammonia
  • Animation
  • ant
  • Aquaponics
  • Artificial pollination
  • Auqaponics
  • Australian native bees
  • automatic fish feeder
  • Automatic solids removal
  • baby carrots
  • baby spinach
  • bacon
  • bait
  • ball bearings
  • balloon
  • balloon power piston
  • barramundi
  • bay leaves
  • BBQ
  • beans
  • bee
  • bell siphon
  • blow dart
  • blow gun
  • Blue banded bee
  • Bread
  • breadboard
  • brining
  • Briquette
  • Build
  • burner
  • buzz pollination
  • cam
  • camera
  • camp stove
  • cannon
  • canon
  • Canon 20D
  • Canon Powershot
  • cantaloupe
  • cap
  • capsicum
  • carrots
  • caterpillar
  • celery
  • CHDK
  • cherry tomatoes
  • chicken
  • chicken breast
  • Chicken Burger - no onion
  • Circuit schematic
  • Clay balls
  • Cold smoker
  • communication
  • computer
  • constant flood
  • constant flood growbeds
  • cooling
  • Coorong
  • copper
  • Cordage
  • Cos lettuce
  • Cowrie
  • coz lettuce
  • crack
  • Crank shaft
  • cucumber
  • curved space
  • customs
  • dark matter
  • dart
  • dart gun
  • Dead man's switch
  • deep water culture
  • deer scarer
  • Delicious
  • demand feeder
  • demand fish feeder
  • depth of field
  • dinner rolls
  • diorama
  • Direct composter
  • disease
  • Displacer
  • dissolved oxygen
  • DIY
  • DO
  • dolphins
  • dough
  • drama
  • drip control
  • driving
  • duckweed
  • economy
  • education
  • Eh?
  • electricity
  • electronics
  • Engine
  • Entomology
  • environmental
  • Epic adventurer
  • Ethanol
  • Ethanol potato cooker
  • expanded media
  • experiment
  • FAIL
  • failsafe
  • Feast
  • filtration
  • Fire
  • Fire starters
  • fish
  • fish death
  • fish feed
  • fish feeder
  • fish feeding
  • fish food
  • fish stocking
  • fish stocking density
  • fish tank
  • fish tank window
  • fishing
  • fishing float
  • flow control
  • fly fishing
  • focus stacking
  • fog
  • Fraudster
  • Frenched Luxury Cut Ribs
  • futurism
  • gecko
  • gods
  • gold standard
  • gold stars
  • google
  • gravity
  • Green tomato chutney
  • grow bed
  • grow beds
  • grow house
  • growbed
  • growth rate
  • hack
  • haloumi
  • hand pollination
  • Handmade fishing lures
  • harvest
  • heat
  • heat stress
  • Helioponics
  • Heliostat
  • hickory
  • history
  • Hollywood
  • home made cheese
  • Home made preserves
  • hot smoker
  • House fly
  • hydroton
  • I hate feeling sick
  • IBC
  • idea
  • image stabilizing
  • inlet
  • Internal combustion engine
  • invention
  • inverter
  • iPhone
  • Iraq
  • jalapeños
  • kids
  • Kill switch
  • knife
  • knot roll
  • ladybug
  • Lame
  • Lathes
  • Latin
  • lens
  • lettuce
  • lever
  • light
  • linear
  • loop siphon
  • low energy systems
  • Luc Cut Ribs
  • Lux Cut
  • Luxury Cut
  • Luxury Cut Ribs
  • macro
  • maggot farm
  • maggots
  • magnet
  • Making smoked foods
  • Medang
  • media
  • media screen
  • media washing
  • methanol
  • mineral deficiencies
  • mini-growhouse
  • mirror
  • MIT
  • Mold making
  • mortality
  • moth
  • motor
  • mould
  • Movie watcher and critic
  • multimeter
  • Mum
  • Murray river
  • Musca domestica
  • Muzak
  • natural fibre string
  • Nebuliser
  • New grow bed
  • New system
  • NFT
  • Nice
  • nitrites
  • Nobel prize
  • NTF
  • nubuliser
  • nutrient
  • nutrition
  • open source
  • outlet
  • over unity
  • overflow
  • Overflow pipes
  • Palm fibre twine
  • Papua New Guinea
  • perpetual motion
  • personal audio themes
  • Pest control
  • photo stacking
  • Photography
  • Photography tip
  • Photography. macro
  • PICAXE
  • Plagiarist
  • plan
  • planting density
  • pollination
  • poly pipe
  • population
  • potato
  • power head
  • power piston
  • power supply
  • powerhead
  • prediction
  • Projectiles
  • prototyping plastic
  • pump
  • PVC
  • radial flow filter
  • Radish
  • recipe
  • repair
  • resistors
  • ribs
  • robots
  • rock melon
  • rocket
  • roots
  • rope
  • Sanyo Xacti
  • science
  • scoria
  • scoring
  • seed raising
  • seedlings
  • seeds
  • sheath
  • shell grit
  • shell grit seed raising trial
  • silver perch
  • silverbeet
  • silvers
  • slashing
  • SLO
  • Slow motion
  • slugs
  • Smoke
  • Smoke cured food
  • snot
  • software
  • solar
  • solar energy
  • Solar hot water
  • Solar photovoltaic panels
  • solar powered boat
  • Solar voltaics
  • Soldering iron
  • solids lifting overflow
  • solids removal
  • Sour Dough
  • Species
  • spinach
  • spirit stove
  • spouter
  • sprouts
  • Star Trek
  • starbuck
  • starbucks
  • Stirling Engines
  • Stockholm Syndrome
  • stove
  • strawberries
  • strawberry
  • strawberry runners
  • strawberry towers
  • string
  • success
  • sun dried tomatoes
  • surgery
  • Sweet Remano Peppers
  • Sweet Romano peppers (capsicum)
  • swirl filter
  • switch
  • system expansion
  • test
  • The invention engine
  • The Solar Toyosphere
  • the universe
  • Thermal mass
  • thermoplastic
  • think twice act once
  • Thinking
  • Thinking. electronics
  • time lapse
  • time travel
  • Tin can
  • Tin can smoker
  • tiny electric motor
  • tip
  • tomato
  • tomatoes
  • trout
  • trout fry
  • Turbine engine
  • UHF
  • UV stable
  • venturi
  • Vermiculture
  • video
  • wasp
  • water temperature
  • wild rocket
  • winch
  • wood smoke
  • words
  • worm farm
  • worms
  • Yarrawonga Weir
  • yeast
  • zero head

Blog Archive

  • ►  2014 (27)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (7)
    • ►  March (9)
    • ►  February (6)
    • ►  January (1)
  • ▼  2013 (88)
    • ►  November (2)
    • ►  October (5)
    • ►  September (5)
    • ►  August (2)
    • ►  July (7)
    • ▼  June (12)
      • Stirling engines - Slow motion balloon power piston
      • Aquaponics - Tomato
      • Aquaponics - Self cleaning swirl filter revisited
      • Photography - My new macro-bot
      • Home made cheese - Haloumi and zucchini fritters
      • Photography - Maybe bee
      • Aquaponics - Sweet Remano peppers
      • Stirling engines - Balloon Power pistons
      • Making smoked foods - Soldering iron cold smoker
      • Photography - Hack a macro lens from a zoom lens
      • Photography - Seeing what's inside a canon auto fo...
      • Photography - Improvised macro lens mould study
    • ►  May (9)
    • ►  April (10)
    • ►  March (12)
    • ►  February (9)
    • ►  January (15)
  • ►  2012 (167)
    • ►  December (11)
    • ►  November (8)
    • ►  October (20)
    • ►  September (9)
    • ►  August (10)
    • ►  July (9)
    • ►  June (11)
    • ►  May (20)
    • ►  April (14)
    • ►  March (15)
    • ►  February (19)
    • ►  January (21)
  • ►  2011 (18)
    • ►  December (18)
Powered by Blogger.

About Me

Unknown
View my complete profile