Home Arduino Code

Arduino Code

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino

In this guide we will go through the process of translating G forces as measured by our Virtuabotix Accelerometer attached to a Versalino Sense & Move on a Versalino into calibrated degrees from 0 to 360. This process can be used on any Arduino compatible system to include the Arduino Uno or Mega, but it […]

Controlling the Virtuabotix Pan & Tilt with your Arduino or Versalino

Controlling the Virtuabotix Pan & Tilt with your Arduino or Versalino

As you may have guessed, the guide and code I put together to position a servo with calibrated degrees was for a reason other than that I could. Today we will be using that basic principle of mapping our servo calibration to the range of degrees we would like to cover. Basically what we will […]

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino

Code for Arduino/Versalino Ultrasonic distance triggered Art Gallery audio

I was recently approached by a team that needed to trigger audio for their art (specifically photography) gallery at a a specific range and frequency (interval to be clear). I have been asked about similar projects by a lot of folks so far, so I decided I would help with the project, and draft up […]

Thinking about replacing the glass on your Galaxy 5S? DON’T DO IT!

Learn how to position a servo using degrees instead of control timing on the #Arduino

So this is actually a pretty common request whenever I teach a robotics class, and introduce the Servo for folks to start playing with in their robotic Arduino circuits. I have created several implementations of this type of system, but on the Arduino and Versalino this is my favorite way so far. By designing a […]

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino

Writing a Bluetooth Packet based #Arduino sketch for the Versalino Control board

Okay so this one took a while to develop, I was up until after about 1 AM last night trying to figure it out. That was even after Bobby and I planned out as much as we could think of on the Robot Arena which happily, being made of whiteboards, makes for an amazing engineering […]

Migrated to a new server, adding chat to all of my sites, and some other tidbits

Updating the Versalino Rove Controller Sketch to accept 4 Byte VirtuabotixPackets

So some of you may have been wondering about the VirtuabotixPacket theme that a lot of my recent posts have been following. The Versalino Rove is one of the big projects that I developed the packet system for, and after spending most of yesterday working on the latest control sketch I finally have a rover […]

Migrated to a new server, adding chat to all of my sites, and some other tidbits

Converting ASCII to Integer in your Arduino or other C code (specifically in a VirtuabotixPacket)

So by this point we have the ability to transmit and receive data packets between Arduino/Versalino systems and any other serial device (to include another Arduino). Now the big question is how to translate data that is sent on our packets into a form usable by our micro-controller subroutines, and that is where ASCII to […]

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino

Passing your own data packets over Serial Port (Changing packet size)

So we made a packet system for sending data to and from our Arduino/Versalino systems, but we only gave ourselves 3 message bytes to work with. Though this covers us for a bunch of different applications, it just so happens we needed one more byte of data to work with the format of data we […]

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino

Passing your own data packets over Serial Port (Transmit side)

So we can read and react to data packets over the serial port now, but how do we send a packet from one device to another? Specifically how can one Arduino compatible device send data packets to another? Checkout the Receive Side guide if you haven’t already. [wdsm_ad id=”61″ ] #include char tbs[6];//formatting vector void […]

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino

Passing your own data packets over Serial Port (Receive side)

I recently had to tackle a problem that required sending multiple messages from one Versalino/Arduino to another through a Serial port.  In order to solve the problem, I came up with my own modifiable communication protocol that may help if you have a similar problem to solve. Above is the declaration of the structure that […]

How to translate Virtuabotix Accelerometer G Forces to Degrees on the Arduino or Versalino