other:other

This is an old revision of the document!


Other

  • Log in
  • Kies zwart-wit of kleur (EDU of ADM maakt niet uit)
  • Upload het bestand
  • Ga naar de afdeling grafiek (verdieping 3)
  • Leg KASK-kaart op de printer
  • Selecteer je budget. Privé of ART1
  • Klik op Secure print
  • Selecteer je file
  • Klik 'print'.

Formlab - Grav website CMS system

  • Main page: blog
  • child pages: item

standalone VR goggles

Troubleshooting:

When controller doesn't want to connect, do a factory reset: - Press power and volume-down button - Navigate to the factory reset option with the volume buttons - press OK with the power button

  • Open new explorer window
  • Right-click on 'This PC'
  • Click on Map Network Drive…
  • in 'Folder', write: \\IP-address-of-mac\shared-folder-name
  • Enter the username and password the shared folder is connected to

https://www.norwegiancreations.com/2018/07/controlling-a-camera-shutter-remotely-with-an-arduino/
I used this circuit with the 4N25 optocoupler: http://wei48221.blogspot.com/2016/06/how-to-use-4n25-optocoupler_27.html To use this with a 3.3V trigger signal, the resistor going to input 1 on the optocoupler should be around 50Ω.

Download here: videolooper.de

Keep in mind that 1920×1080 is the max playable resolution.

If you want to use a aspect ratio other than 16/9, edit the config file ( /boot/config.txt ):

  • comment out the line 'dtoverlay=vc4-fkms-v3d'
  • comment out the line 'max_framebuffers=2'

Removing those functions allowed the raspberry pi videolooper to play non 1920×1080 footage.

Source

Disclaimer: I don't know what I'm doing, but it seems to work.

The svg2gcode webpage converts svg drawings to gcode for pen plotters. Very cool! But sometimes it's off line. That's where this local copy comes into play. The code is written in Rust. Cargo is the package manager for Rust. Packages are called crates. Trunk is a rust crate that is a web server and prepares code to be ran online and Yew is another crate that takes the data from Trunk and provides the framework for front-end web applications.

Start the server

  • Double click the file “svg2gcode-LOCAL.command”. (only on the Desktop of the computer in Formlab)
    • A terminal will show some text and a browser window with the local version of the svg2gcode page.
    • What the script is doing is the following:
      • In the Terminal, go to the folder of the web app:
         cd ~/Documents/trunk-server/svg2gcode-main/web
      • trunk serve --open

Stop the server

  • In the Terminal, type: CTRL+C

Install the server

Run these commands with the terminal.

  • Install Rust
    • curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    • Press enter for default installation
    • Configure the PATH variable:
      . "$HOME/.cargo/env"
    • Reboot the terminal and test with:
      rustc --version
  • Download Git repository (zip file): https://github.com/sameer/svg2gcode and unzip.
  • In terminal, go into the downloaded folder:
    cd svg2gcode-main
  • Build the cargo project
    cargo build --release
    • Not sure if this is necessary, but it worked so keep doing this!
  • Install trunk (a tool to automatically prepare rust projects for the web web using Web Assembly (WASM))
    • cargo install trunk

      (This did take a long time)

  • Add the WASM (web assembly) build target:
    • rustup target add wasm32-unknown-unknown

      (prepare for any machine and serve for any kind of machine).

  • Change the terminal location to the web folder (svg2gcode > web):
    • cd web
  • Run the cargo project:
    • cargo run
    • The commandline is busy downloading and compiling for a while, then shows “thread 'main' panicked at users/admin/.cargo/registry/src/index.crates.io….. numbers and letters…
    • I think this might be an unnecessary step. Test perhaps? I didn't do anything with the warning…
  • Start the server:
    • trunk serve --open
    • I got an error: problem with path for the spectre.scss file. The 'svg2gcode-main > web > style > spectre' was empty. A browser window opened, but didn't load a page.
    • I downloaded the code folder from the spectre github (spectre-master), unzipped it and moved the contents of that folder to the spectre folder in svg2gcode-main > web > style > spectre. Instantly the terminal continued compiling.
    • Reloading the page in the browser now shows a working local copy of the svg2gcode website.
      • Test it by generating Gcode without wifi or ethernet connected.

Make the pen plotter (OpenBuilds Acro) shut down after plotting so it can plot even nobody is present in Formlab. This prevents the motors from staying hot for too long.

The G-code sender (Openbuilds Control) sends commands to the pen plotter. Add this custom bit of gcode to quickly toggle the relay at the end of the plotting program:

M8 ; close relay
G4 P0.2 ; wait for 20ms
M9; open relay

The Arduino nano detects the relay closing as a pushbutton. When this happens, the Arduino will transmit the code over radio signal to turn off the remote switch.

  • This guide used a socket with a different chipset, so this didn't work directly, but it was a good start.
  • This guide pointed me to the right library that is compatible with the remote power plug
  • Components
* Populate breadboard
  * Put the Arduino nano on a breadboard
  * Plug in the radio receiver board (the longer one with 4 pins), so that no pins overlap with the Arduino
    * Add jumper cables for GND and VCC (use the 5V from the Arduino nano)
    * There's 2 pins left in the middle on the receiver board, but I think they're the same. Add a jumper from one of the middle pins to pin 2 on the Arduino
  * Plug in the radio transmitter board (the square one), so that no pins overlap with other pins
    * Connect VCC and Ground
    * Add a jumper cable from the middle pin to pin 11 on the Arduino
    * Add a cable from the 2 screw terminals of the relay output port of the OpenBuilds Blackbox to the breadboard and connect one lead to +5V and the other to pin 3. From there, also go to GND via a 10Kohm resistor. This is basically a setup for a button / switch
* Pair up the remote to a socket
  * Plug in the socket to a power strip
  * With the remote, click "on" 4 times to pair. Now the on - off pair on the remote works with the remote socket.
  • On save: 'error security token did not match. Possible CSRF attack'.
    • Check if webpage is in secure mode (https). If not, add https:// in front of it and reload.
  • other/other.1720450715.txt.gz
  • Last modified: 2024/07/08 07:58
  • by formlab