Advertise with Googlier.com Chaos Geordend https://www.chaosgeordend.nl/wordpress Travaillons sans raisonner, c'est le seul moyen de rendre la vie supportable Mon, 20 Jan 2025 20:55:30 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.10 https://www.chaosgeordend.nl/wordpress/wp-content/uploads/favicon.ico Chaos Geordend https://www.chaosgeordend.nl/wordpress 32 32 Ubuntu 22.04 https://www.chaosgeordend.nl/wordpress/2025/01/07/ubuntu-22-04/ Tue, 07 Jan 2025 20:35:43 +0000 https://www.chaosgeordend.nl/wordpress/?p=956 Continue reading "Ubuntu 22.04"

]]>

My mid-2010 iMac is supported by Apple up to MacOS 10.13 (High Sierra). As the iMac is in fine condition still, I moved to Ubuntu 22.04. Which I already have on a 2008 (!) Macbook Pro, and an Acer Timeline laptop.

Long story short
Copied the full contents of the (MacOS) home directory to the fresh installed Ubuntu home.
A custom script for opening the MacOS (.webloc) web-links in Ubuntu by just double-clicking.
The MacOS alias could not be that easily used. Replaced those by symlinks, thus losing the refined functionality (of the alias), with a Python-script and, for batch-processing, this shell-script.

MacOS alias to symlink (Python) script: alias2symlink.py
Find MacOS alias files shell script: find_bookmarks.sh
Open MacOS web-links (.webloc) in Ubuntu: open_webloc.sh

]]>
Raspberry Pi 4 OwnCloud server https://www.chaosgeordend.nl/wordpress/2021/05/11/raspberry-pi-4-owncloud-server/ Tue, 11 May 2021 09:12:54 +0000 https://www.chaosgeordend.nl/wordpress/?p=912 Continue reading "Raspberry Pi 4 OwnCloud server"

]]>
Raspberry Pi4 server case

Memo voor de eigen voortgangsrapportage.
De Raspberry Pi 3 doet al weer vijf jaar dienst als meterkastserver, tijd voor wat versnelling en daarom vervangen door een Raspberry Pi 4.
Kastje geprint in PLA. Printje voor de driestanden reset/run schakelaar, ATtiny (pre)processor, aansturing miniventilator en extra (LED) uitgang voor toekomstige uitbreiding.


OLED Display
Display examples

Hardware
Raspberry Pi 4 B 4GB RAM
SD Kaart 32GB
OLED SSD1306 display Monochroom 1.3″ 128×64
RPi Server HAT PCB 0.2b
Samsung SSD 500GB
SATA III naar USB 3 kabeltje

HAT (Hardware Attached on Top)

Puntlasapparaat PCB

Download HAT PCB Eagle files (ZIP 130kB)

Case
Raspberry Pi4 server case FreeCAD ontwerp
Download the FreeCAD design files (ZIP 900kB)

Software
Raspbian 10 (Buster)
Bind9
Fail2ban
Gallery3
Log2ram
Mailgraph
netfilter (iptables)
OwnCloud
OpenBookmark
PHPMyAdmin
Pilight
RRDTool
Squirrelmail
SBFSpot
Webalizer

]]>
Audacity toetscombinaties https://www.chaosgeordend.nl/wordpress/2021/03/23/audacity-toetscombinaties/ Tue, 23 Mar 2021 21:09:19 +0000 https://www.chaosgeordend.nl/wordpress/?p=875 In goed Nederlands: Audacity keyboard shortcuts dus.

Hoe ging dat ook al weer, een label toevoegen en selectie van cursor tot en met track begin? Als je Audacity een poosje niet meer gebruikt hebt, helpt dit kaartje je weer op weg.
Dubbelzijdig printen, bijsnijden, en dan in driëen vouwen.

