Uwes Blog

Projects, thoughts and more

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
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
  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.

Parallela on supercomputer.io

Parallella has started a distributed Supercomputer on supercomputer.io with their parallela chips. I decided to put my two Kickstarter Parallelas inside a cooling case and let them participate.

Redrawn Bicycle Parts in Onshape

Recently i stumbled over the Online CAD Onshape. I immediately fell in love, because it is browser based (so it can easily be used on Macs and Linux) and it is free for public models (and a small number of private models too). It is a parametric CAD tool, so it is more in the Solidworks range than in the Rhino3D area.

After some testing, i decided to redraw some existing parts, to spot differences how i develop parts with my Rhino3D package.

To summarize everything up: I love it, i will use it in the future and it gives me a perfect Reason for buying a iMac Retina and a iPad Pro.

Here screenshots from the two models which you can also access online. As a downside you have to create a (free) account first, there is no way for i.e. embedding the model in my website at the moment.