Page 1 of 8 12345678 LastLast
Results 1 to 10 of 76

Thread: Fusion Brain program for Linux

  1. #1
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127

    Fusion Brain program for Linux

    Here is a library I have written to allow Fusion Brain V4 access in Linux. I have not added support for previous versions, however I will soon. This library depends on libusb-0.1 which can be installed through most distros' package management utility. (yum install libusb-devel on fedora, or apt-get install libusb-dev on debian). The ./FB program included in this package was compiled on ubuntu, so it may or may not work on other distros of linux. The source code is also included so people who cannot run the program can attempt to compile it themselves

    You will need libqt4-dev (on ubuntu) to compile this program, and then it is just a matter of "qmake && make" to compile it.

    Edit 2/28/2009: Update attached, gui program by Qt. You will need libqt4-dev to compile it, and then just run 'qmake && make' to compile. I have attached an executable, but I don't know how well that will work. I have removed the command line app, that didn't seem to get any interest.
    Attached Files Attached Files

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    FB_Coolness++;
    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
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    So where is this program?
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  4. #4
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    Uh, it WAS linked..... wait a few


    Edit: Main post has the link now. 'bout time someone mentioned I forgot something!

  5. #5
    Newbie
    Join Date
    Mar 2008
    Posts
    4
    Hey malcom its good too see you have already made progress on this, ill download it soon and test it out.

    -kdog

  6. #6
    Newbie
    Join Date
    Aug 2008
    Posts
    4
    Quote Originally Posted by malcom2073 View Post
    Here is a library I have written to allow Fusion Brain V4 access in Linux. I have not added support for previous versions, however I will soon. This library depends on libusb which can be installed through most distros' package management utility. (yum install libusb-devel on fedora, or apt-get install libusb-dev on debian). The ./main program included in this package was compiled in ubuntu, so it may or may not work on other distros of linux. The source code is also included so people who cannot run the program can attempt to compile it themselves

    Command line for compiling on ubuntu:
    g++ main.cpp fblib.cpp -o main `pkg-config libusb --libs --cflags`


    If you run the program from the command line with no arguments, it will print out a list of examples for how to use the program. Currently only the ability to turn digital outputs on and off, and read analog input is supported. I am working on supporting more, such as timers and pwm. If anyone who has a fusion brain and knows how to run linux, can you please test this out? I am working on a GUI interface that can either be picked apart, or embedded into Linux frontends. Nghost will soon have plugin support for the Fusion Brain as well via this library.

    Edit: I never even noticed the error message saying it didn't upload. Why didn't someone mention something! arg!

    http://www.mp3car.com/vbulletin/atta...ains-fblib.tar
    Is it possible for you to write a comedi driver for this device? http://www.comedi.org/
    This hardware looks like it would be perfect for some small robotics projects. http://www.orocos.org/

  7. #7
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    Quote Originally Posted by nsaspook View Post
    Is it possible for you to write a comedi driver for this device? http://www.comedi.org/
    This hardware looks like it would be perfect for some small robotics projects. http://www.orocos.org/
    I'm sure its quite possible to adapt it to that, but that's not really useful for most carpc applications which is what this was intended for. You can feel free to use the code and adapt it to comedi (under GPL of course)


    I've edited the original post due to the fact that I rewrote the library to use libusb0.1 rather than libusb1.0. Most distros have a 0.1 binary package, making it much easier for people to compile

  8. #8
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    haha I work with comedi and orocos on a daily basis

    would be sweet to set this up!

  9. #9
    Newbie
    Join Date
    Aug 2008
    Posts
    4
    Quote Originally Posted by malcom2073 View Post
    I'm sure its quite possible to adapt it to that, but that's not really useful for most carpc applications which is what this was intended for. You can feel free to use the code and adapt it to comedi (under GPL of course)


    I've edited the original post due to the fact that I rewrote the library to use libusb0.1 rather than libusb1.0. Most distros have a 0.1 binary package, making it much easier for people to compile
    I could do it using your code as a example. It looks like the register level bits are defined clearly. I've coded a pcmcia card in the comedi driver lib already and this device is pretty simple. I guess I'll have to buy a few cards for work as product examples and use one to test code with.

    PS. I work for Microchip at the fab in Oregon. We make a lot of PIC18F wafers.

    insert:
    The "I work for a big public company" disclaimer:
    The views expressed on these pages are mine alone and not those of my employer. I am not now, nor have I ever been employed to speak for anyone.

  10. #10
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    Quote Originally Posted by nsaspook View Post
    I could do it using your code as a example. It looks like the register level bits are defined clearly. I've coded a pcmcia card in the comedi driver lib already and this device is pretty simple. I guess I'll have to buy a few cards for work as product examples and use one to test code with.

    PS. I work for Microchip at the fab in Oregon. We make a lot of PIC18F wafers.

    insert:


    We could certainly set you up. Email us at [email protected]

Page 1 of 8 12345678 LastLast

Similar Threads

  1. *NEW* USB Input/Output Board -- Fusion Brain
    By 2k1Toaster in forum Fusion Brain
    Replies: 1123
    Last Post: 02-22-2010, 02:33 AM
  2. Replies: 17
    Last Post: 01-16-2009, 09:48 AM
  3. Replies: 3
    Last Post: 09-23-2008, 09:00 PM
  4. How to add a Fusion Brain instance to your configuration file
    By 2k1Toaster in forum FB Documentation and Tutorials
    Replies: 0
    Last Post: 06-07-2008, 08:42 AM
  5. Noob has some biginner questions about the Fusion Brain
    By phreaknes in forum Fusion Brain
    Replies: 14
    Last Post: 04-29-2008, 02:57 AM

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
  •