So you’ve got a WiFly module and you want to integrate it with your Arduino project to lift it to the next level. But were do you start?
The last couple of months I’ve had a lot of hands on experience working with Roving Networks WiFly and I know it can have a mind of it’s own sometimes. I decided to write this starting guide to share the knowledge I’ve acquired. Because my hardware setup is a bit unique I will focus primarily on controlling the WiFly through Arduino and not how to connect the components to each other.
There are three ways to connect a WiFly module to Arduino: Hardware Serial, Software Serial and SPI. In these examples the WiFly is connceted to Arduino Leonardo’s digital pins 0 (RX, receive) and 1 (TX, transmit); hardware serial.
To bad the stores are closed because I still need a few supplies to make it run. I can’t wait to mess around with it…
This post is a follow up to part one.
Step 3. Getting the proportions right.
The main focus of this step was to give the flamingo the right proportions. The proportions are based on the measurements from image 1. The measured parts are made relative to each other. bodyHeight is the only variable that has to be filled in. The calculations of the other variables (legLength,legWidth,feetLength,neckLength etc.) are based on the bodyHeight value. All body parts (Head, Body, Segment) come together in the main class Flamingo.
I dedicated a self-study course to get more experience with mathematical principles, which can be pretty useful when programming. Other goals were to learn animation concepts and to get more experienced with ActionScript 3.0 and object oriented programming. My university gives study points for completing the course successfully. The assignment had two parts:
- Read the book ActionScript 3.0 Animation Making Things Move!
- Make something based on a topic from the book
To sell the concept for the radar and detection room we needed a working prototype. I managed to get a hold of a Parallax RFID reader which is compatible with Arduino. On the Arduino website you will find a sketch for the Parillax RFID reader. Because I had only one RFID reader I added a button and modified the sketch so you can cycle through modes. This is to emulate the game/login part and the node part (scan if you find a object) of the prototype.
The last couple of weeks I’ve been busy developing a game concept for a local museum. The museum has a room dedicated to radar and detection which needs an update and a game element. The game needs to be entertaining and edutaining for children between 10 and 12 years old, who are the main focus of the museum. In this project I’ve worked together with a team of other students. Everybody had different skills to bring to the table, ranging from the theoretical game design document, to character development, design, 3D modeling, programming and hardware.