How to use an Xbox1 controller on your PC

 

I wanted to be able to use my old Xbox1 controller to play racing games on my pc.

I found here http://fury-tech.com/en/Guides/Xbox-Controller-Pc-Conversion-Mod/

Some basic instructions but i did not want to cut up my controller cable but I had an old bricked Xbox in the cupboard that i could pull the ports out of and cut them instead.

 

Xbox socket out of the bricked Xbox

Cut the end of the USB cable

 

Usb cable with the unneeded end cut off

Line up the colours (the extra yellow from the Xbox socket is not required

 

USB cable and the Xbox socket ready for solder

Solder and heatshrink

 

Post solder and heatshrink

Final product

 

Final product

Result of “lsusb” command on Ubuntu

 

Command line showing success under Ubuntu 10.4

I’m still trying to sort out the driver situation for windows 7 64bit and windows vista 32bit.

I will update this post when i have more info but just two links for now…

 

http://kmdriver.com/

and

http://www.redcl0ud.com/xbcd.html#download

 

 

 

 

 

 

 

 

A Great SVN GUI for Ubuntu

I have been fighting with a mix of CLI and GUI tools for linux for ages now. After having a great experience with TortosieSVN for Windows to move to linux and not find anything that suits me was quite a surprise. After google led me to http://www.doknowevil.net/2009/04/28/nautilussvn-finally-an-svn-gui-for-linux-that-doesnt-totally-suck/ i started to use http://rabbitvcs.org/ using the PPA for ubuntu it looks and works great.

If you want a context menu full featured SVN client built into Nautilus and a few other apps check it out

Check out the screenshots at http://wiki.rabbitvcs.org/wiki/about/screenshots

A few atmega links so i can find them again

from http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=66780&start=0

stu_san – Jul 23, 2008 – 05:51 PM
Post subject: RE: Sample Codes for ATmega128/1


Okay, you asked for it… Laughing My Complete List O’ Newbie Links!

First of all, learn how to ask questions the smart way. Visit this site (There are translations into most languages, so not being able to read English is not an excuse.)

Beginner sites/topics:

AVR C tutorial

Embedded Electronics – Beginning with everything

A From-Scratch AVR Tutorial

Book: Arnie Aardvark’s AVR Aper?u

Book and Dev Kits: Smiley Micros – Smiley frequently posts on this forum!

Arduino development board with a large community support

ZBasic microcontrollers, Basic programmed, AVRs inside

Learning C:

Programming Tutorial: C Made Easy

How C Programming Works

And don’t forget books!

The C Programming Language is almost a necessity.

Absolute Beginners Guide To C

Writing Solid Code I personally recommend this. Lots of good tips.

Again, check out Smiley’s book.

AVRFreaks Tutorials:

The AVR Tutorials forum of avrfreaks.net contains a lot of stuff for you:

[TUT] [SOFT] WinAVR Beginner’s Quick Start Guide for ATMEGA128

[TUT] [SOFT] Setting Up AVRStudio to use GCC

[TUT] [HARD] AVR Programming Methods (Loading Code On Your AVR)

[TUT] [C] Bit manipulation (AKA “Programming 101 For Embedded Code”)

[TUT] [C] Modularizing C Code: Managing large projects

[TUT] [C++] AVR C++ Micro How-To

Interrupt Handler Syntax, By Compiler

[TUT] [SOFT] Using the USART – Serial communications

[TUT] [SOFT] Using the USART – Interrupt driven serial comms

[TUT] [C] Newbie’s Guide to AVR Timers

[TUT] [C] Creating an RTC using an internal counter/timer

[TUT] [C] Using the EEPROM memory in AVR-GCC

[TUT] [C] GCC and the PROGMEM Attribute

[TUT] [C] Newbie’s Guide to the AVR ADC

Good stuff from the AVR-Libc Manual:

AVR-libc Manual: Index

AVR-libc Manual: Frequently Asked Questions

AVR-libc Manual: Memory, Malloc, and External SRAM

AVR-libc Manual: Delay Routines

AVR-libc Manual: Interrupts

AVR-libc Manual: How to Build a Library

AVR-libc Manual: Mixing C and Assembly

Other good topics:

BASCOM-AVR – Basic for AVR processors

KAVRCalc – Calculator of AVR-specific stuff

Introduction to the “Volatile” Keyword

GCC Optimization flags – what they mean

[TUT] [C] Creating an RTC using an internal counter/timer

[DIS] [ASM] Dirty Math Tricks: Adventures in Division by Ten

Mechanical Switch Debouncing

Care and Feeding Of Watchdog Timers

Atmel App Notes – all sorts of good topics here!

Porting code from IAR to Avr-GCC

These tutorials may not answer all your questions, but they will allow you to get further faster. You’ll be able to ask better questions!

A list of RTOS links for AVR processors:

First off, check out the RTOS list in the Tuorials section: [TUT][SOFT] RTOS for AVR

All of the following are in the above tutorial

FreeRTOS: A Free RTOS for microcontrollers

AvrX: Real-Time Kernel for AVR processors

YAVRTOS: Yet Another Atmel AVR Real-Time Operating System

AVRAsmOS: A tiny OS for small AVRs

pc/OS RTOS Kernel (for larger AVR processors >= mega128)

uSmartX: Non-Preemptive Priority-based Multitask RTOS

Opex – good for smaller RAM, marked “beta”

uC/OS – Extensively tested, certified for avionics, but *not* cheap

Advanced Topics:

Linker Scripts

AVR Eclipse on Ubuntu 8.04

[MAN][HARD][SOFT] Hardware Random Number Generation

Charlieplexing: DIY, How-To

Charlieplexing: Reduced Pin-Count LED Display Multiplexing

How to use MMC/SDC (Attaching SD cards through the SPI)

FatFS File System Module for AVR

A Page O’ AVR Links

A nearly up to date photo summary of pinball table

Basic table layout mostly finished now that the aluminum rails are installed.

Pinball 023.

Pinball 024

Pinball 025

Pinball 026

Early flipper prototype.

Pinball 028

Flipper assembly.

The solenoid closes and pulls on the short piece of aluminum rotating the bolt in the top left that is attached to the flipper on the topside of the table

Pinball 031

The shooter assembly.

Pinball 035

Pinball 036

The complete flipper.

Pinball 037

The completed front of the table.

Pinball 039

Two sets of three targets.

The ball strikes the front circle and pushes the backplate against the ‘L’ shaped part screwed to the floor. Electrodes are connected to the two components and this will be used to send score signals to the micro controller.

PinBall 006

PinBall 007

PinBall 008

My first bumper finished.

I will need to replace the rubber. As the ball strikes the rubber the rubber presses on one of the two switches which trigger the hammer (in the middle) which hammers back on the rubber.

PinBall 009

PinBall 010

PinBall 011

The underside of the hammer

PinBall 017

The drink holder to be fixed to the side of the table

PinBall 012

PinBall 013

The front underside of the table showing both flippers finished and the ‘safety light’

PinBall 014

A dell (its not quite standard) small form ATX power supply and power plug

PinBall 018

PinBall 019

Underside shots of both flippers, one hammer and the powersupply

PinBall 020

PinBall 022

This is nearly the table up to date, the second hammer has been finshed and i have started to design the round bumper things to go in the back. More at the end of the semmester.

Pinball Costings

I have added up all the costs for the pinball table so far.
The PDF came out a bit messed up but check out the the spreadsheets for better view.

090813 Pinball Costs.xls

090813 Pinball Costs.ods

090813 Pinball Costs.pdf
I’ve taken a heap of photos that i haven’t put up yet but maybe tomorrow.
The project will have to be put on hold now for the rest of the semester but hopefully ill get back into it in the holidays.

Plunger, Front curves and flipper bumpers

Today i installed the plungers on both sides
P7122431

Added some nice curves to the front cause i wanted the ply 3 layers deep at the plungers to keep them straight. They will probably need to have some kind of sleeve though to keep in square and reduce the wear on the ply but for now its not too bad.
P7122435
I have also made some changes to the bumper that leads onto the flipper. It was just temporary before so i adjusted it to point in the right direction.
P7122433