FabScanPi Laser Scanner

1. Bill of Materials

The following list shows what you need to build a FabScan.

_images/FabScanPi_Bausatz_Teile.JPG

General components

Even if you use the screw set from Watterott, as given in the BOM, here is the the usage reference:

Screws

Type Length Qty Usage
M2 16 2 Security Switch
M2.5 15 4 RaspberryPi
M3 10 4 Stepper motor
    4 RPi-RingLight
    4 Turn-table Mounting Hub

Washers

Type Heigth Qty Usage
3.4/4.5 1 4 Stepper motor
2.5/4.5 3 4 RaspberryPi

2. Assembly of the Scanner

Assembly of the lid

Start with the lid. Just glue the small bridge parts to the biggest (top) part.

Step 1:

_images/case_step_1.jpg

Step 2:

_images/case_step_2.jpg

Note

It is helpful to use some tape for holding parts in place until the glue is hardened

_images/gehause_schritt_10.jpg

Then add the front part.

Step 3:

_images/case_step_3.jpg

Finish the lid assembly by gluing the handle to the front part.

Step 4:

_images/case_step_4.jpg

You can now put the lid aside. Let the glue harden and proceed with the box.

Step 5:

_images/case_step_5.jpg

Assembly of the box

First assemble the base part of the box.

Step 6:

_images/case_step_6.jpg

The holes in the front part should point to the right side of the box. You can find small marks labeled with RF (right front) and LF (left front) on the bottom of the front part.

Note

The side parts are not symmetrically. You can use the engravings for finding the correct alignment of the side parts. Where RF means right front, and LF means left front.

_images/gehause_schritt_beschriftung.jpg

Step 7:

_images/case_step_7.jpg

Proceed with gluing the back wall to the box.

Step 8:

_images/case_step_8.jpg

Now you can add the right side part. Keep attention to the marks labeled RF (right front).

Step 9:

_images/case_step_9.jpg

Finally add the left side part to the box.

Step 10:

_images/case_step_10.jpg

The finished case should look like on the picture bellow.

Step 11:

_images/case_step_11.jpg

Assembly of the laser mounts

Now you can proceed with the laser mounts. You can use the interlocks to tack the parts together.

Step 12:

_images/case_step_12.jpg

Repeat this step also for the second laser mount.

Step 13:

_images/case_step_13.jpg

Assembly of the turntable

The turntable consists of two parts. The part with the bigger holes is the top part. The one with the smaller holes is the bottom part. Glue the top turntable part onto the bottom part.

_images/turntable_1.JPG

Be sure that the holes match like on the picture below. The big holes are needed as a sink for the screws.

_images/turntable_2.JPG

Note

Use some clamps to hold both turntable parts in position until the glue is hardened.

Assembly of the Camera

This small manual will help you to assemble the Camera and LED ring combination. You will need a light if you want to perform texture scans (Check mark is set for Color Scan).

_images/RingLicht_1.jpg

This is how it should look like if you finished the assembly.

The Ring-Light will include the parts you can see in the next picture below (the camera modul is sold separately):

_images/RingLicht_1b.jpg

Warning

You will need the standard camera modul (which has a green pcb). The black module used in the pictures is the IR version which has the same dimensions but different optical specifications.

Note

The default camera ribbon cable needs to be replaced by the longer one (50cm)

_images/camera_2.JPG

Slide one end of the flat ribbon cable into the connector of the camera module (1). Make sure the blue plastic is on the side facing away from the camera. Push the lock bar of the connector gently into the lock position (2).

_images/RingLicht_2.jpg

Merge the flat ribbon cable through the elongated hole in the LED board.

_images/RingLicht_3.jpg

Put the four Screws through the holes in the camera board. The heads must be on the side where the lens is situated. Then put a spacer on every screw (as shown in the next picture).

_images/RingLicht_4.jpg

