How to Upload Files to Firefly Board

  • Andy Payne

    Howdy Phillip,

    No, I practice non call back it has anything to do with the Code Generator (in your last prototype).  The code generator is unnecessary unless you want the arduino to run autonomously (and not continued to your computer).  As long equally your board is connected to the computer via a USB cablevision, then nosotros can send series data back and forth.... so we tin merely use Firefly natively through Grasshopper.

    I retrieve the main issue is uploading the code onto your board.  Cipher volition work properly if the Quad Stepper sketch isn't loaded onto your lath.  In looking at the screenshots y'all've posted, it looks like all of the Firefly sketches (including the Firefly Firmata, Quad Stepper Sketch, and Wii Sketch) are located in your libraries folder.  However, these should exist placed in the root Arduino folder (in MyDocuments/Arduino)... not inside the libraries folder.  You still need the libraries folder there, and in that folder should be the Accel Stepper library... just the Firefly sketches should exist placed in the root sketchbook binder.  I'grand non exactly certain if this is what'south causing the outcome... just when you open the Quad Stepper sketch, you shouldn't see the other tabs (AccelStepper and FireflyFirmata) like it does in the original screenshot you posted.  I call up it's trying to load these sketches as well, and causing a conflict.  Try the suggestion in a higher place and let me know if that fixes your problem.

    HTH,

    Andy

  • philipp hornung

    hello andy,

    peachy.. now information technology seems to piece of work!

    ..and the upload worked also! thanks mate! :)

    just unfortunately my setup is notwithstanding not working.. wondering why...

    have to check the polarity of the steppers... hmm..

    only thank you lot then far andy!

    will post something if i manage to get it workin..

    best

    philipp

  • philipp hornung

    andy,

    btw.. practise you got experience with the polulu stepper driver? ;)

  • Andy Payne

    No.  Unfortunately, I haven't tried that particular commuter.  But as far every bit I know, it should work with the Firefly Quad Stepper sketch.  Are you still having difficulty?  BTW, it might be best to offset an actual discussion thread (above) instead of on the general message board... that style nosotros can rail the entire conversation.

  • philipp hornung

    yes, equally far as i read thru the documentations.. information technology should work equally well.

    sorry.. you are rigth.. new thread.

  • Miguel Vidal

    Hullo! As there is a keyPressed component, is there other one for mousePressed?

    what windows functions are you using for this tools in case I would need to use them in a script?

    thanks!

  • Andy Payne

    Hullo Miguel,

    The IsKeyPressed component makes use of the built in User32.dll Microsoft library (http://en.wikipedia.org/wiki/Microsoft_Windows_library_files)  Once this library is imported into the projection, you tin can tap into key events (and potentially other events... although I'thousand not sure this is entirely necessary for mouse events... Grasshopper is already doing some stuff for mouse events).

  • Miguel Vidal

    Hi Andy!

    Thanks for your reply, I´ll try that.

    1 more question: in the last version of Firefly, did yous erase the functions for audio management?

  • Andy Payne

    What do you hateful, erase the functions for sound management?  Are the audio components for Firefly non showing up?

  • Miguel Vidal

    Exactly!

    Afterwards installing the latest version of Firefly, the "Audio" Tab is not there.

  • Andy Payne

    Are in that location other tabs missing (ie. Estimator Vision)?  What version of Rhino are you running?

  • Yoshi Fukumori

    hi Andy! I have the same problem, I have Rhino v in 32 and 64, after installing the latest version of firefly the sound tab, computer vision tab and conexion tab are missing.

    I check the component folder and all the files are unblock.

    thanks for your help and equally e'er thank you for sharing

    your cognition! :)

  • Andy Payne

    Hullo Yoshi and Miguel,

    Sorry to hear your having troubles.  It seems like for whatever reason it'southward non recognizing the Firefly_X.gha (which contains all of those components).  My hunch is that the installer is non overwriting the existing files (even though that is ready in the installer settings).  Can you both try to manually delete all the existing Firefly files and dependencies (including the C_sawapan_media.dll) and try to re-install.  I think if the files are not there, and then the installer will re-create the new files and it should piece of work (at least I hope).  Can you lot try this and report back.  Cheers.

  • Yoshi Fukumori

    How-do-you-do Andy! it works for 64, but for 32 I nonetheless have the problem.

  • Igor

    How-do-you-do Andy!

    Is there a manner to get sound from stream video (Internet video,Skype...) and from Video Player not from microphone only?

    At reading attempt from MusicXML file the error stands out. What is wrong?

    Example of MusicXML :    LVB_OP18_NO1_M1.xml

  • Andy Payne

    Hi Shahriar,

    Have you made sure you have successfully uploaded the Firefly Firmata on your lath before running your GH definition?  Besides, is at that place a reason you changed the baud rate to 9600?  The baud rate needs to be the same equally what is fix in the Arduino Sketch.  For the Firmata it is 115200... unless yous changed this specifically, and so you should probably use the default value of 115200 in the Open up Port component.  This could be possibly what'due south causing your error.

  • Matt O'Brien

    Hullo Andy,

    Having trouble with the Code Gen in the latest grasshopper nine.0056..

    getting this "controlknob" error with whatever definition,( no control knob component is being used) :

    Solution exception:Could not load type 'Grasshopper.Kernel.Special.GH_ControlKnob' from assembly 'Grasshopper, Version=one.0.0.twenty, Civilization=neutral, PublicKeyToken=dda4f5ec2cd80803'.

  • Andy Payne

    Hello Matt,

    This control knob upshot is a minor event that popped up with the latest release of Grasshopper.  It seems David changed the naming convention of the knob (information technology used to exist called Punch).  I've fixed this in the adjacent release... but I don't think it should cause yous any issues with still using the Code Gen.  Are y'all yet having trouble?

  • Matt O'Brien

    Hello Andy,

    Thanks for the respond, although it doesn't seem to thing what definition I apply, fifty-fifty your "firefly_05_CodeGen" example throws the same mistake and no code is produced, and at that place is no knob/punch to be establish?

  • Andy Payne

    Yes... this will happen because the Code Gen (which was compiled confronting a different version of GH which used to call the Control Knob a Dial).  And then, even though yous aren't using a knob... the code gen when information technology compiles itself into a component... has a definition which is trying to specify what happens when it detects a knob in the definition.  When David updated GH, he inverse the name... and so the SDK no longer knows what a punch is.  I've changed this in future versions of Firefly then it shouldn't be a problem in one case I release a new version.  Nevertheless... I think it should just be throwing you lot a warning.  Is it an actual error (where the Code Gen doesn't work at all)?

  • Matt O'Brien

    yeh it seems to be an actually error (carmine not orange) and no code gets produced..? looking forward to the next release anyhow, will information technology have leap movement connectivity past whatsoever chance? cheers!

  • Andy Payne

    Hmm... I didn't realize it was really throwing an error (just a warning).  I volition endeavor to release a fix very soon.  And yes... I'd like to release the Leap component in the next version (forth with some other new components).  I just have to check with the Leap license agreement and make certain I tin can release the accompanying .dll files that the device uses.  I will expect into this.

  • Luke Gehron

    I am having the same problem as Matt with the fault:

    Solution exception:Could non load type 'Grasshopper.Kernel.Special.GH_ControlKnob' from assembly 'Grasshopper, Version=1.0.0.20, Civilisation=neutral, PublicKeyToken=dda4f5ec2cd80803'.

    Whatsoever idea when the fixed version of the component will be out?

  • Andy Payne

    Hi Shahriar,

    Yes, it definitely should be possible.  In fact, the QuadStepper firmata already uses the AccelStepper library which is besides a Adafruit library, and so I imagine information technology's simply a matter of using the correct methods for the library yous intend to import.  All-time of luck.

  • Nathan Barnes

    Hey

    Wondering if I tin can become some aid. I'yard trying to get the stepper and reset pivot of the delta stratum printer working. I can run the stepper with the quad stepper sketch and I tin can run read the reset pin if I load the firmata, only I cant seem to load both at the same time.

    Any ideas how to amend go nigh it?

  • Andy Payne

    Hi Nathan,

    If I understand correctly, what you're saying is you have some motors that you want to control via the Quad Stepper Firmata... and y'all have some reset buttons (sensors) that you desire to read from using the standard Firefly Firmata.  Usually, I would simply tell you to add a few lines of code to the Quad Stepper sketch to read data from your buttons and so use the Uno Read component to get that data... but the Quad Stepper sketch already uses some serial commands to get phone call-backs from the GH sketch.  The easiest solution (for the moment) is to probably just use two different arduinos... i running the Quad Stepper sketch and connected to your motors... and the other running the standard Firmata and continued to your buttons.  You'll likely have to open both ports (to each board), but this is likely the quickest solution...although it isn't very elegant.  I'll try to call back of an culling solution, but information technology will probably accept some re-working of the stepper sketch (which needs to happen anyhow).... But need to find time :)

  • Nathan Barnes

    That is information technology precisely! I took Jasons workshop at Texfab 5 and I got a little understanding of how to code arduino's, so that is a route. My goal is to motility xvi motors all with reset pins for zeroing. I will exist tied up with Arduino boards as information technology is so combining the code would exist keen.

    Thanks for such an crawly reply Andy

  • Simon Lullin

    Feedback time (sorry for my poor english language)

    Firefly is awesome, everything works but not bad...

    For example the UDP reciever... I stream whatever for a data from my android phone and it works brilliantly. With gHowl just took ages and still not working. Kinect role are perfect. Actually, a globe with made out of stuff like Friefly would be a world wher I would exist happy to live!

    Arduino is working perfectely, in all ways.

    I promise ane day we will get full resolution for cameras (kinect, webcam or whatever)

    Keep doing what you are doing, it's brilliant

    Simon

  • Andy Payne

    Thanks Simon!

  • jorge sainz de aja

    is firefly Uniform with SparkFun RedBoard???????????????????

  • Andy Payne

    Howdy Jorge,

    As far every bit I know, it should be compatible with Firefly... only I oasis't run specific tests on information technology.  Nevertheless, my understanding of the RedBoard is that it is almost identical to the Uno (and/or Duemilanove) both of which work simply fine with Grasshopper.

    HTH,
    Andy

  • jorge sainz de aja

    cheers andy, finally I bought a Arduino starter Kit with UNO, if everithing goes fine, then level up ;)

  • Guido Maciocci

    Howdy Andy,

    I have a particular question related to the Bound Motion controller and its intergration with Rhino Python rather than a question specific to Firefly (pitiful, only i don't know where else to mail this).

    I am writing some python scripts based on the leap API to sure things in Rhinoceros using the controller. As proof of concept scripts they are currently working outside of Rhinoceros and I would like to begin integrating them via Rhinoceros Python and Rhinocommon.

    My trouble is that I am unable to get Rhino Python to speak to the controller, in that i keep receiving the following error:

    "The type initializer for 'Leap.LeapPINVOKE' threw an exception"

    At present, as far as I have managed to research, this mistake is usually related to the referencing of the wrong type of Jump libraries (x86 or x64).

    I have copied the Leap SDK .dll'southward into the same folder as the script I am trying to run. I have likewise included LeapCSharp.NET4.0.DLL, Leap.py and Leap.pyc.


    The only way i tin can become the Bound module to load is by adding a clr.AddReferenceToFileAndPath pointing to LeapCSharp.NET4.0.dll assembly and appending the leap\lib forlder to sys.path.


    The Spring module imports but I get the PINVOKE error regardless of the x86 or x64 libraries I include in the folder.

    I managed ONCE to import the module and run the leap Sample.py script only I can't remember how I did this. Also, when information technology ran, it did not impress any Leap data to the console and Rhino tended to crash on running the script.

    Would you or anyone else accept any advice to point me in the correct direction?

    Cheers and so much for your help,

    Guido

  • Guido Maciocci

    Andy, some progress...

    I establish your question on the Leap dev forums which pretty much outlined the same problem.

    So now, i moved the relevant .dll's to the same folder as the python script i'one thousand running in Rhino Python.

    I utilize clr.addreference to add the LeapCSharp.NET3.5.dll and append the \\leap\\lib binder to sys.path to reference the libraries.

    Now i can add a controller, and a listener no problem. Equally soon as I try to poll a frame....rhinoceros crashes!

  • jorge sainz de aja

  • mal

    hello
    I am currently new in firefly and I am tring to connect an azteeg board (creat for 3d printer) to firefly but I accept some trouble to detect the way to observe and conect the good pin the firefly plug in seems to be blueprint to piece of work with arduino uno board or mega how tin I conect my azteeg x1 board to firefly and send some information to the sevro motor, activate the fan or controle the ability of the estrus of the hot end with the sensor. if you take somes clue or y'all now another works feel complimentary to reply.

    thanks for this great plug-in

  • Emanuele Calabrò

    Hello everyone,
    I am a neophyte arduino and firefly. I'k using a simple sensor for measuring the temperature and its associated script, so not a script Firmata, I use FF for reading data, but when I employ the Serial Read I can not see the data, I get the bulletin "Information failed conversion from TEXT to NUMBER "

    Tin can y'all aid?

  • Andy Payne

    Hello Emanuele,

    It's difficult to debug without really seeing the script your working with (ps... why not use the firmata?)  Anyway, my assumption is that you're arduino sketch is sending data over the serial port as string (possibly with a label, etc.).  The Uno Read component is setup specifically to work with the Firefly firmata which formats the string in a specific way.  If you're using your ain custom script, you should use the Generic Serial Read component, instead of the Uno Read.

  • Emanuele Calabrò

    Hullo Andy,

    I am using just the component Serial Read, not UNO Read.
    I practice non understand how to use Firmata. I exercise the upload at board of the first sketch from the site and after? How should I / tin I use other scripts?

  • sean.mckeever

    Hi Emanuele,

    From my brief work with firefly + diverse arduino sensors, yous NEED to be using the Firefly Firmata for those components to read your Arduino inputs.

    Information technology was confusing at first for me too.  Before you even appoint the Grasshopper environment, yous need to use the Arduino software to upload the Firefly Sketch (Firmata) to the Arduino board.  Read "Getting Started" here:

    http://www.fireflyexperiments.com/resource/

    And then launch Grasshopper and try your Firefly Read components once more.

    Practiced luck, and keep at it!

  • Emanuele Calabrò

    Ok,

    I did as y'all said but the sensors shoot numbers, when and where it is fourth dimension to put the script of the sensor? 'Cause if I exercise not put it, sensor does not get

  • sean.mckeever

    Emanuele,

    Tin can y'all possibly upload an image screen capture of your upshot?  And possibly a link to the sensor you lot're trying to use.  Some sensors are more basic and some more complex than others.

    Are are you using the "Uno Read" component and getting numbers out?

  • Emanuele Calabrò

  • Emanuele Calabrò

    YES, i'1000 using"Uno Read" component and getting numbers out?

    I'm using a DHT11, a DHT22 and a DS18B20

    From 20 to thirty should give me values ​​and instead gives me about 1000

  • Andy Payne

    Emanuele, it appears yous're getting an fault in the Arduino IDE... which may mean the firmata never actually got uploaded to your board.  Can you close Grasshopper, and endeavor uploading the Firmata, and and then restart Grasshopper?

  • Andy Payne

    PS, the 1023 value you're getting is not really correct.  Either you accept a hardware circuit error, which is causing your voltage to saturate effectually 5V (and thus the pin is returning it'due south maximum value of 1023) or you never actually got the firmata installed and information technology'southward returning some other number.

  • Andy Payne

    Lastly, could you start a discussion topic almost this issue instead of just posting to the wall.  That will help u.s. track any issues and keep the comment wall more clean.  Thanks.

  • Emanuele Calabrò

    it'southward an old screenshot, lamentable

  • Amaraa

    Hello?  I am trying rotating objects using firefly. The thing is It's my first time using arduino and firefly plugin.
    I am starting with the sample files that come up with the firefly installation. which is Firefly_01_Actuation.
    But I am facing trouble relating to the serial port.
    It works fine connected and suddenly afterward uploading the Firmata to the board, shows error on the grasshopper.
    The Uno Write says no connection to the device. And i checked the Arduino program, surprisingly Serial port is not active.
    More interestingly Arduino Uno shows the Uno is on COM10 port.
    I installed WinAVR and followed all the instruction from Firefly-Primer_1006.
    Please assistance me.
    Thanks

  • Andy Payne

    Howdy Amartuvshin.  Thank you for posting the images... they're really helpful.  I think what'southward going on is a hardware issue.  Looking at your excursion, I think you take the 5V and GND lines coming from your servo connected to the wrong wires.  If you wait at the servo and the three wires coming from it, you'll notice a chocolate-brown, red, and yellowish.  The brown wire needs to be connected to GND, just it looks like you've connected information technology to the 5V line.  The red wire on the servo need to be conencted to the 5V line, only it'southward connected to GND.  I retrieve because these are reversed, it'southward causing the connexion to your series port to driblet which is why you aren't seeing it show upward under the Serial Ports in the IDE.

    My suggestion would be to first close Grasshopper/Rhinoceros.  You lot don't necessarily need to do this, but information technology will ensure that you don't have the COM port open up.  Then, switch the hardware wires and see if the COM port shows back upwards in the IDE.  If it does, and then endeavor to re-upload the Firefly Firmata to make sure it's properly loaded.  If it gets uploaded properly, then go ahead and re-open up Grasshopper/Rhino and meet if the case file works properly.

  • weinsteinbagive.blogspot.com

    Source: https://www.grasshopper3d.com/m/group?id=2985220%3AGroup%3A92275&maxDate=2014-11-12T16%3A16%3A51.483Z

    0 Response to "How to Upload Files to Firefly Board"

    Post a Comment

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Iklan Tengah Artikel 2

    Iklan Bawah Artikel