visionhack

Turn math into pixels

Installation: USAP-Programmer with ubuntu

| 2 Kommentare

Two weeks ago, I purchased a ISP-Programmer and ATmega328p from Guloshop. The programmer is based on the USBasp designed by Fischl. Since then, I had some trouble getting the programmer recognized with Ubuntu 12.04. Here’s a quick tutorial how to fix this, so you can get your hands dirty.

Install AVRdude and libftdi1 using

sudo apt-get install avrdude

So after this, plug in the USB-Programmer and promt dmesg

$ dmesg
[...]
[15014.460382] usb 5-1: new low-speed USB device number 4 using uhci_hcd

As you can see, a new usb-device is recognized. Search for the device/folder called USBasp in your device folder

$ ls /dev

If the folder is not in there, try to list all usb-devices itself unsing lsusb

$ lsusb
Bus 006 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 007 Device 002: ID 044e:3017 Alps Electric Co., Ltd BCM2046 Bluetooth Device
Bus 005 Device 004: ID 16c0:05dc VOTI shared ID for use with libusb

There you can see a device with the ID 16c0:05dc. This is the USBasp-programmer. 16c005dc is the VendorID and 05dc is the ProductID. We need this information for our next step.

To get the programmer recognized we have to define a new rule for a service called udev

sudo gedit /etc/udev/rules.d/60-objdev.rules

Copy the following lines into the file and save it

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0666", SYMLINK+="USBasp"

After this, restart udev

sudo /etc/init.d/udev restart

Plugin your USBasp-Programmer, list your /dev/ folder and you will see a simlink called USBasp.

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Autor: pschmidt

Student of computations visualistics. Turns math into pixels. Posts may flavored by raytracing and robotics. Backend engineer at TOMRA. Hiking if afk.

2 Kommentare

  1. Thank you. Everything else that I tried has failed.

  2. Working…. Thanks….

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.