element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi Projects
  • Products
  • Raspberry Pi
  • Raspberry Pi Projects
  • More
  • Cancel
Raspberry Pi Projects
Blog Macro Pi Station
  • Blog
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: celcius1
  • Date Created: 2 Apr 2020 12:08 PM Date Created
  • Views 1418 views
  • Likes 4 likes
  • Comments 1 comment
  • raspberry_pi_projects
Related
Recommended

Macro Pi Station

celcius1
celcius1
2 Apr 2020

Well a few months back I started building myself a Macro Workstation to help me with soldering and other detailed tasks that need magnification but also to provide me with a means of recording it easily.  I had originally envisioned to use a 35MM camera lens to maximise the amount of light entering the body, but found that unless I use the equivalent of a fish eye lens the crop factor associated with the Raspberry Pi Camera image sensor was on the magnitude of approx 5.7.  My lens options as a result ended up being quite limited.

 

So I started researching the Image sensor used on the Raspberry Pi Camera, and went to research what lenses I could use that would allow me to have the macro effect needed for the work station but on the same token not have the crazy crop factor that would be the case if using a 35mm lens.  My research ended up pointing me in the direction of CS mount lenses, And as my day job is in security, I found out a range of security cameras, use CS mount, and are designed for a 1/3" image sensor, so when used with the Raspberry Pi 1/4" image sensor the crop factor would be negligible.

 

So I set to work on Version 1 of my station, I was making massive design changes all along the way but ultimately the design was not entirely sound, as parts broke easily.  One of the pictures attached is the remnants of the V1 station I've yet to finish stripping the parts I am going to be using off of it.  But I'll be re using the metal frame etc., I still have some parts to fabricate as I am making a light for the work area from high brightness LED's that can be controlled by the RPi's GPIO, I'm using a RPi 3B+ for the project as I have quite a few of them lying around.

 

The lens that I have used for this is a Tamron 12VG412ASIR CCTV lens, It has an Aspherical lens, and Auto Iris.  The auto iris on the lens has proven to be a challenge, as it has four pins, two are ground the other two, operate the iris motor, One pair provides power to the iris motor (and fully open it) whilst the other pair take a PWM signal to control how open the iris is.  Both control pins on the auto iris need a voltage from 0 to 3v (5v Tolerant) to open and control the iris, and draws  approximately 5 to 10mA so safe to directly connect to the RPi GPIO.

 

So as it stands I am halfway through building Version 2 of my Macro Pi Station, which is much stronger in design and more integrated, and this is learning from my design mistakes I made on Version 1.

 

But where I am going to run into a Roadblock, is I'm going to need to learn Python, so I can have an application so I can use my work station, and control the camera, light and recording.  But I'm a total beginner when it comes to writing Python and the last time I did code, was 18 years ago, and that was coding in C++, and not even object orientated programming.  So I'm open to anyone who is willing to help point me in the right direction so I can learn to code the Python code for my application.  Also does python have a library for doing image processing so I can use it to help with controlling the camera's iris.

 

Regards

Celcius1

 

P.S. Also find attached a render of the Version 2 build

Attachments:
image
image
image
image
image
  • Sign in to reply
  • celcius1
    celcius1 over 5 years ago

    I've got the majority of the Macro Pi Station made, I have a few things left to do.

     

    • Complete Light design and send Gerber files to PCBWay
    • Design and Print Light bracket
    • Redesign and Print PSU Housing and refit to frame
    • Buy and cut to Size Peg board for base, and fix to frame
    • Design and Test Attachments for eg. PCB clamp, Wire Clamp etc.
    • Connect and test Iris control to RPi
    • Learn Python
    • Program Macro Pi software
    • Add Streaming and Recording capabilities, (Tinkernut Showed how to do this will investigate his efforts)

     

    So that's the list of things to complete at this stage, been using my time wisely as work has been rather quiet due to the recent pandemic so making use of the extra time.

     

    I've added some extra pictures showing my progress

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube