Uwes Blog

Projects, thoughts and more

Rust driver for AS5048A

Rust driver for Grid-EYE

CAN bus on Raspberry Pi with Stretch

I needed to install my CAN Board on my Raspberry after some time not using it. Because most of the copy/paste stuff is for the older distribution(s), here how to install with Stretch (in my case 2017-11-29-raspbian-stretch.img).

  1. Add to /boot/config.txt
  1. Add file /etc/network/interfaces.d/can0
auto can0
iface can0 inet manual
    pre-up /sbin/ip link set $IFACE type can bitrate 1000000 triple-sampling on
    up /sbin/ifconfig $IFACE up
    down /sbin/ifconfig $IFACE down

Reboot and you should see the can interface with ifconfig. Even faster you could use my rpi-can role for Ansible.

mbed Online Compiler and LPC800

I have build some of the small LPC800 Breakout Boards.

To program them with the online mbed compiler, the resulting bin files have to be changed with the following command:

arm-none-eabi-objcopy -I binary -O ihex mbed_blink_LPC812.bin mbed_blink_LPC812.hex

The arm compiler toolchain should be installed in your path.

Ansible Swift RPi install

A friend of mine wanted to install the (very beta) Swift Compiler for the Raspberry Pi in his classroom. He is going to teach some Swift Coding on the RPi. Because we had to install on multiple machines we decided to go with Ansible.

After some cleanup in my Ansible Repo you will find the latest and greatest Version on github too.