Legacy TAMV

From Jubilee
Jump to navigation Jump to search

Legacy (old) Installation steps for TAMV

  1. Enable boot to desktop and VNC for your Raspberry Pi
  2. Connect to the Raspberry Pi using VNC Viewer on Windows
  3. Install the TAMV script
  4. Updating TAMV
  5. (pending) Webcam mounting and TAMV preparation
  6. (pending) Running TAMV calibration for the first time
  7. (pending) Post calibration checklist

What you’ll need before you start

  1. A Raspberry Pi with a working installation of Raspbian, with an internet connection from the Pi
  2. Your SUDO user of choice (default is usually the “pi” user) and SUDO password (default is “raspberry”) with SSH login
  3. An SSH client of your choosing, such as Windows 10 built in ‘winterm’ and ‘ssh’ or install PuTTY
  4. A VNC client of your choosing, such as VNC Viewer

Enable boot to desktop and VNC for your Raspberry Pi

  1. Login via SSH to your Raspberry Pi and and run the Raspberry Pi config tool using the command: sudo raspi-config
    01.PNG

  2. Select “3 Boot Options”
    02.PNG

  3. Select “Desktop / CLI”
    03.PNG

  4. Select “Desktop”
    04.PNG

  5. Now from the main menu, select “5 Interfacing Options”
    05.PNG

  6. Select “VNC”
    06.PNG

  7. Confirm that you would like to enable VNC server by selecting “Yes”
    07.PNG

  8. You’ll get a confirmation that the VNC server has been enabled
    08.PNG

  9. Select the “7 Advanced Options” from the main menu
  10. Select “Resolution”
  11. Select “DMT Mode 16 1024x768” or any other resolution you’d like
  12. Once you’re done, reboot the Raspberry Pi!

Connect to the Raspberry Pi using VNC Viewer on Windows

  1. Launch VNC Viewer on your computer, and select “File” -> “New connection…”
    01.PNG

  2. Enter the IP address or network name of your Raspberry Pi in the “VNC Server” field, and give this connection a name to identify it in the VNC viewer connection list
    02.PNG

  3. Right-click on the new connection you’ve just created and select “Connect”
    03.PNG

  4. You’ll be connected to your Raspberry Pi and prompted for a username and password. Use your SUDO login credentials (most commonly the Pi user) and click “Log In”
    04.PNG

  5. Welcome to the Raspbian desktop! Your background and interface may vary depending on the version of Raspbian you have running on the Pi
    05.PNG

Install the TAMV script

  1. Launch a new “Terminal” process to access the CLI (Command Line Interface) of your Pi
  2. Run the following command from the prompt, which will clone the GitHub repo to the current folder you’re in: git clone https://github.com/HaythamB/TAMV.git
  3. Once the clone is done, you’ll need to switch to the new folder using: cd TAMV and then run the installation script using: ./install_opencv.sh This will install all the required dependencies and libraries for TAMV to run on your machine, and should take less than 15 minutes on a Raspberry Pi 4 with 4GB of memory. If the script won't run for some reason, type chmod a+x ./install_opencv.sh to make it executable and try running it again.
  4. TAMV is installed, move on to the next step to get it up and calibrating.

Updating TAMV

  1. Launch a new “Terminal” process to access the CLI (Command Line Interface) of your Pi
  2. cd TAMV
  3. git pull
  4. All done.

If, for some reason, you fail to update using GIT, then simply save your config/settings.json file somewhere, then delete the entire TAMV folder, and re-download it and run again.

(pending) Webcam mounting and TAMV preparation

Preliminary steps

  1. Mount webcam somewhere fixed on the bed using gluestick/double sided tape OR on the frame in a spot where the nozzle of the tool can be positioned over the lens.
  2. Shorten webcam focal distance to about an inch away from the lens (webcams are generally set up for longer focus distances so this would probably necessitate opening up the camera shell and manually turning a focus ring)
  3. Heat nozzles and clean up all nozzles from gunk and filament blobs to enable correct nozzle circle detection in TAMV.
  4. Make sure they cool. You don’t want to ‘drool’ on the camera!
  5. Set tool active and standby temperatures to 0 before running TAMV again to avoid drooling.

(pending) Running TAMV calibration for the first time

  1. Run TAMV with no arguments. This MUST be on a VNC session, not ssh (because you have to see the graphic image).
    cd
    cd TAMV
    python3 ./TAMV.py
  2. Connect to your printer using the on-screen prompts (the green connect button at the top left of the application screen).
  3. Jog your Jubilee Z probe into view of the camera and align it to save as your control point. (Alternatively, you can use the auto-CP detection function to do this automatically). Save your CP.
  4. Select which tools to align using the checkboxes next to the tool designations on the right hand side of the screen.
  5. Start calibration!

Once calibration is completed, the new measured offsets are already applied to your machine and saved using an M500 command to your config-override.g. You need to make sure the last line of your config.g contains an M501 command for this feature to be active on a Duet controller.

(pending) Post calibration checklist

  1. Remove webcam from build plate
  2. If you have already manually aligned Z, time to print!