Results 1 to 8 of 8

Thread: Fusion Brain and iBus

  1. #1
    Variable Bitrate nemo1's Avatar
    Join Date
    Jun 2006
    Posts
    314

    Fusion Brain and iBus

    Is it possible for Fusion Brain and iBus to communicate? I am planning to use Fusion Brain, Fusion Brain photo sensor and iBus to turn on the headlights when it becomes dark. From what I understand, Fusion Brain has capability to turn on headlights but would prefer iBus to make the wiring simpler.

    Thanks

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by nemo1 View Post
    Is it possible for Fusion Brain and iBus to communicate? I am planning to use Fusion Brain, Fusion Brain photo sensor and iBus to turn on the headlights when it becomes dark. From what I understand, Fusion Brain has capability to turn on headlights but would prefer iBus to make the wiring simpler.

    Thanks
    Maybe possible if you write custom firmware, but as it stands now, iBus is not controllable from the FB.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    Quote Originally Posted by 2k1Toaster View Post
    Maybe possible if you write custom firmware...
    How practical is this? Seriously, I've been toying with the idea of doing something similar, just to offload some processing power.

    I'm currently running steering commands at 20Hz, but in theory it would allow me to increase processing speed to like 50Hz, without needing to send stuff down the USB bus that often, and without any processing delays when the computer gets busy. I'm only getting GPS corrections at 5 or 10Hz, so in theory, I wouldn't need to have communication between the FB and computer any faster than that.

    I've looked at the arduino, but I much prefer the FBs outputs being full voltage switching that can power a relay. No need to add extra chips on to do stuff like that.

    Is iBus something like CanBus? If so, maybe a CanBus to USB converter would work, but then you'd need to find a way to issue commands right to the bus, and of course you'd have to figure out what the commands are to issue.

  4. #4
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    Quote Originally Posted by mx270a View Post
    How practical is this? Seriously, I've been toying with the idea of doing something similar, just to offload some processing power.

    I'm currently running steering commands at 20Hz, but in theory it would allow me to increase processing speed to like 50Hz, without needing to send stuff down the USB bus that often, and without any processing delays when the computer gets busy. I'm only getting GPS corrections at 5 or 10Hz, so in theory, I wouldn't need to have communication between the FB and computer any faster than that.

    I've looked at the arduino, but I much prefer the FBs outputs being full voltage switching that can power a relay. No need to add extra chips on to do stuff like that.

    Is iBus something like CanBus? If so, maybe a CanBus to USB converter would work, but then you'd need to find a way to issue commands right to the bus, and of course you'd have to figure out what the commands are to issue.

    The V4s let you write your own firmware and load it over USB.

    I don't think we'll let our firmware go open source, but email us and maybe we can work something out.

    Also, our firmware's good up to 250Hz....

  5. #5
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    Quote Originally Posted by greenman100 View Post
    I don't think we'll let our firmware go open source, but email us and maybe we can work something out.

    Also, our firmware's good up to 250Hz....
    That's certainly respectable. I'll look into it eventually.

    The FB and computer talking at 250Hz is awesome, but I've already got the computer doing a crap ton of stuff every time it gets a new GPS location in. What I'm trying to get away from is any delay on the steering loop, even if only for 50ms. I have a yaw sensor that needs consistent readings to get a stable vehicle heading. I'm already running the FB control loop in another thread to be non-blocking, but with a single core CPU, there is always going to be some level of blocking. In a perfect world, I'd let the PIC deal with all the simple stuff like running the yaw rate through a kalman filter and issuing a steering command accordingly, then just send major steering updates as I get them from GPS. Doing what I'm doing now, I can visually see the IO delay to the FB when I do more strenuous processing. Fortunately, it's subtle enough that it doesn't bother anything.

    Seems I've hijacked the thread.

  6. #6
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    Interesting. I'd think a full CPU would be better suited for blasting away at mathematical stuff than a PIC, but you're welcome to try

  7. #7
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    also is 20hz or 50mS really not enough? I'd think 1 second would be more than sufficient. you're not moving very fast...

  8. #8
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    Quote Originally Posted by greenman100 View Post
    also is 20hz or 50mS really not enough? I'd think 1 second would be more than sufficient. you're not moving very fast...
    Yeah, I know it sounds odd. I think it would be easier to steer an airplane smoothly than tractor, simply because the airplane is moving faster. Any steering changes can be picked up on GPS. In a tractor, I'm moving so slowly that the GPS location can't accurately determine the heading of the machine. For that I need a yaw sensor to "feel" rotation, but the frequency needs to be relatively fast to get smooth vehicle control. It will work at slower frequencies, but, the vehicle control suffers a bit.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •