Code Monkey home page Code Monkey logo

bitcraze-raspberry-pi's Introduction

Bitcraze pre-installed Raspian SD-card image

This project is for Bitcraze pre-installed Raspian SD-card image but doesn't contain any code or image, it's used for tracking issues and improvements.

The SD-card image is based on the Wheezy version of Raspian for the Raspberry Pi. Nothing it removed from the image so you can use it for anything that you could use the origional image for. We have just added our stuff on top of it.

There's a list of what's included:

  • UDEV rules for access to the Crazyradio and NRF bootloader

  • crazyflie-clients-python and crazyradio-firmware pre-cloned

  • pyusb

  • UDEV rules to automatically launch the cfheadless client when Crazyradio is plugged in

  • Driver for the Xbox 360 wireless controller and automatic start of the utilities

  • Git

For more info see our wiki and hacks page.

The image is generated from the raspberrypi.org release of Rasbian and by running bitctaze_raspberrypi.sh as pi user.

Downloading

The Bitcraze VM can either be downloaded via torrent or via direct download:

How do I use it?

First of all you need to set up what controller and link settings you are using. This is done by editing the two files in the folder /home/pi named controller.conf and link.conf. They should only contain one row each.

To fly first insert the USB controller, then power on the Crazyflie and lastly insert the Crazyradio. This will start the cfheadless client and connect to the Crazyflie. In a few seconds you sould be ready to fly.

To quick either power off the Crazyflie or pull-out the Crazyradio.

In order to restart flying you have to pull-out the Crazyradio dongle and insert it again.

Flashing the Crazyradio

The Crazyradio firmware can be updated using the Raspberry Pi and doing the following steps:

  • Connect the Raspberry Pi to your local network
  • Power it on and SSH to it (user=raspberry and password=pi)
  • Make sure that no controller is connected
  • Insert the Crazyradio into a USB port on the Raspberry Pi
  • Go into the crazyradio-firmware directory and download a firmware update
cd projects/crazyradio-firmware
wget https://bitbucket.org/bitcraze/crazyradio-firmware/downloads/cradio-0.52.bin
  • Launch the Crazyradio bootloader and flash the firmware
python usbtools/launchBootloader.py
python usbtools/nrfbootload.py flash cradio-0.52.bin
  • Make sure that the flashing is successful, otherwise retry again!
  • Unplug the Crazyradio and re-insert it again. It's now running the new firmware.

Flashing the Crazyflie 1

The Crazyflie firmware can be updated using the Raspberry Pi and doing the following steps:

  • Connect the Raspberry Pi to your local network
  • Power it on and SSH to it (user=pi and password=raspberry)
  • Make sure that no controller is connected
  • Insert the Crazyradio into a USB port on the Raspberry Pi
  • Go into the crazyflie-clients-python directory and download a firmware update
cd projects/crazyflie-clients-python
wget https://bitbucket.org/bitcraze/crazyflie-firmware/downloads/Crazyflie_2014.01.0.bin
  • Power off the Crazyflie and launch the bootloader
bin/cfloader flash Crazyflie_2014.01.0.bin
  • Power on the Crazyflie within 10s and wait while the firmware is flashing
  • The Crazyflie will automatically resetart and run the new firmware once the flashing is done

Troubleshooting

Try to pull-out and insert the Crazyradio. Then wait up to 10 seconds before you try to control the Crazyflie.

If you see the LED on the Crazyradio blinking green, then it's connected. If it's blinking red it means that it cannot connect to the Crazyflie.

Check logfile /tmp/cfheadless.log for messages

Logging in

There's a new user created that can be used to log in:

User: pi
Pass: raspberry

bitcraze-raspberry-pi's People

Contributors

ataffanel avatar evoggy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.