algorithmic modeling for Rhino
Hi!
I'm developing a CNC wire cutting machine with 4 stepper motors. I'm using the accelStepper and MultiStepper libraries in arduino, and feeding the controller(an ATmega 328p based fabduino) packets of values to read. The packets are currently in the form of a simple tree {a} of 16 digit strings... and the fabduino will run the values just fine and after all the motors have stopped, will output a basic incremental counter number. I want this number to be the index for the next packet of values to send.
I am really close. I can send the first string to the controller. All the motors move together, and when they are done, they return the counter value, which the SerialRead component reads just fine. That value will parse out the next string, I just can't figure out how to trigger SerialWrite to write the next string to the controller.
Ideas?
Tags:
Hey Oliver,
What you're looking for is a call-back method... So, when one line is completed, it sends a call-back to Grasshopper and then asks for the next line in the execution file. The Quad-Stepper Firmata (which ships with Firefly) does just this (although the behavior is a little buggy and I haven't been able to track down exactly why that happens just yet). But, if you look through this code, it may help you get started on how to do this. Let me know if this helps.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by