Coding PC

A place to discuss software and code that isn't automotive related. Free and open source preferred but not compulsory.
Post Reply
User avatar
longracing
LQFP112 - Up with the play
Posts: 140
Joined: Wed Jul 16, 2008 9:21 am
Location: NSW, Australia

Coding PC

Post by longracing »

I have been a little occupied with work projects but finally got myself a cheap pentium PC that I will load with Ubunto and hopefully I can start going over the code. ('bout time I started contributing a bit more).

At the moment one of my work projects is re-designing the robotic control box. I'm trying to use a Playstation Analog Controller as the input. :geek:
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Coding PC

Post by Fred »

Cool :-)

Tear it apart, I like criticism :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: Coding PC

Post by sry_not4sale »

Gotta love cheap linux based dev machines :D
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
longracing
LQFP112 - Up with the play
Posts: 140
Joined: Wed Jul 16, 2008 9:21 am
Location: NSW, Australia

Re: Coding PC

Post by longracing »

Well my coding PC is not doing too well at the moment. Bad hard-drive, 4Gb but most of it has failed and is almost full just with Ubuntu on there and a few FreeEMS files.

Here's a quick pic of what's been keeping me busy at work.
Image

This is the DEMO-version of a new control box using a PSX controller (12 buttons, arrow keys and 2 analog joysticks).
Have been creating a new menu from scratch, hour meter function, invert-selection on joysticks...
using the Arduino has saved some work in coding, it already has a library for EEPROM, LCD, PSX-Analog controller.

I also spotted a library for capacitive touch sensing the other day. That got me to thinking about capacitive fuel level sensing, or maybe fuel composition sensor?(petrol/ethanol). If the code could be ported to a PIC it would be good (much faster ADC).
User avatar
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: Coding PC

Post by sry_not4sale »

Excuse my ignorance - what does the box actually control?
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
longracing
LQFP112 - Up with the play
Posts: 140
Joined: Wed Jul 16, 2008 9:21 am
Location: NSW, Australia

Re: Coding PC

Post by longracing »

It is a control box for tractor/cutter robots which drive down pipes (eg. stormwater, sewer) with a camera attached to carry out inspections or repair work on the pipelines. It is cheaper & more convenient than having to dig up a whole street to repair damage as it can all be done from manhole access points.

Some of their functions are:
- forward/reverse motor,
- some have steering,
- rotate a cutting tool,
- raise/lower a cutting tool,
- tilt the camera,
- rotate the camera,
- adjust focus,
- increase/decrease internal & external lights.

The current control box has digital joysticks which make it very hard to cut round holes, has an excessive amount of internal wiring and uses transistors to control the outputs which require a big heatsink & fans.
User avatar
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: Coding PC

Post by sry_not4sale »

Wow, cool. Bet the psx controller is a big improvement then!
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
longracing
LQFP112 - Up with the play
Posts: 140
Joined: Wed Jul 16, 2008 9:21 am
Location: NSW, Australia

Re: Coding PC

Post by longracing »

The PSX controller should be a big improvement. It only has 2 power wires and 4 signal wires. The only thing I changed was the connector to a Db9.

The current control box has over 40 wires (many the same colour), more current and each digital joystick cost more than double the PSX controller. Then there's the hours spent wiring it up...
Here's a photo of the back and don't ask me about trouble shooting it, :roll:
Image
Post Reply