[chbot] Hall Effect Sensor
Richard Jones
rjtp at ihug.co.nz
Mon Jul 20 10:29:07 BST 2009
Yes,
The ultrasonic vga demo works just like bats radar. And the propeller has
so many mips and cpu's at its disposal that with a little fancy processing
it should be straight forward to detect precise distances using
interpolation and even detect multiple echoes. Surplustronics have the
Murata transmitter and receivers in stock for $3.75NZ each. Note they have
them listed under the mispelled name murRata, so searching for Murata does
not work! The simple a/d converter yields a range up to almost a metre.
Richard
On Mon, 20 Jul 2009 20:26:03 +1200, jimmy allen <jimmy1248 at gmail.com>
wrote:
> That ultrasonic demo sounds really cool.Is it like a radar?
>
> On 7/19/09, Richard Jones <rjtp at ihug.co.nz> wrote:
>> Jimmy,
>>
>> There is some good reference material on Hall Effect devices here:
>>
http://content.honeywell.com/sensing/prodinfo/solidstate/technical/hallbook.pdf
>> Figures 4.25 and 4.27 look appropriate to the UGN3503U.
>>
>> Using the Parallax Propeller you may be able to digitise the signal
>> directly using the sigma/delta conversion trick built into the
propeller.
>> From memory you need two port pins, a couple of resistors and a
capacitor
>> per analogue input. For simple software each input also needs one cog. I
>> did a demo a while back which used the propeller to display ultrasonic
>> echoes on a vga monitor. The same trick could almost certainly be
applied
>> to hall effect devices.
>> See: http://kiwibots.org/articles/propeller-ultrasonic-vga-demo-2.html
>>
>> Richard
>>
>> On Fri, 17 Jul 2009 13:51:13 +1200, jimmy allen <jimmy1248 at gmail.com>
>> wrote:
>>> i am going to try and use it to get angles.i am going to attach the
>>> sensor to the bottom of a pendulum and have a mounted magnet bellow it
>>> and get the sensor to give out read proportional to distance and the i
>>> will be able to calculate the angle
>>>
>>>
>>> On 7/17/09, Charles Manning <manningc2 at actrix.gen.nz> wrote:
>>>> Apart from setting up the ADC (which is hardware dependent) there's
>>>> nothing
>>>> much to it. Just read the ADC.
>>>>
>>>> What are you trying to do with this? Unless you need an analogue
>>>> measurement
>>>> it is way easier to interface to a switch type hall effect sensor eg.
>>>>
>>
http://www.sicom.co.nz/xurl/PageID/2214/function/viewprd/prd_id/172816/pmm_id/0/hall-effect-switch-3-pin-sil.html
>>>>
>>>> -- CHarles
>>>>
>>>>
>>>> On Friday 17 July 2009 13:30:51 jimmy allen wrote:
>>>>> i have ordered a part from brightsparks part code UGN3503U
>>>>> which i think is an analog one
>>>>> i am planning to use it with a propeller but i can understand some
>> basic
>>>>> AVR C so that would be fine(comments would be even more useful) but
>> just
>>>>> long as i can understand it it will be fine
>>>>>
>>>>> cheers
>>>>>
>>>>> On 7/17/09, Charles Manning <manningc2 at actrix.gen.nz> wrote:
>>>>> > On Thursday 16 July 2009 19:18:27 jimmy allen wrote:
>>>>> >> for a project i am thinking about using a HES
>>>>> >> i have ordered one (a UGN3503U) and i am not too sure how to
>>>>> >> program
>>>>> >> one. so i was looking for a piece of sample code if anyone has
>> worked
>>>>> >> with the before.
>>>>> >
>>>>> > It depends on the sensor you use. South Island component centre has
>>>>> > a
>>>>> > selection.
>>>>> >
>>>>> > There are basically three main types:
>>>>> > * Analogue: Attach to an ADC pin and make an ADC reading.
>>>>> > * Unipolar Switch: Open collector. It looks like a switch to ground
>>>>> > that
>>>>> > turns
>>>>> > on when the magnet is close (polarity sensitive - only reacts to
>> North
>>>>> > or
>>>>> > South, I forget which). Turns off when the magnet goes away. You
>>>>> > just
>>>>> > hook this up to an input pin with a pull-up (like a touch switch
>> etc).
>>>>> > *
>>>>> > Bipolar switch: Like Unipolar switch, but needs to be actively
>>>>> > turned
>>>>> > off.
>>>>> >
>>>>> > Turns on with North and turns off with South (or vice versa, I
>>>>> > forget
>>>>> > which).
>>>>> >
>>>>> >
>>>>> > If you want code, you'll need to say what micro you're using.
>>>>> >
>>>>> > -- CHarles
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
>>>>> > http://lists.ourshack.com/mailman/listinfo/chchrobotics
>>>>> > web site: http://kiwibots.org
>>>>> > When replying, please edit your Subject line to reflect new
content.
>>>>>
>>>>> _______________________________________________
>>>>> Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
>>>>> http://lists.ourshack.com/mailman/listinfo/chchrobotics
>>>>> web site: http://kiwibots.org
>>>>> When replying, please edit your Subject line to reflect new content.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
>>>> http://lists.ourshack.com/mailman/listinfo/chchrobotics
>>>> web site: http://kiwibots.org
>>>> When replying, please edit your Subject line to reflect new content.
>>>>
>>>
>>> _______________________________________________
>>> Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
>>> http://lists.ourshack.com/mailman/listinfo/chchrobotics
>>> web site: http://kiwibots.org
>>> When replying, please edit your Subject line to reflect new content.
>>
>> _______________________________________________
>> Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/chchrobotics
>> web site: http://kiwibots.org
>> When replying, please edit your Subject line to reflect new content.
>>
>
> _______________________________________________
> Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/chchrobotics
> web site: http://kiwibots.org
> When replying, please edit your Subject line to reflect new content.
More information about the Chchrobotics
mailing list