Difference between revisions of "Keyboards"

From TSG Doc
Jump to navigation Jump to search
m
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Corsair Vengeance K70 ==
+
Below is an overview of keyboards used in our labs, past and present. As of January 2026, all FSW research labs are equipped with the [[Corsair K70 PRO TKL]].
Most labs have one or more Corsair Vengeance K70 keyboards.  
 
  
The backlights can be turned on and off with the keys on the top row:
+
__FORCETOC__
[[File:Corsair top keys.png|thumb|Top row keys]]
 
* Use the round key in the center of the top row marked with a ''sun'' to set the keyboard backlight level in 4 steps.
 
* Use the round key in the left of the top row marked with a ''keyboard'' to switch between ''backlight on'' and ''programmed backlight''.
 
* Press and hold the round key in the left of the top row marked with a ''keyboard'' to change which keys are ''on'' and which keys are ''off'' in programmed mode. Watch [https://www.youtube.com/watch?v=Au2D8GnGlPw this video] for a demonstration.
 
  
You can for instance program the keys to show which keys are allowed during a certain experiment.
+
==Keyboards==
[[File:Corsair K70 key backlight.png|thumb|Corsair Keyboard indicating which keys can be pressed during a Simon experiment.]]
 
  
== Das Keyboard 4Q ==
+
{| class="wikitable" 
The Das Keyboard allows far more advanced programming of keys. The photo on the right shows how the Das Keyboard can be programmed to react to the key mapping of the experiment. Some participants are instructed to press the ''E'' key for a green stimulus and the ''I'' key for a blue stimulus. For other participants it is the other way around. These instructions are shown at the start of the experiment. The keyboard backlights are used as a constant reminder of the instructions.
+
|-
[[File:Das Keyboard Simon Task.png|thumb|Das Keyboard backlight reacting to the counterbalanced key mapping of a Simon experiment.]]
+
! scope="col" style="width:200px;"|
 +
! scope="col" style="width:200px;"| [[File:k70_pro_tkl.jpg|200px|Image: 200 pixels]] || [[File:K70.jpeg|200px|Image: 200 pixels]] || [[File:das_4q.jpeg|200px|Image: 200 pixels]] || [[File:K60.jpg|200px|Image: 200 pixels]] || [[File:logi-k400.jpg|200px|Image: 200 pixels]]
 +
|-
 +
! scope="col"|
 +
! scope="col"| [[Corsair K70 PRO TKL]] || [[Corsair Vengeance K70]] || [[Das Keyboard 4Q]] || Corsair K60 PRO TKL || Logitech K400 (v2)
 +
|-
 +
| Connection || USB (type C) || USB || USB || USB (type C) || Wireless
 +
|-
 +
| Size || 80% (TKL) || 100% || 100% || 80% (TKL) || 75%
 +
|-
 +
| Key Switches || Corsair MGX v2 <ref group="fn" name="mag"/> || Cherry MX Red <ref group="fn" name="mec"/> || Cherry MX Brown <ref group="fn" name="mec"/> || Corsair OPX <ref group="fn" name="opt"/> || Dome
 +
|-
 +
| Actuation Force || 30-55cN || 45cN || 45cN || 45cN ||
 +
|-
 +
| Polling Rate || up to 8000Hz || up to 1000Hz || || up to 8000Hz ||
 +
|-
 +
| USB Pass-through || style="background-color:#F99;" | No || style="background-color:#9F9;" | Yes (USB 2.0) || style="background-color:#9F9;" | Yes (USB 2.0) || style="background-color:#F99;" | No || style="background-color:#F99;" | No
 +
|-
 +
| Multimedia Controls || style="background-color:#FFB;" | Yes (via Function keys) || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes || style="background-color:#FFB;" | Yes (via Function keys) || style="background-color:#FFB;" | Yes (via Function keys)
 +
|-
 +
! Backlight
 +
! scope="row" colspan="5"|
 +
|-
 +
| Backlit Keys || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes || style="background-color:#F99;" | No
 +
|-
 +
| Color || RGB || Red || RGB || RGB || -
 +
|-
 +
| Programmable || style="background-color:#9F9;" | Yes || style="background-color:#FFB;" | Yes (on-device) || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes || style="background-color:#F99;" | No
 +
|}
 +
<references group="fn">
 +
<ref group="fn" name="mag">Magnetic (Hall effect)</ref>
 +
<ref group="fn" name="mec">Mechanical</ref>
 +
<ref group="fn" name="opt">Optical-Mechanical</ref>
 +
</references>
  
If you want to borrow the Das Keyboard 4Q, please contact the Technical Support Group. Please note that the Das Keyboard Q software must be installed on a computer for the keyboard backlights to work.
+
==Backlight Settings==
 +
* '''[[Corsair K70 PRO TKL#Backlight Programming | Corsair K70 PRO TKL]]'''
 +
* [[Corsair Vengeance K70#Backlight Programming | Corsair Vengeance K70]]
 +
* [[Corsair K70 RGB MK.2#Backlight Programming | Corsair K70 RGB MK.2]]
 +
* [[Das Keyboard 4Q#Backlight Programming | Das Keyboard 4Q]]
  
[https://www.daskeyboard.io/get-started/ Detailed information] about programming the Das Keyboard 4Q can be found on the manufacturer website. A few examples are given below.
+
==Keyboard Layout==
 
+
All our keyboards have a US-International QWERTY layout.
=== Setting key backlights from Python, the easy way ===
+
The keyboard mapping in Windows is set to United States-International. Installed languages are Dutch and English, the default is Dutch. To switch between languages or keyboard mappings, click the 'language and keyboard' icon in the tray and choose the option that you prefer.
The easiest way is to use the daskeyboard [https://gitlab.socsci.ru.nl/wilberth/daskeyboard Python library]. Just put the file [https://gitlab.socsci.ru.nl/wilberth/daskeyboard/-/raw/master/daskeyboard.py?inline=false daskeyboard.py] in the same directory as the experiment and use:
+
<br/>
<source lang="python">
+
[[File:ChooseLanguageSettings.png|thumb|none]]
import daskeyboard
+
<br/>
 
+
NOTE: one thing you should keep in mind is the fact that, when you change the active keyboard input language, this is done for the application which is currently opened. If you open another application, the input language used is the default one and you will have to switch it again.
daskeyboard.keyColor("g", "blue") # G key becomes blue
+
<br/><br/>
</source>
+
Special characters: press " followed by a, e, i, o, or u to get ä, ë, ï, ö, ü<br/>
 
+
Press ' followed by a, e, i, o, or u to get á, é, í, ó, ú.<br/>
=== Setting key backlights from Python, the hard way ===
+
Press ` followed by a, e, i, o, or u to get à, è, ì, ò, ù.<br/>
<source lang="python">
+
Press ^ followed by a, e, i, o, or u to get â, ê, î, ô, û.<br/>
#!/usr/bin/env python3
+
Press ' followed by c to get ç.<br/>
 
+
Press ~ followed by n to get ñ.<br/>
url = 'http://localhost:27301'
+
Pressing ", ', `, ^ or ~ followed by spacebar will result in a single ", ', `, ^ or ~. Most likely, you can just continue typing: if the next character doesn't exist with an accent character, ", ', `, ^ or ~ will preceed the next character; for example pressing ' followed by s will result in the expected 's.<br/>
 
+
<br/>
headers = { "Content-type": "application/json"}
+
Press and hold AltGr (right Alt on our lab keyboard), then press s, and you will get ß as result.<br/>
 
+
<br/>
import json
+
Tip: if you think it is annoying that a single press on ' or " does not result in the character, think that you probably also need a ' or a " at the end of a string. Then, press ', or " twice to get double quotationmarks. Then use the left arrow to move the carret between the quotation marks and type the string between the quotation marks.
import requests
 
 
 
# prepare signal
 
signal = {
 
'zoneId': 'KEY_Q',
 
'color': '#F0F',
 
'effect': 'SET_COLOR',
 
'pid': 'DK4QPID',
 
'name': 'Set Q to purple'
 
}
 
 
 
# send signal
 
result = requests.post(url + '/api/1.0/signals', data=json.dumps(signal), headers=headers)
 
 
 
# checking the response
 
if result.ok:
 
print("OK")
 
print(result.text)
 
else:
 
print("Error: " + result.text)
 
</source>
 

Latest revision as of 17:42, 3 February 2026

Below is an overview of keyboards used in our labs, past and present. As of January 2026, all FSW research labs are equipped with the Corsair K70 PRO TKL.


Keyboards

Image: 200 pixels Image: 200 pixels Image: 200 pixels Image: 200 pixels Image: 200 pixels
Corsair K70 PRO TKL Corsair Vengeance K70 Das Keyboard 4Q Corsair K60 PRO TKL Logitech K400 (v2)
Connection USB (type C) USB USB USB (type C) Wireless
Size 80% (TKL) 100% 100% 80% (TKL) 75%
Key Switches Corsair MGX v2 [fn 1] Cherry MX Red [fn 2] Cherry MX Brown [fn 2] Corsair OPX [fn 3] Dome
Actuation Force 30-55cN 45cN 45cN 45cN
Polling Rate up to 8000Hz up to 1000Hz up to 8000Hz
USB Pass-through No Yes (USB 2.0) Yes (USB 2.0) No No
Multimedia Controls Yes (via Function keys) Yes Yes Yes (via Function keys) Yes (via Function keys)
Backlight
Backlit Keys Yes Yes Yes Yes No
Color RGB Red RGB RGB -
Programmable Yes Yes (on-device) Yes Yes No
  1. Magnetic (Hall effect)
  2. 2.0 2.1 Mechanical
  3. Optical-Mechanical

Backlight Settings

Keyboard Layout

All our keyboards have a US-International QWERTY layout. The keyboard mapping in Windows is set to United States-International. Installed languages are Dutch and English, the default is Dutch. To switch between languages or keyboard mappings, click the 'language and keyboard' icon in the tray and choose the option that you prefer.

ChooseLanguageSettings.png


NOTE: one thing you should keep in mind is the fact that, when you change the active keyboard input language, this is done for the application which is currently opened. If you open another application, the input language used is the default one and you will have to switch it again.

Special characters: press " followed by a, e, i, o, or u to get ä, ë, ï, ö, ü
Press ' followed by a, e, i, o, or u to get á, é, í, ó, ú.
Press ` followed by a, e, i, o, or u to get à, è, ì, ò, ù.
Press ^ followed by a, e, i, o, or u to get â, ê, î, ô, û.
Press ' followed by c to get ç.
Press ~ followed by n to get ñ.
Pressing ", ', `, ^ or ~ followed by spacebar will result in a single ", ', `, ^ or ~. Most likely, you can just continue typing: if the next character doesn't exist with an accent character, ", ', `, ^ or ~ will preceed the next character; for example pressing ' followed by s will result in the expected 's.

Press and hold AltGr (right Alt on our lab keyboard), then press s, and you will get ß as result.

Tip: if you think it is annoying that a single press on ' or " does not result in the character, think that you probably also need a ' or a " at the end of a string. Then, press ', or " twice to get double quotationmarks. Then use the left arrow to move the carret between the quotation marks and type the string between the quotation marks.