Open full view…

Basic Test --> LED wont blink

Paul Paulsen
Fri, 22 Aug 2014 10:00:25 GMT

I am new to Firefly and Grasshopper and tried to use Firefly to get an LED blinking. Just for the basic understanding. In Firefly everything looks fine, the arduino does react when acivating a button in firefly by blinking with it's rx light, and I also did upload the firefly firmware on the arduino, just no Output is created. No matter which PIN I use, the LED is not blinking (on 5V its on). Did I miss something else?

Andy Payne
Sun, 24 Aug 2014 12:41:41 GMT

Lets try Digital Pin 13 since there's an onboard LED connected to that pin. If you have successfully uploaded the firmata, then the next step is to open the port in Grasshopper. Once that's done, use a Uno Write component and connect a boolean toggle to the DPin13 input. When you toggle it to true, you should see the onboard LED just underneath this pin turn on. Does this work?

Paul Paulsen
Mon, 25 Aug 2014 20:01:09 GMT

This is crazy, the LED at Pin 13 is always on, unless I stick in a LED in Pin 13 and ground. But I can't affect this with the Firefly Code. Nothing changes if I toggle the switch. Is there something wrong in the Firmata?

Andy Payne
Mon, 25 Aug 2014 20:09:59 GMT

No. I don't think so. Let's take it step by step. First, can you make sure you've uploaded the latest version of the Firefly Firmata (maybe re-download it to be sure). If the firmata has been uploaded correctly, you should be able to launch the serial monitor in the Arduino IDE and see a bunch of numbers (separated by commas) scrolling down the monitor. Note, you'll need to make sure the baud rate of the serial monitor matches the sketch. To change the baud rate of the serial monitor, select "115200" from the drop-down menu in the bottom right hand corner of the serial monitor dialog. If that works, can you post a quick screenshot here.

Paul Paulsen
Mon, 25 Aug 2014 20:34:50 GMT


Andy Payne
Mon, 25 Aug 2014 20:40:01 GMT

Ok. Great. Now, close the serial monitor (you can't have two applications open trying to access the same COM port). Let's launch Grasshopper and drag a Open/Close port component onto the canvas. By default, the baud rate input is set to match the Firmata sketch, so you shouldn't need to change that. It looks like you're using COM4, so right-click on the Port input and click Set Data. Enter the number 4 and hit enter. Then use a boolean toggle and set it to True to open the port. You should see an output message that says... "Hooray, the port is now open, etc."). Do you see this message? Or are you getting an error/warning?

Paul Paulsen
Mon, 25 Aug 2014 20:41:42 GMT

Okay, I am retarted. I found the mistake. For some reason I though the Baudrate is 9600, like it's often, and set it as this

Paul Paulsen
Mon, 25 Aug 2014 20:42:42 GMT

After changing this everything is working as it should, great support :) Thank you very much. I am ashamed now

Andy Payne
Mon, 25 Aug 2014 20:46:13 GMT

No problem. I'm glad it was a simple fix :)

Sun, 06 Aug 2017 18:18:36 GMT

I have the same problem, i cant turn on/off the LED with boolean toggle. im readin the firefly users guide and i did it step by step, but it doesn't work. what's the problem !?