Put the Camera modul on the LED board. All four screws must fit the appropriate hole. This can be a bit tricky but it is doable.

_images/RingLicht_5.jpg

Put a nut on each screw an pull them hand-tight.

_images/RingLicht_6.jpg

Now the Camera-LED assembly is ready for installation.

Note

The pins of the JST connector on the LED board have the following configuration:

_images/JST-LEDboard-Configuration.jpg

Mounting the Camera

Now mount the assembled LED-Ring with the Raspberry Pi camera module to the FabScanPi enclosure. The ribbon cable should point to the back wall. Use 4 3mm screws and nuts to attach the Led-Ring PCB to the side wall.

Note

The thread of the screws should point to the inside of the enclosure. This prevents the screws to get stuck to something outside of the enclosure.

_images/Camera_mounted.JPG

Mounting the Motor

Attach the motor to the box. Use four 3mm screws. The motor needs to be attached from the bottom side of the box. Tighten the screws from the inner side of the box.

_images/turntable_motor_1.JPG _images/turntable_motor_2.JPG

The motor wires should point to a direction where you can easily connect them to the HAT (later). Best practice is to let the wires point into the inside of the box.

_images/turntable_motor_3.JPG

Mounting the turntable

Before mounting the turntable you need to mount the flange to the motor shaft. You should leave at least about 5mm from the top of the shaft (the thickness of one turntable sheet). Gently tighten the grub screw to keep the flange in position.

_images/motor_flansch.JPG

Afterwards screw the assembled turntable on the flange. You should use all 4 screws!

Note

Be sure that the table doesn’t wobble. Otherwise you need to mount the flange higher/lower to the shaft.

_images/turntable_mount.JPG

Mounting the Lasers

The laser mounts can be pressed gently into the holes on the bottom plate of the enclosure. Mount the lasers with zip ties onto the laser mounts. Finally push the laser cables through the holes on the bottom plate behind the lasers.

_images/case_step_14.jpg

Mounting the Raspberry Pi

It is time to mount the Raspberry Pi underneath the bottom plate of the enclosure. Use four spacer sleeves and four screws with nuts. The network and USB connectors should point to the front of the enclosure.

_images/raspberry_mount_2.JPG

The threads of the screws should point to the inside of the enclosure.

Note

The big hole behind the Raspberry Pi just makes the SD-Card changing easier.

_images/raspberry_mount.JPG

The FabScanPi HAT

Note

About soldering: If you are soldering for the very fist time, we suggest to read the comic “Soldering is Easy” by Mitch Altman (soldering wisdom), Andie Nordgren (comic adaption) and Jeff Keyzer (layout and editing).

_images/RPi-FabScan-HAT05.jpg

You can follow the steps in the assembly video on Youtube by Rene Bohne.

You only need to install the headers and connectors which fit your demand. The following guide will show the assembly of the minimal configuration.

Note

The HAT can handle up to 3 stepper motors and/or 3 stepper motors. But the software does only support one stepper motor by now.

The first connector is the JST connector for the RPi-RingLight. Make sure the direction is correct. Fix it and solder the three pins on the rear side of the PCB.

_images/IMG_20160810_010610.jpg

After the JST Connector is soldered on the PCB, you can proceed with the green screw terminals. Only two of them are needed for the minimal requirements. The one with the 6 screws (for lasers and safety switch), and one with 4 screws for the stepper motor wires.

_images/IMG_20160810_010842.jpg

Now you can solder the 40 pin Raspberry Pi connector to the PCB. Double check all solder joints before you will continue with the next step.

_images/IMG_20160810_011820.jpg

Warning

The Step-Down converter needs to be soldered on the PCB in the correct direction! Otherwise it will damage your HAT and the Raspberry Pi. It is better to double check the direction before soldering. The small white dot on the left side of the component needs to be on the same side as the Power Jack.

_images/fabscanpihat_12to5.png _images/RPi-FabScan-HAT15.jpg
_images/IMG_20160810_012734.jpg

