Archivos en la categoría 'Arduino'

VMware Fusion (OSX): Mooltipass in Virtual Machines

Martes, Agosto 19th, 2014

So, I wanted to test the Mooltipass in different platforms besides my main OS, Mac OS X. The better way is to use virtual machines I already have VMware Fusion. On first try I wasn’t able to associate the Mooltipass to any of my virtual machines because the MP is an HiD device and as so, is always connected to the main OS and then emulated via VMware Fusion in the guest OS (in my case, Windows XP and Windows 8):


Mooltipass is not eligible to be associated to the guest OS

After some googling I found a relevant KB (knowledge base) article about associating HiD devices entirely to a Virtual Machine and disassociating it from the host OS:

The article says that the virtual machine hardware definition file (.vmx extension, usually located at /Users/$USER/Documents/Virtual Machines.localized) has to be manually edited after shutting down the virtual machine and the VMware Fusion to add the two following lines:

usb.generic.allowHID = "TRUE"
usb.generic.allowLastHID = "TRUE"

After adding both lines, you can safely search for the Mooltipass HiD devide to properly associate it to the guest OS:



Update: Since VMware Fusion 7.1.1 it’s necessary to also add usb.generic.allowHID = “TRUE” in the following file: /Users/$USER/Library/Preferences/VMware\ Fusion/preferences

Arduino Sensor Board plus PongClock

Sábado, Junio 15th, 2013

This tiny sensor board was solely designed by Mike Rankin, a friend that help me to bring life to a real custom GPS board. This time he was looking for a multi purpose board to develop anything.

Sensor Board Main display Side Showing Ponglock

Sensor Board Main display Side Showing Ponglock

Feature list:

  • I2C Bus to save pins for future use.
  • 128×64 OLED I2C Display: let’s draw anything
  • Momentary switch on left and cross plus center buttons on right (total 6 input buttons)
  • Arduino Leonardo based: USB for anything.
  • Temperature sensor (I2C)
  • Barometer sensor (I2C)
  • Accelerometer sensor (I2C)
  • Real Time Clock (I2C) plus backup battery.
  • Switched power supply.
  • LiPo charger.
  • Tiny design: let’s make portable projects.
Sensor Board Main Component Side

Sensor Board Main Component Side

I couldn’t resist temptation.. I ported the pongclock code from Rob Parrett to this tiny board. Here is the result:

Hardware is open hardware, you can obtain anything on Mike’s web or you can buy it directly from Tindie. Custom pongclock code can be downloaded from here.

Update: I fixed 3 bugs in the original code to fix pong game behavior to be as accurate as possible, like the scoreboard, ball missing and properly change of hours.

GPS Toy Hardware version 2

Jueves, Junio 6th, 2013

Update: If you want one for real it is now for sale at Mike’s Tindie page here.

About 9 months ago one Hackaday reader dropped some comments about compiling the source I published here a year ago and some troubles. After that, Mike and me kept talking and things turn out that he was PCB developer, so we though we could make together GPS cube version for real.

Together we developed a schematic and Mike built all himself several prototypes until we finally came with a (almost!) final version. So, here we are, one year after first release:

GPS Cube version 2

GPS Cube version 2

This version has several features:

  • Everything is packed together in a single board.
  • Better GPS: we switched to MT3339 PA6H instead old SirfStar III EM-411
  • We added TMP75 I2C temperature sensor.
  • The display PCB is also custom to run 3.3v
  • Everything runs 3.3v: GPS, display, FTDI, TMP75 and atmega328p is now running 8MHz, Battery lasts longer.
  • Expansion header with SPI and I2C: the board ca be used as development board for any other projects with displays or GPS.
GPS Toy Hardware Rev1.0

GPS Toy Hardware Rev1.0

New GPS Board back

New GPS Board back

All the hardware was designed and developed by Mike Rankin (probably will go to Tindie) meanwhile I developed the software.

GPS Toy / On board computer

Martes, Junio 5th, 2012
Update: This hardware was made from parts at adafruit, sparkfun and dealextreme. See the new, custom design with more power efficiency, better GPS and temperature sensor here.

This is something I’ve been working about a month now. It’s a little handheld GPS / on board computer that shows altitude, current course, synced satellites, speed, time and date, distance between saved point and current point (and its course and corrdinates) and total trip distance.

Cube GPS Toy

Cube GPS Toy

At first I wanted a speed-o-meter for my bike but you know, coding it’s free and could stop adding functions.

I managed to get some cheap serial GPS receptor, a tiny OLED display and an Arduino Mini Pro and started to code. First I knew I would need some big font and so I made my own using paint, each character 24×32 (96bytes). This is the complete parts list:

  • Ebay I2C SSD1306 based OLED display, 128×64, 0.96″ and 5V.
  • Ebay Arduino Mini Pro (ATMEGA328p), 5V 16Mhz
  • Sparkfun DC-DC step-up voltage converter (5V).
  • Adafruit MPC73833 LiPo battery charger.
  • Savaged iPod Nano 1st gen battery.
  • Dealextreme EM-411 GPS 5V receiver.
  • Savaged momentary buttons, resistors and wires.

I had to code some method to print own big fonts in the display and the moment I managed to control all the display functions as I wanted I started to code the methods to print GPS gathered data in the display. This is an earlier slowed display test that didn’t worked well:

The first prototype had just speed mode, was assembled with double tape and had no battery charger. It’s purpose was to see how speed meter worked testing it in my car.

First handheld GPS prototype

First handheld GPS prototype

Then I dismantled firts prototype and assembled second prototype, this time no double tape, just boards soldered togheter. This is the schematic:

Tiny GPS schematic

Tiny GPS schematic

And so I began building:

OLED Display up, GPS Conector (glued to DC-DC) down.

OLED Display up, GPS Conector (glued to DC-DC) down.

Second prototype assembling. Arduino Up, DC-DC down.

Second prototype assembling. Arduino Up, DC-DC down.

The actual prototype looks like a tiny packed devices cube with front display and momentary switches (best view on 720p). Here is a video with functions explanation:

I’m not a coder so code is pretty much ugly. Sketch it’s downloable from here. It uses TinyGPS library from Mikal Hart, custom new software serial to disable interrupts in pin ports and PinChangeInt, an Arduino library to handle buttons interrupts.

If you would like to contribute with functions or code fixes please feel free to contact me either in the comments or in my email address (at the bottom of the page).

Controlando un LED RGB con Arduino

Sábado, Agosto 27th, 2011

Para aprender un poco sobre los LEDs RGB he montado uno dentro de una pelota de ping-pong (como difusor) conectado a mi Freeduino; rojo a 9, verde a 10 y azul a 11. Potenciometro 10K al pin 2.