Quantcast
Channel: ad hocumentation • n. fast documentation of ideas and solutions.
Browsing index pages (72 articles)

Set timezone to Europe/Dublin at command line in Debian Live

To list timezones: timedatectl list-timezones To set timezone to Europe/Dublin: sudo timedatectl set-timezone Europe/Dublin

View Article


Arduino Nano Timer 1 interrupt example for 100 Hz sampling

100 Hz sampling using Timer 1 interrupt // // Arduino Nano interrupt example // This program uses the Timer 1 interrupt to implement // 100 Hz sampling on pin A0. The Timer 1 interrupt service //...

View Article


Image may be NSFW.
Clik here to view.

Running Arduino IDE in a Debian Live session

The Arduino IDE requires access to the serial port (/dev/ttyUSB0 on my machine) to upload a sketch to the Arduino. In a Debian Live session, the default user (“user”) doesn’t have permission to access...

View Article

Installing VirtualBox on Debian 11

Install VirtualBox Go to this page: https://www.virtualbox.org/wiki/Linux_Downloads Download this file:...

View Article

Image may be NSFW.
Clik here to view.

More PRBS turtle graphics

In this plot, four cycles of PRBS-15 are shown. Like all PRBS sequences generated using a linear feedback shift register (LFSR), this binary sequence is periodic with a period of 32767 bits. The...

View Article


PRBS visualisation in the style of turtle graphics

Having just watched two great Numberphile videos with Matt Henderson (1, 2), I was inspired to try visualising a PRBS in the style of turtle graphics. Below is my first quick experiment. The sequence...

View Article

Using ffmpeg to take a snapshot with a webcam in Windows

I downloaded the BtbN Windows build of ffmpeg from here: https://github.com/BtbN/FFmpeg-Builds/releases The specific file I downloaded was: ffmpeg-n4.4.1-2-gcc33e73618-win64-gpl-4.4.zip (download) I...

View Article

Using a serial byte sent from an Arduino to launch an application on the PC

One of my students is building an Arduino-based robotic system that needs to run a program on the PC to do some image capture. The Python script below bridges the gap. It opens a serial port (you need...

View Article


Image may be NSFW.
Clik here to view.

Generating variations on a code analysis question in a Brightspace quiz

NB This post is a work in progress. Download example files: example_question.zip This post documents the process I used to programmatically generate multiple variations on a quiz question for the...

View Article


How to merge two Garmin .fit files and upload to Strava on Ubuntu

First, install gpsbabel and (optionally) gpxviewer. sudo apt install gpsbabel gpxviewer Now, use gpsbabel to combine the two .fit files into a single .gpx file. gpsbabel -i garmin_fit -f B3781326.FIT...

View Article

Image may be NSFW.
Clik here to view.

Moving statue of David Foster Wallace

I’m experimenting with adding different types of animated noise to static images to create an illusion of movement. Nothing very successful so far, but I’m enjoying the periodic modulation of the...

View Article

TU Dubuntu 19.10 – a customised live USB version of Xubuntu Linux 19.10 for...

This post documents the steps I followed to create a customised version of the Xubuntu 19.10 live CD. I called the modified image “TU Dubuntu” (after my university, TU Dublin), but it’s really just...

View Article

Using Canon EOS 70D DSLR as a USB web cam in Xubuntu Linux 19.04

For a while now, I’ve been interested in using my Canon EOS 70D DSLR as a USB camera so that I can record (and potentially live stream) better quality tutorial videos. The quality of video from the 70D...

View Article


TU Dubuntu – a customised live USB version of Xubuntu Linux 19.04 for TU Dublin

This post documents the steps I followed to create a customised version of the Xubuntu 19.04 live CD. I called the modified image “TU Dubuntu” (after my university, TU Dublin), but it’s really just...

View Article

Image may be NSFW.
Clik here to view.

Using the PHP command line web server to transfer files between devices on a...

When you install PHP, you get a simple built-in webserver as a bonus. This is very handy for testing web pages you’re writing, but I also sometimes use it as a simple way to transfer files between...

View Article


Image may be NSFW.
Clik here to view.

€5 PPG – photoplethysmogram amplifier / Arduino circuit

The photoplethysmogram (PPG) is a signal that measures changes in blood volume in some part of the body (e.g. the fingertip) by shining light into the skin and detecting small changes in the level of...

View Article

Image may be NSFW.
Clik here to view.

Clap detector circuit / AirSpell typing system

This circuit combines a simple audio amplifier (based on an LM358 opamp) with an Arduino Nano to facilitate the detection of clapping sounds or blowing on the microphone. This is my breadboard circuit:...

View Article


AirMouse – control mouse pointer in Linux using one switch or by blowing on...

Article under construction! To install xdotool: sudo apt install xdotool Bash script (save as “airmouse” and “chmod 755 airmouse” to make it executable): #!/bin/bash # Run these commands first in...

View Article

Image may be NSFW.
Clik here to view.

Some RGB fractal doodles

Click on the animation to view full size gif. This is the code I used to generate the animation: // // fraktalismus modulo - written by Ted Burke 15-1-2019 // Compiled and tested on Xubuntu Linux...

View Article

How to display USB webcam as live video on desktop using mplayer

mplayer -tv driver=v4l2:gain=1:width=1280:height=720:device=/dev/video1:fps=10:outfmt=rgb16 tv://

View Article
Browsing index pages (72 articles)


Latest Images