Warning

The V7805-2000 Step-Down converter does provide a max. of 2000 mA. You should not use the V7805-2000 with the a Raspberry Pi4, because the Raspberry Pi4 needs at least 3000 mA or more. In that case you can work with two power supplies, 5V USB for the pi and 12V for the motors connected to the HAT’s DC-jack power connector. Or just find another Step-Down converter and connect it with some wires to the HAT.

Now the DC-jack power connector will be installed into three oval pin holes across from the 2x20-pin socket header. Soldering is done from the top side of the PCB.

_images/IMG_20160810_012318.jpg

Note

The center pin is for +12V DC, the outer connector tongue is for GND.

_images/Power_Connector_HAT.jpg

The finished HAT should look like on the following picture.

_images/FabScanPiHAT.jpg

Assemble Motor drivers

There are different kinds of motor drivers. The kit is delivered with a TMC Silent Step stick. The version which is included in the kit changed over time. You will find a TMC2100, TMC2208 or a TM2209.

Check if your drivers are delivered pre-soldered, which means that all the pin-headers are already soldered to the PCB. Otherwise solder the headers to your driver.

Warning

If you need to solder the pin-headers to your driver, keep attention on the labels top and bottom. Have a look at the image below.

_images/silentstepstick-tmc2208-verloetet.jpg

Find out which driver is included in your FabScanPi kit. If you are not sure you can use Watterotts comparison list to match your driver.

Now you need to configure your driver for 1/16 micro stepping mode. This can be done by some jumper configurations on the HAT, but it depends on the driver you are using. Choose the option which matches your Silent StepStick driver

TMC2100 The HAT was made for the TMC2100 when the FabScanPi project was started. There is nothing to do because the HAT is already configured for this driver. You can proceed with Wiring all Components

TMC2208

You need to connect CFG2/MS2 and CFG1/MS1 pins of the driver to VIO (5V of the HAT). This can be done by soldering some bridges (yellow mark) on the HAT like marked on the picture below.

_images/496-492-IMG20201123230825-1.jpg

TMC2209

You need to connect CFG2/MS2 and CFG1/MS1 pins of the driver to VIO (5V of the HAT) and SPREAD/MS3 to GND. This can be done by soldering some bridges (yellow mark) on the HAT like marked on the picture below.

_images/495-TMC2209.jpg

Warning

Be careful while soldering those bridges. Prevent to bridge other pads than those in the pictures. Bridging the wrong pads may result in unexpected behaviour.

Note

You can find more information about the different driver configurations in the official Silent Step-Stick documentation for TMC2100, TMC2208 and TMC2209

Wiring all Components

Before wiring up all components, you need to attach the HAT on the Raspberry Pi. Keep in mind to thread the camera ribbon cable through the elongated hole on the HAT before attaching the HAT to the pi.

_images/IMG_20201123_230748.jpg

When the HAT is attached on the Raspberry Pi you can proceed with the rest of the wiring.

Wiring of the Motors

First identify your motor. The kit was delivered with one of the following motors:

17HM3410 (400 steps per full turn)

_images/motor_1.png

Coil1: Black, Green and Coil2: Red, Blue

SY42STH38-1684A (200 steps per full turn)

_images/motor_2.png

Coil1: Black, Green and Coil2: Red, Blue

Connect the motor wires like in the picture below.

_images/IMG_0553.JPG

Both have the same color scheme for wiring. But keep in mind that one motor comes with 200 steps and the other with 400 steps. This will be important when you proceed with the section 4. Software Configuration

Note

If you are not sure which motor you are using, you can also proceed with one of the following methods to find the correct motor coil pairs.

There are different kinds of stepper motos. Mostly with 4 or 6 leads. For connecting the stepper motor to the FabScanPi HAT you need to know the corresponding lead pairs of the motor coils. The best way to find out something about the motor is to have a look at the datasheet of the motor manufacturer. In the following desciptions the pairs are called (2B, 1B) and (1A, 2A).

