Raspberry Pi: Difference between revisions

From NSS Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
*The vacuum chamber upstream of the ANASEN main chamber is used to mount beam tuning diagnostics; a camera, a silicon detector and a phosphor screen.
*The silicon and the phosphor screen are mounted next to each other on a manual drive.
*The camera is mounted on a plastic holder at the bottom flange outside the beam path and tilted towards the phosphor screen to facilitate beam tuning. Next to the camera is an LED, which can be turned on to view the inside of the chamber and check detector/phosphor screen position and adjust the camera settings. '''Make sure to unbias the detector before turning on the LED!'''
*The camera is controlled via a raspberry pi
*
=Connecting the camera=
=Connecting the camera=
*The little ribbon cables are a little tricky. They have to be inserted in a particular orientation.  The best way to see is just to look at where the metal pins are on the cable and line that up to the contacts.
*The little ribbon cables are a little tricky. They have to be inserted in a particular orientation.  The best way to see is just to look at where the metal pins are on the cable and line that up to the contacts.
Line 10: Line 16:


=Login=
=Login=
*The raspberry pi is running raspberry pi OS (previously Raspbian) and is based on debian linux
*To connect to the pi remotely (provided it is registered on the network and connected to the ethernet), open a shell and ssh into it:
<code>ssh -Y pi@anasen01.triumf.ca</code>
<code>ssh -Y pi@anasen01.triumf.ca</code>
*Or login directly when monitor, mouse and keyboard are attached to the pi
*Ask Annika or Martin for password
*Ask Annika or Martin for password


Line 19: Line 28:


*You can change zoom settings in the python script
*You can change zoom settings in the python script
=VNC viewer=
*For Operators to use the camera via vnc to tune to the viewscreen, they need a device with 'real vnc' viewer installed. This runs on anything, even on an android phone.
*To connect, use the IP address: 142.90.121.216. User name is 'pi'. Password is the same as to ssh into the raspberry pi. Ask Annika or Martin for the password.

Latest revision as of 22:24, 30 August 2022

  • The vacuum chamber upstream of the ANASEN main chamber is used to mount beam tuning diagnostics; a camera, a silicon detector and a phosphor screen.
  • The silicon and the phosphor screen are mounted next to each other on a manual drive.
  • The camera is mounted on a plastic holder at the bottom flange outside the beam path and tilted towards the phosphor screen to facilitate beam tuning. Next to the camera is an LED, which can be turned on to view the inside of the chamber and check detector/phosphor screen position and adjust the camera settings. Make sure to unbias the detector before turning on the LED!
  • The camera is controlled via a raspberry pi

Connecting the camera

  • The little ribbon cables are a little tricky. They have to be inserted in a particular orientation. The best way to see is just to look at where the metal pins are on the cable and line that up to the contacts.
  • The LED mounted next to the camera takes 5V (lemo connection)
  • There is a micro-HDMI on the raspberry pi. Use the ethernet port to talk to the pi.
  • Connect the Raspberry Pi directly to monitor, mouse and keyboard.

Raspberry Pi.

Raspberry Pi connection at flange.

Login

  • The raspberry pi is running raspberry pi OS (previously Raspbian) and is based on debian linux
  • To connect to the pi remotely (provided it is registered on the network and connected to the ethernet), open a shell and ssh into it:

ssh -Y pi@anasen01.triumf.ca

  • Or login directly when monitor, mouse and keyboard are attached to the pi
  • Ask Annika or Martin for password
  • Open a terminal
  • To run the camera.py script do:

raspivid -t 0

  • You can change zoom settings in the python script

VNC viewer

  • For Operators to use the camera via vnc to tune to the viewscreen, they need a device with 'real vnc' viewer installed. This runs on anything, even on an android phone.
  • To connect, use the IP address: 142.90.121.216. User name is 'pi'. Password is the same as to ssh into the raspberry pi. Ask Annika or Martin for the password.