Monday, 30 June 2014

Arduino and Android - Bluetooth Connection (school project)

The concept is very simple: build a board that contains a temperature and humidity sensor and sends the information to an Android app via Arduino and bluetooth module HC-05.

This is a school project and it's been created from scratch, from schematics to final board, by me, including all the code both for Arduino and the android application.

For the drafting part I used Altium Designer 10.

Here's the schematic:






Some of the footprint used are manually created by measuring the size of the component as well as the pin distance.

To supply power I use a 9V battery and 2 voltage regulators: one 7805 for the ATMega328 and one LM317 for the bluetooth module (works at 3.3V). There are better solutions, this was the quickest for me.

Once the project has been designed, after some board cutting, some UV light, drilling and soldering, this is what the final product looks like:




I'm not going to post the code I've written (it's just too much), so if someone is interested I can email it and it comes with the official documentation I've also written.

The Arduino program was coded with the Arduino IDE that is downloadable for free on the official website (Take me there!)

The Android app was written with Eclipse (Download here).

The app will also allow the users to take a screenshot of the screen (while displaying the temperature and humidity) and post it on their Facebook wall.

Here's a short video of the whole project in action:




the project report is downloadable here.

Question, comments, advice, suggestion, down below please.



RPG Game in C++

This is a primitive game I started developing some time ago...and I never finished. It's a simple 2d, RPG game, nothing you haven't already seen millions times.

For this project I used sprite sheets, NONE OF WHICH ARE MINE. I'm distributing this game for free. If you see your sprite sheet being used, please contact me and if you wish me to remove the game from the server I will not hesitate to do it. I will also post a video of it. The video itself isn't great, pretty bad frame rate, I'll see if I can take a better one in the near future.

Some animations are missing (when the characters attack for example) and the audio is still quite basic. And of course, some occasional bug....Anyway, this game has some "cool" features, like the ability to drop items and recover them later, buy and sell inventory items, magic spells (with magic spells inventory) and a simple quest system.

The videogame was written in C++ and the library Allegro 5.

Take a look




The game is downloadable here

WARINING: there's some bad language

Almost forgot: for those of you that share the same passion of game programming, I strongly suggest to go here. This is a perfect start for videogame development, awesome tutorials, must check!