Skip to main content

Posts

Showing posts from 2017

Building Autonomous Drone with Raspberry Pi and APM 2.8

I am a total newbie to hardware and was pushing my limits to see how far I can reach on with hardware projects (which sparked my interest lately). I have set out on a very ambitions mission  to control a drone from raspberry pi .I began the research for this around 2 months ago and had brought a raspberry pi, drone body kit and apm flight controller. The key difference of this project from common drone projects is that I'm trying to avoid the use of and RC and instead use the raspberry pi to control it.  Hardware Ins tallation Setup: I am using APM 2.8 and Mission Planner. I am using RPi 3 to control the APM 2.8 via Telem port of APM I am planning to power the apm via the battery to ESC (Electronic Speed Controllers) Now, documenting my steps below: Day 1 Watch Tutorial To get started with APM flight controller, I watched this video tutorial [1] which gives a gentle introduction about APM board.  Setup APM board and Calibrate Sensors I downloaded the APM Missi

Programming Raspberry Pi by Examples

Example 1: Programmatically controlling the LED Join the Raspberry Pi Course ( link )  Implement LED connection in the course week 2 lecture ( link ) . Example 2: Using the DHT11 - Humidity and Temperature Sensor with Raspberry Pi: The example in Uugear ( link ) did not work because my DHT11 had the pins in different order the pins were marked + and - rather than S, V and G. So I connected : + symbol in DHT11 ------> 3.3V - symbol in DHT11 ------> GND out symbol in DHT11 ------>  pin GP4 Also I used this github library (easy to understand) : https://github.com/szazo/DHT11_Python Example 3: IR Controlling your TV and AC with Raspberry Pi These 2 tutorial were followed to do this example: 1. http://www.raspberry-pi-geek.com/Archive/2015/10/Raspberry-Pi-IR-remote (main) 2. http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/ (helped to resolve issues) 3. https://blog.bschwind.com/2016/05/29/sending-infrared-commands