Onyx Robots and Parts

Awesome robots, one part at a time

Onyx Fire II sample Arduino sketches

The Onyx Fire II is back from the factory, and is looking great!

I have written a couple of sketches to show how to control it from an Arduino Uno board. If you’re using a different microcontroller, hopefully the code in these sketches will help you out in understanding the protocol as well.

You can download the sketches as attached to this article.

The sketches are:

pwm_pulse: Shows how the different RC-style PWM pulse lengths trigger the two different switches.

set_led: Shows how to blink the blue LED on the board, while also reading back the state of the register that controls the LED to verify that it is indeed connected and working. This sketch contains functions set_reg() and get_reg() that you can copy and paste into your own sketches to easily communicate with Onyx Fire II.



, ,

Comments are currently closed.