Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Fly-by-wire RVF

Reply to topic
Bike Chat Forums Index -> Show & Tell Goto page 1, 2, 3  Next
View previous topic : View next topic  
Author Message

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 19:28 - 20 Feb 2013    Post subject: Fly-by-wire RVF Reply with quote

Hello BCF'ers

My turn.

Apologies to Nowhere and Blade for jumping on the DIY dash bandwagon, although this is a long time in the making.

So I spent most of my time programming computers and messing with embedded control systems. My cousin designs flight simulators, my dad teaches people to fly Airbus A340s, I think you can see this going. Hopefully over the next couple of months (or years) I will be adding some aeronautical-grade engineering to one of my bikes.

So I've taken my stock RVF and done away with most of the front end. Replaced with 8" touchscreen LCD which will hopefully do some funky stuff when it's all done and I've built the software.

I too will be using an arduino for some parts, to eventually drive the shift light, gear indicator and provide sensors so the system will know what the bike is doing.

So first off all, here's a picture of the screen. I'm using an eBox embedded PC running Windows XP Embedded, it's a nifty little box that only draws 1A @ 5V and comes with 512Mb of RAM and storage is a shake-proof SDHC card. Boot time is a little over 10 seconds, which isn't at all bad. I did consider using a RasPi but I've been writing software for PCs since I was 13 and frankly I can't code as fast on a linux box, and I know the Windows API backwards.

https://www.bikechatforums.com/download.php?id=87948

Please excuse the tattyness of the bike... once the project is completed I'll strip it down and and give it a good clean and attach shiny bits to it.

More to follow...
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

gfrancisdev
Nova Slayer



Joined: 18 Oct 2012
Karma :

PostPosted: 19:36 - 20 Feb 2013    Post subject: Reply with quote

...windows...wow...do you want to kill yourself? Razz

i'd say it's worth learning how to code without the windows APIs, or at least use something like boost and the stl so it's relatively portable should you decide to switch the hardware someday
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 19:45 - 20 Feb 2013    Post subject: Reply with quote

lol Thumbs Up

I have thought about that, or even coding it in Java or something portable. The honest truth is I'm impatient when it comes to programming, especially projects that use a GUI. I have a Pi and can write software with GNU/C, but that's strictly dos-based as I haven't actually attempted to write anything graphical with Linux.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

gfrancisdev
Nova Slayer



Joined: 18 Oct 2012
Karma :

PostPosted: 19:52 - 20 Feb 2013    Post subject: Reply with quote

Timmeh wrote:
strictly dos-based

ah-hem 'terminal based' Razz

graphics are easy, you just use something like SDL, or if you want to be fancy the full openGL route, for either the code is the same across systems.

for big clicky UI buttons etc, there's plenty of toolkits that are nice to use

only real problem with using winAPI stuff is the performance, i'm guessing the board doesn't have much power, and you'll be wanting to query sensors nice and fast i'm guessing...oh windows will also crash and make the bike explode Very Happy
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 20:10 - 20 Feb 2013    Post subject: Reply with quote

It's got a 1Ghz processor so is fast enough, and comes with an onboard GPU that will support DirectX and D3D, but sadly not OpenGL.

WinAPI is native to the OS, and the calls are all built with assembler, so will be faster than using kits or interpreted code.

Windows is just as stable as anything else, Embedded especially so, the thing that makes PCs less stable than their mac or linux counterparts is buggy drivers and the other useless rubbish oems weigh their systems down with. Once all that is removed, XP will run just as well as OSX or Linux.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

colin1
Captain Safety



Joined: 17 Feb 2005
Karma :

PostPosted: 20:35 - 20 Feb 2013    Post subject: Reply with quote

fly by wire ? I hope you are joking.

If you aren't and you literally mean giving control to a computer and hoping it does what its supposed to, I hope you conduct your experiments away from anyone else.

1 bug in the program, 1 lose wire and there could be problems.

Fortunately, I doubt you could replace the hand operated controls with actuators to pull control cables, so steering, throttle, brakes, clutch, gears etc will still be under your direct control.

If you do manage to get the actuators working and take it on the road, someone should really inform the police before someone else gets hurt.

