Focusing your camera

From Global Meteor Network
Jump to: navigation, search

So you’ve built your wonderful meteor camera system and need to focus it. What do you do? Follow the tips below for (relatively) pain-free focusing.

Things you might find handy…

Either CMS Windows camera monitor software or ONVIF Device Manager (ODM). We recommend the latter for viewing the live stream when the camera is running off the RPi.

Option 1: Steps for direct camera connection to PC (Windows)

Windows network settings
  1. Download and install either CMS or ODM
  2. Plug your camera into your POE injector and then into your PC’s ethernet port
  3. Open ‘Network & Internet Settings’ and then click on ‘Ethernet’ in the left menu (assuming Windows 10 here)
  4. To the right, click on ‘Change adapter options’ and watch as a new window pops up
  5. Right-click the ‘Ethernet’ icon and select ‘Properties
  6. Scroll down to ‘Internet Protocol Version 4 (TCP/IPv4)’, select it and then click ‘Properties
  7. In the new window, set the IP address to:
    • If you haven't changed the camera's default IP address, set the IP address to and the Default Gateway to
    • If your camera has already been setup to run on the Pi, then use for the IP address and 192.168.42 for the Default Gateway.
  8. Click OK to close that window, then OK on the next window
  9. You can then run CMS or ODM and set them to point to or (with ODM, you click ‘Add’ at the bottom of the left column and then you’ll put something like in for the URL)

Option 2: Steps for seeing the stream on a camera connected to a Pi

  1. Download and install either CMS or ODM on your Windows PC
  2. VNC into the Pi and run (on your desktop) in a terminal
  3. Check the IP address of the Pi by running ‘ifconfig’ in a terminal window. You want the ‘inet addr’ under wlan0
  4. On your PC (that is on the same network as your Pi) you can then run CMS or ODM and setup either to point to the IP address of the Pi. With ODM, click ‘Add’ at the bottom of the left column and then input for the URL - just make sure the replace "" with the IP address of your Pi.
  5. Connect to the camera and view the live stream


Now that you have a live stream, you can open up your camera housing and adjust the lens by turning the lens clockwise or anti-clockwise until good focus is achieved. Good focus may be a bit subjective, but you want to aim for stars that are a few pixels across and uniform in size across the field. Sometimes we will actually defocus a bit. If the stars are too sharp (~1 pixel across) we have troubles extracting stars from the imagery. Likely, this won’t be an issue for you though.

Once you’ve focused, close the camera up and shutdown CMS/ODM. If tunneling through the Pi, be sure to stop the tunnel script by hitting ‘any’ key while in the terminal that is running Then you can either reboot the Pi or restart in a terminal window.