please see the image below in reference to a cheap compass. I'm not an electronic engineer so pls bear in mind
the idea is to create cheapest form of electronic compass. it will be in-accurate by about 15degrees, slower than gyro ones, and need to be held flat like a compass. Whats wanted is cheap + general direction according to 8 co-ordinates.
just like with normal compass, its bar rotates on a pin. the bar is fixed to a black card (thin, light, black about 200gr/gsm card). A slot in the card to allow IR light to pass through for the photo interuptors. depending on the cards rotated position, 1 or 2 photo interupters would be postive (passing IR light through the slot. With each photo interupter connected to an MCU pin each, could calculate the position......
Electronic compasses are not very expensive for low resolution models, are you planning to mass produce your design? What would be the need for a low resolution compass? What product(s) do you envision could use it?
i saw the honeywell one - gave up after couldnt find pricing. You gonna think im a scrooge - my version would cost about a dollar i think including an MCU.
waiting for pricing from these guys:
**broken link removed** (MDSM-1000A/B could be ok)
as long as its level within 12 degrees, should be fine. it doesn't move that much im changing the above design, replacing single hole on card with slots which will be counted - just need figure out a way to calcualte direction using photodiodes
Another problem is the compass needle will only block the light when it's directly over the optical sensor. 99% of the directions will show nothing. Add the time & cost of a DIY design to the price of a modern 2 or 3 axis chip ~$30 and the chip will be cheaper.
If you used Grey code wheel printed on the bottom of your card and reflective sensors, you would get 16 positions with just four sensors and each additional sensor would double number of them. Also it would be easier and cheaper to make than cutting holes or slot.
If you used Grey code wheel printed on the bottom of your card and reflective sensors, you would get 16 positions with just four sensors and each additional sensor would double number of them. Also it would be easier and cheaper to make than cutting holes or slot.
Hi, the picture shows what I meant. The encoding disc would be printed on paper and glued to the bottom of blue disk. Four sensors would read it. You would have to decode grey code to binary in your MCU.
Jirka
They're solid state compass, which means they don't use mechanical motion of the needles or anything, but rather it uses the relation between earth's magnetic field through Hall effect and voltage as output.
They're solid state compass, which means they don't use mechanical motion of the needles or anything, but rather it uses the relation between earth's magnetic field through Hall effect and voltage as output.