There is no chance you would be able to develop the control software to control the actuators successfully.
____________________
colin1 is officially faster than god
 Back to top
View user's profile Send private message You must be logged in to rate posts

gfrancisdev
Nova Slayer



Joined: 18 Oct 2012
Karma :

PostPosted: 20:55 - 20 Feb 2013    Post subject: Reply with quote

colin1 wrote:

There is no chance you would be able to develop the control software to control the actuators successfully.


direct mirror of hand controls to servos would be easy enough, but still dangerous XD don't think that's the idea though
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

colin1
Captain Safety



Joined: 17 Feb 2005
Karma :

PostPosted: 20:58 - 20 Feb 2013    Post subject: Reply with quote

gfrancisdev wrote:
colin1 wrote:

There is no chance you would be able to develop the control software to control the actuators successfully.


direct mirror of hand controls to servos would be easy enough, but still dangerous XD don't think that's the idea though


easy in theory but not in practise

so what idea do you think he has ?
____________________
colin1 is officially faster than god
 Back to top
View user's profile Send private message You must be logged in to rate posts

gfrancisdev
Nova Slayer



Joined: 18 Oct 2012
Karma :

PostPosted: 21:01 - 20 Feb 2013    Post subject: Reply with quote

colin1 wrote:

easy in theory but not in practise

so what idea do you think he has ?

i reckon i could rig it up, but i'd have to gut a robot

looks like a funky dash to me, but i dunno, will be interesting to see what this ends up with
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

LordShaftesbu...
World Chat Champion



Joined: 03 Sep 2008
Karma :

PostPosted: 21:09 - 20 Feb 2013    Post subject: Reply with quote

gfrancisdev wrote:
...windows...wow...do you want to kill yourself? Razz

Brings a whole new meaning to the Blue Screen Of Death.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 21:12 - 20 Feb 2013    Post subject: Reply with quote

Building a bike that can ride itself would be a huge task, although feasible it would require a monumental amount of R&D and a ton of time and money, which I haven't got; and I admit I certainly wouldn't want to be sat on it for the trial run.

Francis is correct; my plan is to give the computer semi-automatic control of just the throttle to begin with, but by using steppers rather than servos, as their gearboxes aren't usually suited to being turned by hand. There will be a provision for dual-channel monitoring which will give the system a decent level of redundancy and error-checking.

I won't be cutting any linkages (yet anyway)
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

LordShaftesbu...
World Chat Champion



Joined: 03 Sep 2008
Karma :

PostPosted: 21:14 - 20 Feb 2013    Post subject: Reply with quote

That documentary about the self-driving vehicle race DARPA sponsored a few years ago had a self-driving bike in it. It almost wasn't complete shit too.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 21:22 - 20 Feb 2013    Post subject: Reply with quote

I would love to have a go at that, although I'd most likely start on a ped as there's no gears involved.

I just haven't got the money.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

gfrancisdev
Nova Slayer



Joined: 18 Oct 2012
Karma :

PostPosted: 21:25 - 20 Feb 2013    Post subject: Reply with quote

Timmeh wrote:
by using steppers rather than servos, as their gearboxes aren't usually suited to being turned by hand


I'd highly recommend the Dynamixel 'smart' servos, really nice to work with from a coding standpoint (usb adapters to the dynamixel bus are pretty cheap).

setting one up to take input is possible, but something like a rotary encoder would probably be more suited to throttle control

they're also perfect for 12v systems, and have a stupid amount of torque aswell. Though if you overload them they shutdown to stop them burning out, takes quite a bit to do that though (took my hexapod lifting 5KG of batteries on 3 legs to overload one of the basic dynamixels)
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

CaNsA
Super Spammer



Joined: 02 Jan 2008
Karma :

PostPosted: 21:38 - 20 Feb 2013    Post subject: Reply with quote

Looks cool as fuck.
Deffo follow this thread Very Happy

inb4
Cause of RTA?
https://i.imgur.com/Mud8xzC.png
 Back to top
View user's profile Send private message You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 21:42 - 20 Feb 2013    Post subject: Reply with quote

Hmmmm... TTL eh? Sounds interesting.

I like steppers because they offer 1:1 movement and they offer absolutely no resistance when they are off.