_images/4wires.jpg _images/6wires.jpg _images/hat_wires.jpg

There are several ways to find the pair wires without a datasheet. Some of them are described here:

Method with an ohm-meter

Simply measure pairs of wires for their resistance. If the resistance is a few ohms ( < 100 Ω) only, you’ve found a pair. The other two wires should make up the other pair.

Methods without an ohm-meter (feel the force)

First, try turning the motor with your fingers, and notice how hard it is. Then, stick wires together in pairs. If the motor turns noticeable harder, you’ve found a pair.

Methods without an ohm-meter (using a led)

Another method is to use an LED, hold any two wires to the ends of a LED and turn the motor (twiddle in both directions), the LED will light if the wires are a pair, swap wires until you light the LED.

Attaching the Motor driver

The motor driver can now be attached on the HAT. The outer pins VM and EN should point in the direction of the Screw Terminal.

_images/481-Hat-01.jpg

Note

The motor should be set to the correct current level, otherwise the motor will overheat, loss steps or even wobble. A good starting value for VRef is ~0.7V. You can find detailed instructions at Watterotts F.A.Q.

Warning

The current poti is very sensitive. Never adjust the current without measuring against Vref. Turn the poti very gently, because a small change might have a big impact on the current level.

Mechanical Laser Switch

There is a safety switch feature available on the HAT. You can connect a switch which will turn off the laser when the Lid of the scanner is opened. But the switch is not included in the kit. You need to bridge the switch terminal connector, otherwise the lasers will not work.

_images/IMG_0553_switch.jpeg

Note

It is recommended to install a switch which is handled by the lid, instead of just bridging the terminal connection.

Wiring the Lasers

If your kit has only one laser, connect only Laser 1, otherwise connect both lasers like on the picture below.

_images/IMG_0553_lasers.jpeg

Wiring the LED Ring

Just connect the cable with JST connectors between the HAT and the LED-Ring PCB.

Note

The JST cable is short but it does exactly fit.

The complete wiring on the Raspberry Pi side should look like on the picture.

_images/fabscanpi_verkabelt.JPG

3. Software Installation

Now you need to install the FabScan sotware. Please follow the Guide for Installing the Software.

4. Software Configuration

The image installation from the previous step already contains a default configuration for the FabScan. But some values need to be adjusted, depending on your hardware setup. You should recap your motor type, and the number of lasers at this point.

Note

If you don’t know how to edit a file by using a text editor on a Raspberry Pi console, you should read detailed chapter on How to Edit the Config File first..

Motor Config

Lets start with the correct motor setting. You need to change the number of steps. This value should match your motor. If you are using a 400 step motor you should use 6400 steps, otherwise use 3200 steps.

Warning

It is important to set a correct value for your motor. A incorrect value can cause double/mirrored looking scans results. Even the calibration process might fail.

The example below shows a configuration for a 200 step stepper motor.

"turntable": {
    "steps": 3200
    "radius": 70,
    "height": 155
}

Laser Config

Change the number of lasers to a number which matches your setup. If you are using just one laser then change numbers to 1, otherwise numbers should be 2.

"laser": {
    "interleaved": "False",
    "numbers": 2,
    "color": "R (RGB)"
}

Serial Connection

Be sure that the connector type is serial and the firmware is set to fabscanpi.

"connector": {
    "type": "serial",
    "firmware": "fabscanpi",
    "baudrate": 115200,
    "autoflash": "True",
    "flash_baudrate": 115200,
    "port": "/dev/ttyAMA0"
}

Leave the rest of the file as it is.

5. Using the Software

You can proceed with the software First Steps with the Software . A more complete software manual can be found in the section Software User Manual. Don’t miss to read the section about Calibrating the Software.

Note

A precise calibration is the key for good scan results!