FrSky telemetry with arduino

I decided it would be useful having telemetry on my 9xr, but I disliked the existing hardware mods and decided to try to use the port on the back of the djt module and connect a hd44780 display and an arduino nano. The tricky part was inverting the signal by using SoftwareSerial instead of hardware. […]

Connecting Turnigy 9XR with Arduino ISP

Installing my usbASP drivers failed miserably on my PC, so I decided to use my Arduino Uno to flash OpenTX on my Turnigy 9XR radio controller. Connecting the controller was very simple once I figured out the orientation of the ISP header on the controller. Use your multimeter to find the GND pin of the […]

Nexa remote socket teardown

I have been fiddling with remote sockets for a couple of years now, especially Nexa branded ones. Yesterday, for the first time, I believe the relay has broken in one of the oldest ones -> Teardown time! There are some kind of screws that I have never seen before holding the thing together. I tried […]

Linux default gateway failover

I have an “unreliable” (I sometimes just take it with me) mifi box with fast LTE connection, shared to internal network via separate gateway, and a reliable but slow ADSL connection. I use the following script to switch to the slower connection when the default one is not working and automatically switch back when possible. […]

Disable What’s New App on xperia devices without root

Got my beautiful XPERIA Z3 compact a couple of days ago and was instantly very annoyed at the completely useless What’s New -app, since it was integrated even in the launcher of all places.. Here’s how to remove it without root, idea from┬á Get-rid-of-What-s-New root@Basecamp-Debian:/home/filip# adb shell shell@D5803:/ $ pm block com.sonymobile.advancedwidget.entrance Package com.sonymobile.advancedwidget.entrance new […]

Move changed files to a separate directory (Linux)

I have previously used hardlinking and rsync to backup my systems. I now have a lot of hardlinked directories with almost the same content in folder structures such as etc.0, etc.1 etcetera (etc.0 being the newest) up to 60. Cleanup script follows: #!/bin/bash   for i in {1..60} do rsync -a –verbose –compare-dest=../etc.$((i-1)) etc.$i/ etc.diff.$i […]

USB fuse bypass for RPi B rev. 0003

My raspberry pi didn’t supply enough current to the connected usb devices and I didn’t want a usb hub so something had to be done.. Got the idea from Larry_Adlards post (Sun Jun 17, 2012) to but since my rev 3 board did not have polyfuses F1 and F2 (they were shorted) I had […]

Two network adapters, how to change the preferred (Windows)?

It’s decided by the Gateway metric. In my case I want to make the first one the preferred one, so I have to change the “InterfaceMetric: 20” to a value smaller than 10. C:\Users\Filip>route print IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 10 […]

10 bit PWM on ATmega32u4 (ex. Arduino Micro)

Some magic is required to get 10 bit PWM on ATmega32u4. Setup: pinMode(13, OUTPUT); pinMode(10, OUTPUT);   // 10-bit operation TC4H = 0x03; OCR4C = 0xFF; //Configuration of Timer 4 Registers, OC4A (D13) + 0C4B (D10) TCCR4A = 0b10100011; //Prescaler TCCR4B = 0b00000011; pinMode(13, OUTPUT); pinMode(10, OUTPUT); // 10-bit operation TC4H = 0x03; OCR4C = […]

Simple iptables

setup iptables for ssh, zabbix, ping, http cat /etc/network/if-pre-up.d/*   echo -e ‘#!/bin/bash   /sbin/iptables-restore < /etc/iptables.up.rules’ > /etc/network/if-pre-up.d/iptables   chmod +x /etc/network/if-pre-up.d/iptables   echo -e ‘*filter :INPUT DROP [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [11:844] -A INPUT -p tcp -m tcp –dport 22 -j ACCEPT -A INPUT -p tcp -m tcp –dport 10050 -s […]