![]() |
Re: DIY digital compass: electronics experts needed!
Quote:
Quote:
http://www.datasheetarchive.com/pdf-.../DSA-37871.pdf It's pretty clear from this that the interface portion is trivial. Quote:
In my mind, the question of AK8973 vs. HMC5843 isn't a useful one because they are substantially the same. Ideally, we'd be able to tap into an existing i2c bus and be done with it---we just need the IC and some bypass caps. Going through USB (assuming OTG support becomes available) will probably require a microcontroller and will be bulkier and uglier. By the way, as nice as the SDIO idea sounds, it's probably no better than doing a USB interface, since SDIO<->I2C will still take a microcontroller, and the issue of mechanically supporting the compass module protruding from an SD slot is not one I want to tackle. USB seems better suited to this. (I say protruding with fair certainty having played around with the HMC5843 enough to ascertain that it is too thick to go inside said slot. The AK8973 is somewhat thinner, but is still too thick when you consider that you need to mount it on a PCB.) |
Re: DIY digital compass: electronics experts needed!
I wish I could find an actual picture of the AK8973 because in my imagination it would look something like the chip in this article: Atheros's AR6003 chip bring 802.11n to cellphones
|
Re: DIY digital compass: electronics experts needed!
kwantam: The person who builds a working USB interface for the N900 will be a Hacker Hero.
So maybe the first thing to do is build an SDIO->USB host adapter for the N900, and then all sorts of new gadgets are available... |
Re: DIY digital compass: electronics experts needed!
Quote:
|
Re: DIY digital compass: electronics experts needed!
Quote:
Quote:
What's your target price point, and what volumes are you guessing? |
Re: DIY digital compass: electronics experts needed!
Quote:
The N900's MicroSD slot placement (inside the device) is also rather sub-optimal for attaching external USB gadgets. Maybe a hardhack could add a new MicroSD slot into the case (would require cutting a hole in the case) and connect it to the original slot with a ribbon cable. That might then allow you to connect various oddly-sized SDIO devices without needing to pop the N900's lid every time. Not sure if it would be worth doing, though, since the risk of permanently marring the case is pretty high. |
Re: DIY digital compass: electronics experts needed!
Go up to 10 people and ask them for directions to their house. I doubt that 3 of them will use the words, "North, South, East or West". Then ask each of them if they have ever used a compasss. 0 of 10 will have used a compass.
I would love to have a compass in the N900, but for most people it isn't necessary. Only people that were Boy Scouts actually care about this. Ok, flame me now. |
Re: DIY digital compass: electronics experts needed!
Quote:
However, I personally would love to use a digital compass with the N900 so that I could add 'automatic directionality' (or whatever you want to call it) to the astronomy program(s) I have written. Similar to the Celestron 'SkyScout', I would like the directional orientation of the N900 to be reflected in the portion of the sky being shown to the user. In my case, it has nothing to do with giving 'walking directions' to anybody :) |
Re: DIY digital compass: electronics experts needed!
Quote:
For instance, have a look at this: http://layar.com/ |
Re: DIY digital compass: electronics experts needed!
me too,
i want it badly,,,:( |
Re: DIY digital compass: electronics experts needed!
Quote:
|
Re: DIY digital compass: electronics experts needed!
I'm just wondering if the accelerometer+GPS is good enough to fake a compass through dead reckoning. You turn on dead-reckoning mode, get a GPS fix, walk 20ft or so in a straight line holding the device in some predefined position and now the device knows what direction its facing. Or alternatively, you point the device north, tell it to sync, and it does.
Granted, last time I did anything with dead reckoning was a FIRST robotics competition 6 years ago and I remember that just failing horribly, but maybe things have gotten better since then? |
Re: DIY digital compass: electronics experts needed!
1. Dead reckoning with a single accelerometer is trouble. You'd really need a gyro, accelerometers will give you onyl translation, but not rotation.
2. If you walked 20ft with GPS on, you'd have a direction anyway :) There is just one assumption to make - that the device was in front of you. |
Re: DIY digital compass: electronics experts needed!
Quote:
You'd need to integrate the accelerometer measurements, which I'd think would have to be done continuously by the electronics to have a chance at being accurate. |
Re: DIY digital compass: electronics experts needed!
i2c would be easiest to access using some microprocessor with a similar interface (Atmel has TWI or USI depending on model). I don't know if you can bit-bang the SDIO in the microSD, or if there would be a driver for the UART interface, though there is a NXP/Philips UART to I2C chip that might work.
|
Re: DIY digital compass: electronics experts needed!
I'd be really happy with an integrated bluetooth compass/headset. Or even just a BT compass.
It would mean that I'd have to keep the N900 aligned correctly, but I don't think holding the phone straight in front of me would be any kind of herculean task. |
Photo of bluetooth compass prototype
Looks like someone named "HapticGuide" is working on a bluetooth compass prototype for the N900:
http://www.flickr.com/photos/hapticguide/4206070945/ http://www.flickr.com/photos/hapticguide/4164852805/ AFAICT there is no user on t.m.o. with that username. Anyone know more information about this project, or care to comment on the visible electronics in the photo? EDIT: better photo added EDIT: Found the project home page here; it's a PUSH project. Looks like it's intended for walking navigation, not for AR. I wonder if the compass circuit returns full 360 degree information or just 8 directions. |
Re: DIY digital compass: electronics experts needed!
there is a strange blanking plate type thing inside the n900
go have a look at some disassembly videos, would a honeywell i2c unit fit in that space? |
Re: DIY digital compass: electronics experts needed!
Shame this isn't available anymore:
http://www.wintec.com.tw/GPS/bluetoothgps/WBT100.htm http://www.pocketgpsworld.com/wintec-data-logger.php It actually spits out an NMEA HDG message, just what we could do with: http://www.gpspassion.com/forumsen/t...88&whichpage=5 |
Re: DIY digital compass: electronics experts needed!
That Wintec device does indeed look like it would fit the bill surprisingly nicely: small, battery-powered, and bluetooth! Looks like it was pricey when it was available ($150)... wonder if there's a similar product available today.
EDIT: Is this the successor? Seems like it's still available. Looks like you'd be paying for a lot of stuff you don't need though if all you need is a compass. I seem to recall someone in this thread said (s)he had contacts to a Chinese manufacturer who might be willing to take up a compass project. I wonder if the Wintec might be able to serve as a useful example for said manufacturer when considering development of a similar device. |
Re: DIY digital compass: electronics experts needed!
I've just read back through the thread, and I saw the mention of SDIO. It does apparently work, have a chat to Crashanddie who happened to have a suitable card and it was recognised.
|
Re: DIY digital compass: electronics experts needed!
And while I'm waffling, though slightly OT now, has anyone actually tried forcing the USB chipset to host mode using the same trick that was necessary for the N800 and N810 (if you used a gender changer as you didn't want to buy an extra usb cable with the right wire crossed over in it)?
|
Re: DIY digital compass: electronics experts needed!
One of the things I'm working on involves adding a magnetometer (HMC5843 - http://talk.maemo.org/showthread.php...739#post450739) to my stack with a Venus 10Hz GPS (with WAAS and AGPS!), reading J1850 from my harley, my radar detector. I'm also adding baro and temp (and maybe humidity if I can find the right sensor).
The HMC is more than sensitive enough to give a heading reading - I was surprised. It is I2C so just needs to be turned into serial for bluetooth. |
Re: DIY digital compass: electronics experts needed!
Quote:
http://www.gpspassion.com/forumsen/t...OPIC_ID=117303 |
Re: DIY digital compass: electronics experts needed!
Looks like there's another product in the category of GPS logger + compass + bluetooth: the MN500 from "Themap", a Korean company. Can't find any pricing info yet though, not even on their home page... the product was only recently launched.
http://www.ceatec.com/2009/en/news/e...press_id=00041 specs - Touch_Panel, 3.5"Transflective LCD, Bluetooth, Compass, Altimetric Barometer, 2.4GHz Bike_Sensor(ANT+), CPU ARM9_2442 @ 400 Mhz - you could probably run Linux on this thing, if it's not running Linux already. I suspect again though it will be rather pricey. edit: added specs link |
Re: DIY digital compass: electronics experts needed!
Yeah, if we're going to go that large and pricey it would make more sense to just buy one of the Android devices which comes with GPS + compass and do VR work on there.
That Wintec device isn't available in the UK afaict, so it looks like it will unfortunately be a case of doing some soldering and making up a BT link for the 3-axis i2c accelerometer *grumble*. |
Re: DIY digital compass: electronics experts needed!
Quote:
|
Re: DIY digital compass: electronics experts needed!
I've been lurking following the progress of this thread. I have a question. What height (thickness) of chip can the microSD card slot accommodate? Would it be possible to custom fab a magnetometer microSDIO card. The 3 axis magnetometer chip from Honeywell are a bit thicker (1.3mm) than the official microSD card spec (1mm), but they are substantially smaller in the other dimensions (3x3mm vs 11x15mm) so there should be ample real estate for whatever other electronics (i.e. flexPCB). Just wondering!
|
Re: DIY digital compass: electronics experts needed!
I don't think it would fit on an SD card without sticking out (at least on the 900). You might be able to do something via bluetooth (or even flash an IR LED at the camera).
I don't think the Honeywells do SPI (which would make it easy), but do I2C - I have the HMC5843 talking to various Atmel chips (the new attiny45 in tssop might fit in the uSD slot though). It could go via bluetooth as well though it would probably be a bit big. |
Re: DIY digital compass: electronics experts needed!
I wanted to ask... i thought the N900 does have a digital compass actually? When i use Ovi Maps and the A-GPS, and set a route and drive by car... the map is turning by itself as i drive, targeting always north. For ex. when i turn right, the map turns with me. I though that can be done only with a digital compass? Or am i wrong?
|
Re: DIY digital compass: electronics experts needed!
Quote:
If you face the other way in a taxi etc, it does the same as facing forward. So i don't think it uses a compass unfortunately :( |
Re: DIY digital compass: electronics experts needed!
If you've moving the GPS can tell your track, which is probably also your heading assuming you're driving.
When you're stationary it can't tell which way you're pointing |
Re: Photo of bluetooth compass prototype
Quote:
Anyone in this thread constructed a working compass prototype yet? |
Re: DIY digital compass: electronics experts needed!
Not for the N900 since I don't have one, but I have an HMC5843 breakout, arduino, and bluetooth talking together sending X,Y,Z. I'm working on adding barometric pressure.
|
Re: DIY digital compass: electronics experts needed!
tz1, can you post how you did that? I'm guessing it works for any bluetooth device which handles serial ports. Thanks!
|
Re: DIY digital compass: electronics experts needed!
I2C Magnetometer:
http://www.sparkfun.com/commerce/pro...oducts_id=9371 First, you might need to fix the capacitor, see the comments. On the page is some sample code for an ATmega328p. I basically use that merged with an improved I2C driver on my 3.3v Arduino Pro. http://www.sparkfun.com/commerce/pro...oducts_id=9220 Normally to an FTDI 3.3v breakout to /dev/ttyUSB0, but it is just TTL serial UART levels. I have a Parani bluetooth module from sena.com that just takes 3.3v, ground, tx, and if you need rx, or you could also use the bluetooth mate: http://www.sparkfun.com/commerce/pro...oducts_id=9358 The HMC I have runs at around 70Hz and returns 13-14 bits for each axis so even 9600 baud should work but I usually set things faster. |
Re: DIY digital compass: electronics experts needed!
It produces output like:
472, -9, -687 465, -4, -685 474, -4, -692 471, -8, -683 467, 1, -694 471, -5, -688 475, -11, -691 471, 2, -698 473, 8, -685 474, -3, -685 466, 0, -686 479, -1, -698 469, -7, -694 469, 1, -687 471, 2, -688 472, 5, -690 477, -2, -688 Read the datasheet for details. Code:
#include <avr/io.h> |
Re: DIY digital compass: electronics experts needed!
|
Re: DIY digital compass: electronics experts needed!
Make that i2c magnetometer small enough to fit in the microsd card bay ;)
|
Re: DIY digital compass: electronics experts needed!
Hi!
I am also trying to get some sort of digital compass for my N900, and as far as I checked the price and shipping costs for all the parts necessary for simple IC2 -> Bluetooth digital compass, for me it is cheaper, faster and easier to just buy used Android phone (G1/Dream or Tattoo), attach it to the back of N900 with two elastic bands, and create a simple App that transmits compass coordinates from Android phone via Bluetooth/WiFi. I know it sounds completely stupid, but it solves all the battery/circuitry/soldering/etc problems for the same price or cheaper, AND I get an additional phone. Mind if I include this as one of the options in the Digital Compass wiki section? Edgars |
All times are GMT. The time now is 05:38. |
vBulletin® Version 3.8.8