Posts

Showing posts from July, 2018

Setbacks and problems: Building an autonomous truck from scratch Part 3

Image
It’s been a while since my previous post covering the autonomous truck I have been building, but I’m far from stopping work on it! So far, I have been able to get the GPS and ultrasonic sensor working in Python, on the Pi. Both of those were not easy to get going. The magnetometer is where I now face the greatest issue. The compass I was originally intending to use was the HMC5883l, a small 3 axis magnetometer which connects over I2C. The problems first began to make themselves apparent before I had even plugged it in. The GPS unit I was using (Adafruit Ultimate GPS Featherwing) was supposed to be hooked up the Raspberry Pi via a USB to TTL adapter. However, the adapter would not show up as a recognised device in the Pi, even after I manually loaded the kernel module for the specific chipset inside the adapter into Raspbian’s kernel. So, I decided to simply connect the GPS module via I2C instead, which, after some hours of tinkering, was able to submit its location to the Pi. QMC5...