Wednesday 5 August 2015

Bick Copter 1.0 - Failure to launch

So as mentioned in my previous post, in this post I will cover my first attempt to build the Raspberry Pi based Quad Copter. So in my first attempt I managed to burn my Pi on day 1. You should never connect power over pins and USB at the same time. I learned it the hard way. So after my second Pi arrived I've started by turning LEDs on and off (this his where everyone who has no knowledge in electronics should start). So I was feeling pretty good by then and I tackled the motor controller.



Using code samples form Adafruit I've managed to get my PWM/Servo Driver up and running pretty quickly and soon I was spinning my motors up and down. 
Then came accelerometer and the gyro. I've manager to get the accelerometer working but gyro data didn't make sense. I've tried reading the data sheet and using my own code to read the sensor data. I've also tried porting Adruino code to Raspberry, but somehow I couldn't get the gyro working. Now thinking back, I think it might have been something as simple as missing rad/s to deg/s conversion. 
Nonetheless I tried to get my quad flying without sensors or flight controller of any kind. Needless to say, it's a terrible idea. Shredded my first set of rotors and parked the project indefinitely.

In the next post I'll cover my current quadcopter status and perhaps will post a video or two.

tl;dr
Got the LEDs nice and blinking. Motors spinning. Gyro no worky. Crashed. Project - on hold

Happy Hacking!

Tuesday 4 August 2015

BrickCopter 2.0

So I've had this idea a while ago to build a Quad Copter using Raspberry Pi. I bough all the hardware and started hacking on it. Having next to no knowledge in electronics this was quite a challenge. It was fun at first, but after facing several problems it became more than I could chew. I lost the interest in the project and retired it to basement. Now, about two years after initial effort, armed with new knowledge and fresh energy, I decided to dust off my blog, pick up the project and make the damn thing fly.
This will most likely result in a series of blog posts on fighting different problems I encounter. The whole point behind the blogs will be again, to help someone who finds himself/herself (let's face it the IT industry has changed a lot in last 5 years) having same or similar issues. There seems to be fairly little info on building custom flight controller, most people use AdruPilot or something else readily available.
So firstly I'll list of the hardware I acquired for the project (back in the day):
  • Raspberry Pi Model B Started kit from Adafruit
  • 16 Channel PWM/Servo driver from Adafruit
  • 4x Turnigy Plush 25A Speed Controller
  • 4x NTM Prop Drive Series 28-26A 1200kv
  • AltIMU-10 Gyro, Accelerometer, Compass, and Altimeter (L3GD20, LSM303DLHC, and LPS331AP Carrier) from Pololu (discontinued)
  • Q450 Glass Fiber Quadcopter Frame 450mm
  • Turnigy nano-tech A-SPEC 2200mah 4S 65~130C Lipo Pack
  • TURNIGY MEGA 400W V2 Lithium Polymer Battery Charger 
  • 30A eFuel Switching Power Supply
  • USB wifi adapter
  • Mini soldering station
  • Digital multimeter
So as you see it's a fair bit of quite expensive hardware, thats one of the reasons why I want to finish this project.

I'll be posting bits and pieces of the code and will open source the project when it's finished. Or then I give up, which ever comes first. Currently all the code is in my private GitHub repo. The code is a  mess so I don't feel like sharing it publicly, but could to so upon request.

In the next post I'll cover how far I came in my first effort and the status of the current.

tl;dr
Tried to build Quad Copter using Raspberry Pi. Failed. New effort. Will make the world a better place.

Happy Hacking!