Tandum
31-03-2013, 01:20 AM
I bought a Honeywell compass chip on a breakout board with a view to using it to get accurate positioning on my dome. This chip talks on an I2c bus an I had a USB-> I2c device I'd never used. I downloaded the free Visual Studio 2012 express as all my IDE's are really old, I haven't done any real programming in over a decade.
I had a go talking to it with VB and it sort of worked but vb is not familiar to me at all, so I moved it all to C# and everything snapped into place. I got it returning headings to me on the PC via a USB cable and I got it sending az updates to poth. Magic.
Next step is to remove the usb cable. I have a bluetooth modem which will connect my pc to a ttl serial connection at the other end. To convert that serial to I2c I could use a programmed PIC chip, which takes a lot of effort, or use one of the ardunio boards. I have both coming to see.
Surprisingly I'd never heard of the ardunio boards before this. So I ordered an UNO board from an ozzie shop and then checked out the software. They have made it very C'ish so to me it's a no brainer. Basically the ardunio is a set of microcontrolller boards that have the same boot firmware so the software will load to any of their boards.
After a gander I ordered a nano version to go in the dome with the compass chip and bluetooth chip. The uno version that's coming will go in the garage to monitor if the door is up or down and I have found an iPhone app to drive it across a wireless network. I also found a code example so it will email me if the door is open too long.
All these bits are cheap as chips off ebay from china and you can get them to do almost anything.
The red chip in the pics is the compass. It's from the UK.
But to show my support for greece I've switched from Buirbon to Ouzo :)
More to come on this one.
I had a go talking to it with VB and it sort of worked but vb is not familiar to me at all, so I moved it all to C# and everything snapped into place. I got it returning headings to me on the PC via a USB cable and I got it sending az updates to poth. Magic.
Next step is to remove the usb cable. I have a bluetooth modem which will connect my pc to a ttl serial connection at the other end. To convert that serial to I2c I could use a programmed PIC chip, which takes a lot of effort, or use one of the ardunio boards. I have both coming to see.
Surprisingly I'd never heard of the ardunio boards before this. So I ordered an UNO board from an ozzie shop and then checked out the software. They have made it very C'ish so to me it's a no brainer. Basically the ardunio is a set of microcontrolller boards that have the same boot firmware so the software will load to any of their boards.
After a gander I ordered a nano version to go in the dome with the compass chip and bluetooth chip. The uno version that's coming will go in the garage to monitor if the door is up or down and I have found an iPhone app to drive it across a wireless network. I also found a code example so it will email me if the door is open too long.
All these bits are cheap as chips off ebay from china and you can get them to do almost anything.
The red chip in the pics is the compass. It's from the UK.
But to show my support for greece I've switched from Buirbon to Ouzo :)
More to come on this one.