You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/05_ImSwitch/01_Quickstart.md
+40-13Lines changed: 40 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,9 @@
3
3
The Raspberry Pi serves as a bridge between the UC2-ESP board and a USB3 camera, running the ImSwitch software inside a Docker container. The system allows you to control the microscope through a web interface accessible from a phone or laptop.
4
4
5
5
> **Note:** This setup is experimental! You can try a demo version of the latest ImSwitch here:
@@ -80,6 +81,10 @@ There are two ways to set up the Raspberry Pi for ImSwitch:
80
81
81
82
### **Option 1: Manual Installation**
82
83
84
+
:::warning
85
+
We provide the easier installation with the prebuild OS image from the forklifted ImSwitch-OS; Please scroll down to use this if you want to have a real quick start (TODO: Add link to Option2)
86
+
:::
87
+
83
88
#### **Step 1: Install Raspberry Pi OS**
84
89
1. Download and install the Raspberry Pi Imager: [Download Here](https://www.raspberrypi.com/software/)
85
90
@@ -158,7 +163,7 @@ The image is built from the following workflow:
158
163
159
164
#### **Requirements**
160
165
- microSD Card with >32GB
161
-
- Raspberry Pi 4 or preferably Pi 5 (8GB RAM recommended)
166
+
- Raspberry Pi 4 (*not recommended anymore as we need more RAM*) or preferably Pi 5 (8GB RAM recommended)
162
167
- microSD Card reader
163
168
164
169
If you prefer a faster setup, you can use this **pre-built image** that includes all necessary software and drivers. This image was created with the [Forklift Project](https://github.com/forklift-run) and automates all setup steps.
@@ -179,25 +184,33 @@ Use the Raspberry Pi Imager to flash the image onto an SD card, then insert the
179
184
4. Do **not** specify additional user-specific settings.
180
185
181
186
##### **Default Credentials**
182
-
-**SSID:**`openUC2-unknown`
183
-
-**WiFi Password:**`copepode`
187
+
-**SSID:**`openUC2-XXXX` (`XXX` corresponds to a random number bsed on the MAC address)
188
+
-**WiFi Password:**`copepode` (now: `youseetoo`)
184
189
-**Username:**`pi`
185
190
-**User Password:**`youseetoo`
186
191
187
192
> **Note:** The Forklift image is updated automatically and ensures all software is correctly configured.
188
193
189
194
:::warning
190
-
If you want to have Internet on the Raspberry Pi, you can either plug the LAN port into a router with internet - then the wifi that is shared by the access point is automatically briding that connection. Alternatively, you can use an Android phone in USB access point mode and share the internet connection by that mean.
195
+
**INTERNET ACCESS:**If you want to have Internet on the Raspberry Pi, you can either plug the LAN port into a router with internet - then the wifi that is shared by the access point is automatically briding that connection. Alternatively, you can use an Android phone in USB access point mode and share the internet connection by that mean.
191
196
:::
192
197
193
-
:::error
194
-
In case the GUI hangs - this might be due to an older version that expected internet to load javascript libraries/fonts. It times out after 60s and renders the ImSwitch webapp - please update the software.
198
+
:::warning
199
+
**GUI HANGS:**In case the GUI hangs - this might be due to an older version that expected internet to load javascript libraries/fonts. It times out after 60s and renders the ImSwitch webapp - please update the software.
195
200
:::
196
201
197
-
198
202
For a detailed breakdown of the image creation process, see:
199
203
[ImSwitch OS GitHub Setup Script](https://github.com/beniroquai/imswitch-os/blob/main/setup.sh#L60)
200
204
205
+
#### **Updating Forklift configuration**
206
+
207
+
This will pull the latest pallet and forklift configuration. Be aware, that system rleated conifgurations may be overwritte. The command is the following:
208
+
209
+
```
210
+
forklift pallet upgrade --force @main
211
+
```
212
+
213
+
201
214
#### **Connecting to the Raspberry Pi**
202
215
1. Wait until the Raspberry Pi boots and you see the SSID `openUC2-unknown`.
203
216
2. Connect to the SSID and navigate to `http://192.168.4.1:9090` to access Cockpit.
@@ -399,15 +412,27 @@ If you are facing a problem with a wrong docker configuration (i.e. Docker Compo
399
412
400
413
The filename of the file containing the tailscale auth token should be tailscale-auth-key. The file will need to exist on the boot partition in a new run subdirectory of the init-root directory.
401
414
415
+
You can start tailscale by entering the following in the command:
416
+
417
+
```
418
+
sudo tailscale up # down for stopping
419
+
```
420
+
421
+
If you haven't provided the token, you can simply follow the link and add this to your local tailscale network.
422
+
423
+
402
424
#### Connect to Wifi
403
425
426
+
TODO: This needs a revision to make sure we have a direct way of connecting to a local network. Explain how we can use the cellphone's hotspot to get starting. Also: in case we lock ourselves out: We can use a LAN adapter and connect that to our network to access the pi via LAN on 192.168.5.1.
404
427
405
428
By default, the forklift configuration provides an access point and maps internet from the LAN to the AP conveniently. If you have an existing access point and you want to connect to that one using the raspberry pi can you can do that by following the follwoing steps.
406
429
407
430
**Problem (one‑sentence)**
408
431
Saved profile contains a malformed `ssid=` (often a trailing space added by *nmtui*). NetworkManager then scans for a name that does not exist and returns *WLAN konnte nicht gefunden werden*.
409
432
410
433
434
+
435
+
411
436
##### Quick‑fix workflow
412
437
413
438
| Goal | Command / action |
@@ -421,6 +446,8 @@ Saved profile contains a malformed `ssid=` (often a trailing space added by *nmt
421
446
422
447
##### Using *nmtui* instead of CLI
423
448
449
+
450
+
424
451
1.`sudo nmtui` → *Activate a connection* → highlight your network → **Add** (or **Edit**)
425
452
2. Enter **SSID** exactly (`openUC2`), security = *WPA & WPA2 Personal*, fill password.
This guide covers installing ImSwitch directly on your system using Python, suitable for development and advanced users who need full control over the installation.
4
4
@@ -154,6 +154,44 @@ For advanced users who want full control over the installation process, here are
154
154
- Qt5/Qt6 development libraries
155
155
- OpenGL support
156
156
157
+
158
+
In all cases, you can start the GUI (in case all the dependencies are properly installed) using the `is_headless=0` flag. For this create a python file (e.g. `main2.py`) and launch this:
159
+
160
+
```py
161
+
if__name__=='__main__':
162
+
from imswitch.__main__ import main
163
+
'''
164
+
To start imswitch in headless with a remote config file, you can add additional arguments:
- data_folder: path to the data folder => in docker this could be e.g. Volumes, media in combination with external scanning or any other volume that is direclty mapped as a folder to Imswitch
171
+
- scan_ext_data_folder: True or False => we will look for any externally connected devices (usb) that is mounted under /Volumes or /media
#main(is_headless=False) ## this has to be maintained for DOCKER!
178
+
#main(default_config="/Users/bene/ImSwitchConfig/imcontrol_setups/FRAME.json", is_headless=True, http_port=8001) ## this has to be maintained for DOCKER!
179
+
#main(default_config="/Users/bene/ImSwitchConfig/imcontrol_setups/example_uc2_lightsheet_hik.json", is_headless=True, http_port=8001) ## this has to be maintained for DOCKER!
Below you will find ways how to install the dependencies. In a nutshell: You install imswitch with the `PyQt5` flag which will install napari and its dependencies (e.g. `pip install .[PyQt5]` assuming you are in the same folder as the cloned ImSwitch (openUC2 version) repo). The ImSwitch app in QT looks as follows:
188
+
189
+

190
+
191
+
:::warning
192
+
**Discontinued support for QT**: We have stopped supporting the qt framework as we push towards the headless mode - please expect errors and unsupported functions!
Copy file name to clipboardExpand all lines: docs/05_ImSwitch/Advanced/02_Usage/Micromanager.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
ImSwitch now includes an official device adapter for µManager, enabling seamless integration between ImSwitch hardware control and µManager's powerful acquisition and analysis capabilities.
4
4
5
+
TODO: Improve the text and explain a bit how we can use the device in micromanager
0 commit comments