SGraspicam2housing

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-10, Last change: 2025-08-19

returns a housing for a Raspberry Pi camera type 2 (adjustable lenses)

Description

https://www.amazon.de/gp/product/

See Also: SGraspberrystarterkit , SGbase4PCB , SGcover4PCB

Example Illustration

 missing image of SGraspicam2housing()

Syntax

[SGP,SGB]=SGraspicam2housing([])

Output Parameter

SGP: Plate
SGB: Box




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, SGraspicam2housing, is designed to create a housing for a Raspberry Pi camera type 2 with adjustable lenses. It is part of the SolidGeometry library and was introduced in version 5.0.

Input Parameters

The function accepts a variable number of input arguments (varargin), but in this implementation, it does not utilize any specific input parameters.

Output Results

Algorithm Steps

  1. Define the size of the board with Bsiz = [25 26 1.5], which represents the dimensions of the board.
  2. Define the pin positions with PinL = [-10.5 -6.5; -10.5 7.0; 10.5 7.0; 10.5 -6.5], which specifies the coordinates of the pins.
  3. Define the shape of the pin base with PinS = [1.5 0 2; 1 0 3], which includes the diameter and other parameters.
  4. Create the base of the PCB using the function SGbase4PCB with the parameters Bsiz, PinL, PinS, and alignment options.
  5. Create the cover of the PCB using the function SGcover4PCB with the base SGP, height, and other parameters for fitting and alignment.
  6. Position the plate relative to the box using SGtransrelSG to align the center of the plate with the center of the box.
  7. If no output arguments are specified, plot the components using SGfigure and SGplotalpha, and write the components to STL files using SGwriteMultipleSTL, SGwriteSTL.
Algorithm explaination created using ChatGPT on 2025-08-19 07:53. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21