Download: Audacity keyboard shortcuts (PDF 230kB)
Audacity keyboard shortcuts

]]>
Fanju Temperature sensor transmission protocol https://www.chaosgeordend.nl/wordpress/2021/02/18/fanju-temperature-sensor-transmission-protocol/ Thu, 18 Feb 2021 16:18:45 +0000 https://www.chaosgeordend.nl/wordpress/?p=828 Continue reading "Fanju Temperature sensor transmission protocol"

]]>
Fanju temperature sensor
On AliExpress you find cheap wireless (RF433) weather stations compatible with the ‘Fanju’ weather station model FJ3378/74/79C/65/89 (according to AE). Following is the description of the data transmission protocol.

Details
First the RF signal was analysed to determine the physical layer, OOK using e.g. Manchester encoding or pulse-width modulation.

Helpful in reverse engineering a checksum is data differing one bit only. The sensor uses a rolling-code for its identification. That means, when powered off, c.q. batteries are changed, it generates a new id.
With help of the ATTiny and a FET, the sensor is switched off and on for a few hours. The data sent was logged using a Python script. With the thus collected dataset the ‘attack’ started.

To make a long story short, the physical layer uses on-off keying and pulse-width modulation. Pulse durations (mark/space in µs) are as follows (pilight-debug timings between parenthesis):
Sync: 1000/1000 (936/936),
Head: 600/7900 (468/7956)
Data 0: 600/1900 (468/1872)
Data 1: 600/3800 (468/3744-4212)
Tail: 600/16000 (468/15912)
A message comprises 4xSYNC, 1xHEAD, 40xDATA 0/1, 1xTAIL.
Every ±80s the station transmits a burst of six messages.

Physical layer

The checksum turns out to be a Linear-feedback Shift Register (LFSR) hash with seed 0xC and feedback 0x9. The following script calculates the masks used for generating the checksum:

Generate_hash_mask.py:

  mask = 0xC
  print("0")
  for i in range(40):
      lsb = (mask & 0x1 == 0x1)
      mask >>= 1
      if lsb:
          mask ^= 0x9
      print("Mask: {:2x} {:04b}".format(mask, mask))
      if ((i + 1) % 4) == 0:
          print(i + 1)

Hardware used
Raspberry Pi 4
RF 433MHz superheterodyne receiver *)
ATTiny85 development board *)
A FET and two resistors lying around here
*) AliExpress

Python Tk GUI
Software
A Python script for data analysis and checksum verification
Protocol code has been submitted to the PiLight project and is under review. PiLight GitHub repo

Pilight Webserver
Software

]]>
Random wallpaper from pictures and subfolders https://www.chaosgeordend.nl/wordpress/2020/11/09/random-wallpaper-from-pictures-and-subfolders/ Mon, 09 Nov 2020 12:38:23 +0000 http://chaosgeordend.nl/wordpress/?p=562 Continue reading "Random wallpaper from pictures and subfolders"

]]>
The OS X desktop changer does not follow subfolders in the image source folder. Since SnowLeopard the Screensaver will use the images in subfolders but the Desktop changer will not. As a workaround you can create a folder with links to all images, including images in subfolders (recursively).
In System preferences set the Desktop changer to point to the folder with the links as image source.

Here is a shell script that will create symbolic links (in ~/Desktop/Wallpapers) to all pictures (in ~/Pictures) recursively: wallpaper_links.command

This Python script will show the path to the current image: tkWallpaperCurrent.py

tkWallpaperCurrent.py

]]>
SphereBot Arduino shield https://www.chaosgeordend.nl/wordpress/2018/04/17/spherebot-arduino-shield/ Tue, 17 Apr 2018 15:35:56 +0000 http://chaosgeordend.nl/wordpress/?p=493 Continue reading "SphereBot Arduino shield"

]]>
Arduino Uno shield

An Arduino (Uno) shield for two stepper-motors, one Servo motor, and an alternative output. For the SphereBot, another Egg-Bot derivative.
This SphereBot is built with a retired Sparkfun Arduino Ethernet Pro board and the steppermotors from a 2009 Makerbot. Firmware and host sw (fork) from thunderbug1.

Download the Eagle schematics and board (ZIP 100kB).

Shield pin usage:

