Difference between revisions of "Keyboard"

From TSG Doc
Jump to navigation Jump to search
 
(19 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. To change keyboard mapping to a different region/language, click the Language Bar icon in the system stray, or press Windows key + Spacebar, and configure/choose another option.
 +
<br/>
 +
[[File:ChooseLanguageSettings.png]]
  
=== Setting key backlights from Python, the easy way ===
+
ℹ️When you change the active keyboard layout, this is done for the application which is currently opened. If you open another application, the language used is the default one and you will have to switch it again.
If you find this too complicated, you can 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:
 
<source lang="python">
 
import daskeyboard
 
  
daskeyboard.keyColor("g", "blue") # G key becomes blue
+
====Special characters====
</source>
+
Special characters can be easily typed in certain keyboard mappings like US-International.
 
+
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 a, e, i, o, or u to get â, ê, î, ô, û.<br/>
 
+
Press ' followed by c to get ç.<br/>
url = 'http://localhost:27301'
+
Press ~ followed by n to get ñ.<br/>
 
+
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/>
headers = { "Content-type": "application/json"}
+
<br/>
 
+
Press and hold AltGr (right Alt on our lab keyboard), then press s, and you will get ß as result.<br/>
import json
 
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 14:13, 14 April 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. To change keyboard mapping to a different region/language, click the Language Bar icon in the system stray, or press Windows key + Spacebar, and configure/choose another option.
ChooseLanguageSettings.png

ℹ️When you change the active keyboard layout, this is done for the application which is currently opened. If you open another application, the language used is the default one and you will have to switch it again.

Special characters

Special characters can be easily typed in certain keyboard mappings like US-International. 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.