I will be using opto encoders coupled with the stepper's position relative to zero, which is a mechanical stop.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

gfrancisdev
Nova Slayer



Joined: 18 Oct 2012
Karma :

PostPosted: 21:57 - 20 Feb 2013    Post subject: Reply with quote

well steppers should work, assuming they have the torque, all depends what's needed, could program them to open the throttle stupidly fast at the touch of a button i bet
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 22:13 - 20 Feb 2013    Post subject: Reply with quote

Yup, I've used ones that have 90 degrees/sec turn rate and can apply obscene amounts of torque.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

colin1
Captain Safety



Joined: 17 Feb 2005
Karma :

PostPosted: 22:47 - 20 Feb 2013    Post subject: Reply with quote

This thread reminds me of the one with the guy jumping onto the cactus. You wonder why he thought it would be a good idea, why he thought it wouldn't hurt, and why did he need attention so badly.
____________________
colin1 is officially faster than god
 Back to top
View user's profile Send private message You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 22:55 - 20 Feb 2013    Post subject: Reply with quote

hmm.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

Spudly
World Chat Champion



Joined: 04 Apr 2012
Karma :

PostPosted: 23:45 - 20 Feb 2013    Post subject: Reply with quote

I think it sounds brilliant Timmeh. I'm dead keen to see what you come up with.
____________________
The Old Apprentice
 Back to top
View user's profile Send private message You must be logged in to rate posts

Xenocide
Scooby Slapper



Joined: 17 Aug 2008
Karma :

PostPosted: 13:10 - 21 Feb 2013    Post subject: Reply with quote

Timmeh wrote:
I like steppers because they offer 1:1 movement and they offer absolutely no resistance when they are off.


Eh? Yes they do. Quite hard to turn when they're off. (proper ones anyway)
____________________
KTM LC4 400 | Honda VTR1000
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

Timmeh
World Chat Champion



Joined: 01 Nov 2006
Karma :

PostPosted: 13:29 - 21 Feb 2013    Post subject: Reply with quote

Xenocide wrote:
Eh? Yes they do. Quite hard to turn when they're off. (proper ones anyway)


yeah, I suppose, but far less than a servo or anything else with a gearbox.

We shall see.
____________________
GSXR400 x2 | '94 RVF400 | '93 TZR125 4DL (again)
20:22:30 BLUEX5: i would love to be forced to undergo a**l plugging with different sizes
20:48:18 Temeluchus: comp you hunk of smouldering homos3x you
 Back to top
View user's profile Send private message You must be logged in to rate posts

P.
Red Rocket



Joined: 14 Feb 2008
Karma :

PostPosted: 14:41 - 21 Feb 2013    Post subject: Reply with quote

colin1 wrote:
This thread reminds me of the one with the guy jumping onto the cactus. You wonder why he thought it would be a good idea, why he thought it wouldn't hurt, and why did he need attention so badly.


Says the guy who does his washing up in the bath.

I'm interested to see what you do with this MrTim
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

virus
World Chat Champion



Joined: 16 Aug 2006
Karma :

PostPosted: 14:59 - 21 Feb 2013    Post subject: Reply with quote

Colin, just because its not a commonly done idea doesn't mean its a bad one. Turbo'd bikes are a bad idea... Nos is a bad idea, people still do it and survive.
Laughing
So long as there is a mechanical backup in place in the event of the computer crashing then it will be fine, even if its just a standalone killswitch.


Timmeh, good luck, sounds like a very interesting project.

Cheers
John
____________________
own: 81 xs1100g...
owned: 85 rat CG (sold), 91 GS500e (stolen), 84 gsx400f (scrapped), 81 z250 (siezed, siezed, scrapped), 83 cb250rs (sold), 84 gpz750r ratfighter (killed) 84gpz400 (sold), '80 cb650 ratfighter (wrote off) 95gsx6/12f ratfighter (killed) 91 xj900 (sold)
stinkwheel Well I just had my hands up a pigs fanny. Which makes your concerns pale into insignificance.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 12 years, 304 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> Show & Tell All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.10 Sec - Server Load: 0.12 - MySQL Queries: 13 - Page Size: 129.91 Kb