Signal Pin
X-EN 11
X-STEP 12
X-DIR 13
Y-EN 5
Y-STEP 6
Y-DIR 7
SERVO 10
ALT 2 (FET switches 5V on/off)

SphereBot shield top
SphereBot

]]>
A simple Time Domain Reflectometer https://www.chaosgeordend.nl/wordpress/2017/04/02/a-simple-time-domain-reflectometer/ Sun, 02 Apr 2017 20:28:49 +0000 http://chaosgeordend.nl/wordpress/?p=428 Continue reading "A simple Time Domain Reflectometer"

]]>

Time Domain Reflectometer PCB Component side

I built the simple signal generator described in Electronic Design. The same circuit you find on ZL1NC and epanorama. Together with an Oscilloscope it can be used to find a cable fault as described in this All about Circuits article.
The 74AC14 SMD is mounted on the board its trace side. All other parts are through-hole. Most parts were salvaged from old electronics. You can adapt the PCB to your needs.

The board is powered with three alkaline AA cells. A Digital Oscilloscope, OpenHantek, and a battery powered laptop were used in the, ahem, ad-hoc test setup. From the five (10ns, 50ns, 200ns, 1µs, 5µs) options only the 10ns and 200ns were used. The 40MHz bandwith of the 2090 DSO was, as expected, insufficient for checking a two meter long cable. After all, this was an experiment out of curiosity.

On YouTube you can find this instruction video by W2AEW. He gives a clear explanation. And has a better scope too :-)

Set the oscilloscope probe to 10x as the 1x option limits the bandwith. See the Electrical Engineering post for example.

Download the Eagle board and schematic files (50kB zip).


Time Domain Reflectometer PCB Component side


Time Domain Reflectometer PCB Trace side

]]>
Raspberry Pi Hometheater https://www.chaosgeordend.nl/wordpress/2016/10/17/raspberry-pi-hometheater/ Mon, 17 Oct 2016 12:26:21 +0000 http://chaosgeordend.nl/wordpress/?p=355 Continue reading "Raspberry Pi Hometheater"

]]>
Raspberry Pi Hometheater

I was a happy user of the first model Apple TV. Then the iTunes ecosystem grew bigger and bigger. On top of that the new Apple TV is cloud- or network-based only. Not all my music can be found in the cloud, and I prefer it nearby, i.e. without the need of access to some NAS or other PC in the network. So I switched to a Raspberry Pi model 2B and 500GB harddisk in combination with Kodi.

Recently I upgraded this box with the model 3 Pi. Here follows the configuration.


Kodi2 display
Software

Hardware

Other parts

  • PCB for Ethernet socket (to extend from RPi to backside)
  • PCB for triple function pushbutton
  • perspex/plexiglass screen for the OLED display

Box

]]>
Ciclop scanner shield https://www.chaosgeordend.nl/wordpress/2015/07/20/ciclop-scanner-shield/ Mon, 20 Jul 2015 15:50:52 +0000 http://chaosgeordend.nl/wordpress/?p=286 Ciclop scanner shield

BQ’s Ciclop scanner comes with its own ZUM boards. My home made version is built with parts lying around, such as an Arduino Uno. Hence this simple shield for the Uno.

Download the Eagle schematics and board (ZIP 100kB).

]]>
Oorlog en Vrede https://www.chaosgeordend.nl/wordpress/2015/07/13/oorlog-en-vrede/ Mon, 13 Jul 2015 21:00:56 +0000 http://chaosgeordend.nl/wordpress/?p=324 Continue reading "Oorlog en Vrede"

]]>
Romanfiguren Oorlog en Vrede

Oorlog en Vrede (Vojna i Mir) L.N. Tolstoj (1828-1910)

Met zoveel romanfiguren is een schema van de belangrijkste personen wel zo handig bij het lezen.

Oorlog en Vrede
Lev Tolstoj
Vertaling Peter Zeeman en Dieuwke Papma
Tweede druk 2005
Veen Bosch & Keuning uitgevers n.v., Wommelgem, België
ISBN 978 90 4141 4595

Download het schema met romanfiguren (PDF 50kB).

]]>