AWS switch role “Invalid information in one or more fields. Check your information or contact your administrator”

You are trying to switch roles in the AWS Console using the role “OrganizationAccountAccessRole” but get the error “Invalid information in one or more fields. Check your information or contact your administrator”.

The role “OrganizationAccountAccessRole” is only added automatically if the account was created from AWS Organizations. If instead you have invited a pre-existing AWS account to join an org you have to create the “OrganizationAccountAccessRole” manually and specify “Another AWS Account” and the account ID of the account used to assume the role from.

Official instructions here: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html

How to 3D print your brain

Have you had an MRI? Did you get a copy of the data? Do you have a 3D printer? Great – let’s make you a backup brain in case something happens to your current one. Can also potentially be used to double ones intelligence.

Scale 1:1

Electroleaf: Nanoleaf-inspired wall decoration / lamp. Powered by an Arduino and controlled over Bluetooth from a custom Android app

After seeing the 3D print designs from Akyelle on Thingiverse I wanted to see if I could make a version which could be controlled from a smartphone over Bluetooth.

I had code for controlling addressable WS2812B LEDs / Neopixels since from previous lamp projects but in this case that wasn’t enough. Code for controlling the LEDs over Bluetooth (HC-05 Bluetooth module) as well as some info on how to make an app that could talk to it was also needed. In the end I used HowtoMechatronics excellent guide on Bluetooth and Arduino apps for that part and combined it with the lamp code to create the below

The modular lamp parts are printed on a Prusa i3 MK3s in black and white PLA. Each LED is soldered together with its neighbor – laborious work as each has 6 connectors (5V, GND, Signal in/out on each end). Currently 6 panels with 9 LEDs each means 342 soldering points just for this small size version 🙂

Wiring diagram

Breadboard schematic showing the wiring and components

Links to resources

A note on programming the Arduino: Please disconnect the TX and RX leads from the Arduino board when programming it or the Arduino sketch download will fail

Android app

The app is made almost exactly according to HowtoMechatronics guide but with some minor changes. If the code for the Arduino is used without any major modifications it’s possible to simply download and use the app as-is from here: link

However, I’d highly recommend creating your own using MIT App Inventor as it’s pretty easy when following the guide. A couple of screenshots of the process are included below for reference but I won’t duplicate the work done in the HowtoMechatronics guide.

The UI layout

The app logic

That’s it 🙂 Have fun creating your own lamps. As someone said: “Why buy something when you can build it for three times the cost?

Japanese input in Openbox

It can be a challenge to get Japanese input working in the Openbox window manager on Debian. Personally I forget how to do it after each OS reinstall, so here’s a quick guide:

Add Japanese locale (ja_JP.UTF-8 UTF-8):

sudo dpkg-reconfigure locales

Install ibus and ibus-anthy:

sudo apt update
sudo apt install ibus ibus-anthy -y

Add environment variables and ibus daemon to Openbox startup:

cat >> .config/openbox/autostart.sh
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -d -x

Add Japanese with anthy to the ibus settings (“input-method” -> “add”):

ibus-setup

Restart Openbox (log out and back in again)

Switch between input methods using the keyboard shortcut (super/win + spacebar):