AS5600

61 views
Skip to first unread message

hans

unread,
Dec 25, 2022, 4:35:33 AM12/25/22
to jallib
Hey
I need a position sensor that provides a rotation of 360 degrees. I found the AS5600. Does anyone have experience with this?
regards
Hans

Rob CJ

unread,
Dec 25, 2022, 5:50:42 AM12/25/22
to jallib
Hi Hans,

No, no experience with that but you could search the Internet. For example Instructables: https://www.instructables.com/AS5600-Magnetic-Angle-Encoder/

AS5600 Magnetic Angle Encoder: a.articles { font-size: 110.0%; font-weight: bold; font-style: italic; text-decoration: none; background-color: red;}a.articles:hover { background-color: black;}This instructable explains how to measure shaft angles using an AS5600 magnet…

Merry Christmas and a Happy New Year for all Jallib users!

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens hans <hanz...@zeelandnet.nl>
Verzonden: zondag 25 december 2022 10:35
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] AS5600
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/cb4a9866-829f-46cb-90dc-2b3bf14ae59en%40googlegroups.com.

vsurducan

unread,
Dec 25, 2022, 5:51:37 AM12/25/22
to jal...@googlegroups.com
Seems complicated: https://ams.com/en/as5600
I don't know why everything already has a library in Arduino...
One problem for all Hall sensors is the remanence magnetisation, hopefully this one will not have one without an iron core around...

--

Tom Crawford

unread,
Dec 26, 2022, 3:15:30 AM12/26/22
to jal...@googlegroups.com
(Resend to provide smaller attachment)


-------- Forwarded Message --------
Subject: Re: [jallib] AS5600
Date: Sun, 25 Dec 2022 14:15:33 -0500
From: Tom Crawford <tomc...@gmail.com>
Reply-To: tomc...@gmail.com
To: jal...@googlegroups.com


Hello Hans,
Yes, I have some experience with it.
I needed to replace a failing set of reed switches in a weather vane.  I replaced them with an AS5600 sensor, and did some testing with it.
I have attached a PDF file from a presentation I did in September, that may be of interest.  The overall project was the refurbishing of our Little Free Library.  The weather vane discussion (mainly photos) is in the 2nd half of the PDF, showing the old reed switch / I2C installation, and the new AS5600 install inside the 3D printed mounting.  The upgrade is not outdoors yet, so not weather tested...

Some things to be aware of:
- the rotating magnet and it's mount location are very critical.  I originally did not order the AS5600 (from Aliexpress) with magnets, since I have a large collection of small salvaged magnets in my junk box.  But only 2 of those magnets had the correct orientation of magnetic field to adequately  operate the AS5600!  See test graph for results; a proper magnet would produce even better results.  I have ordered additional AS5600's for other uses, and included the proper magnets with that order.

Tom



On 12/25/2022 4:35 AM, hans wrote:
Hey
I need a position sensor that provides a rotation of 360 degrees. I found the AS5600. Does anyone have experience with this?
regards
Hans
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/cb4a9866-829f-46cb-90dc-2b3bf14ae59en%40googlegroups.com.


Virus-free.www.avast.com
LFL_Refurb_WindVaneUpgradeAS5600_Only_V1.pdf

hans

unread,
Dec 26, 2022, 4:56:12 AM12/26/22
to jallib
Hello Tom,
Delicious, a JAL project !! That is the great strength of Arduino, practical examples.
It looks like my problem. Now my wind direction works with a Greats disc and light cells, but they are affected by the weather.
.
  That's why my question. Do you use the analog output or the spi? Do you work wirelessly? And do you also have information for me about the program?
Well, the risk if you give me an answer that I have many more questions
  I ordered a set with the magnet
  It's still fun.
regards
Hans

Op maandag 26 december 2022 om 09:15:30 UTC+1 schreef Tom:

vsurducan

unread,
Dec 26, 2022, 6:54:51 AM12/26/22
to jal...@googlegroups.com
Hi guys, would be interesting to see the presentation. This chip is really able to sense reliably below 0.3 degrees or so?
Thx,

Oliver Seitz

unread,
Dec 26, 2022, 11:19:59 AM12/26/22
to jal...@googlegroups.com
Hi Tom, Hans and all,

I do not have experience with that chip. I'm used to spend a little more money, and use this device: TT Electronics / BI Technologies 6127V1A360L.5FS. It has an analog output which interfaces easily to an ADC input, and the right magnet is mounted in the right distance on the right axis. It pretty much resembles a potentiometer without stop.

Of course it can be nice to stay on the digital side, but having the mechanics already done for a few extra bucks can also be an advantage.

These days, the most important advantage is, if my preferred supplier has it in stock ;-)

Greets,
Kiste 

Am Montag, 26. Dezember 2022, 09:15:35 MEZ hat Tom Crawford <tomc...@gmail.com> Folgendes geschrieben:


Tom Crawford

unread,
Dec 26, 2022, 1:42:18 PM12/26/22
to jal...@googlegroups.com

(resent with smaller photo files...)


-------- Forwarded Message --------
Subject: Re: [jallib] AS5600
Date: Mon, 26 Dec 2022 13:34:09 -0500
From: Tom Crawford <tomc...@gmail.com>
Reply-To: tomc...@gmail.com
To: jal...@googlegroups.com


Some answers to the several questions some of you have asked; hopefully they are helpful.
First, most of my 8 bit work is with Arduino, and their IDE.  I have used PICs and JAL in the past, but not recently.

1. Cold weather:
- I do not know yet, although I believe it will work fine.  The new device has only been bench tested indoors so far.  So many projects, so little time!  Also, the new device is for the weather station parts of our Little Free Library (LFL, see https://littlefreelibrary.org/ for more info), located at the end of our driveway.  It was renovated this summer, and re-installed without the weather station or the internal computer systems, since it was getting colder, and the reno work had already taken too long.  It is now more difficult to add the items to the LFL, and to test them...
We have had a LFL for about 7 years, with Arduino Nano's, solar power, batteries, and digital radio. The system has worked near perfectly all this time, summer and winter, snow, rain, wind...
It is unfortunate I did not have this weather station outside this past week; temperatures down to about -20C, winds gusting to about 100 kph!  my location is in southern Ontario, Canada.  Some regions around us declared disaster emergencies!  We were fortunate not to lose power...

2. Outputs:
My testing has been done only with the I2C interface, and has worked very well.  I will include test code below.  I have checked that the analog output works okay, but I use only the I2C outputs for my application.

3. Wireless:
I have used the NRF24L01 transceiver module  at both remote and in-house ends, for data collection and some control, for years also.  Again, has worked very well.  A nice system to connect with Arduino Nano.  Uses SPI interface.  Have also built a NRF24L01 to Ethernet WiFi Gateway, using an ESP32 module, intended for connection to a Home Automation system (not configured yet).

4. Software:
The library I used for testing is:
https://github.com/RobTillaart/AS5600.
I also made some use of the Seeed Studio Library:
https://github.com/Seeed-Studio/Seeed_Arduino_AS5600

The simple test software I used (a modification of a SEEED studio test app) is attached as AS5600_MagDiag1.ino (open as simple text file, if you do not use the Arduino IDE for anything).  Allows easy data capture / graphical display using the Arduino IDE Serial Monitor and Serial Plotter tools.

5. System:
I see the PDF I included in an earlier post, chopped a couple of my pictures, when I modified it for smaller size...
I have attached one of these correctly, and added another pic:
1 - the LFL just prior to renovations, showing general appearance, weather station sensors, solar panels...  It is located near the road, with no connection to house power.  Other features include Neopixels,  internal LED lighting, door switches...
2 - the weather station sensors (temporarily fastened to a piece of wood for bench testing and painting), and electronics package.  The electronics and batteries (3x AA NiMH) are mounted on a wooden panel that slides into the "attic" of the LFL.  The Nanos are actually Arduino "Micros"; an ATMEGA386 pcb with no USB chip, to reduce power consumption.  You can see an external TTL - USB interface connected to one of them, for program and test.  Temperature and humidity sensors are also on this board.  Weather data, switch states, solar charge, discharge and battery state are all sent periodically over the radio link.  Local control of lighting uses the RF24L01 back channel.

Hope this little summary is helpful...
Tom






On 12/26/2022 4:56 AM, hans wrote:
Hello Tom,
Delicious, a JAL project !! That is the great strength of Arduino, practical examples.
It looks like my problem. Now my wind direction works with a Greats disc and light cells, but they are affected by the weather.
.
  That's why my question. Do you use the analog output or the spi? Do you work wirelessly? And do you also have information for me about the program?
Well, the risk if you give me an answer that I have many more questions
  I ordered a set with the magnet
  It's still fun.
regards
Hans

Op maandag 26 december 2022 om 09:15:30 UTC+1 schreef Tom:
(Resend to provide smaller attachment)
AS5600_MagDiag1.ino

hans

unread,
Dec 26, 2022, 4:40:54 PM12/26/22
to jallib
Hi Tom/ Kiste
, Thank you for your detailed response. Years ago I tried an Arduino set, but I didn't get further than a few simple examples. After my C64 and C-basic period, I don't feel like tripping over all those small changes in the language again. I'm happy to stay with JAL. I've had so much fun with it already.
I made my anemometer about fifteen years ago. I read the 16 positions with 4 light barriers and one IC shows the LEDs along a cable to our living room. . For the wind speed I adapted a bicycle spedometer.
Now there are some moisture problems and I want to make some adjustments.
I will take your experience with me in my adventure
What Kiste indicates is quite a nice thing, but according to my wife I am done much too quickly. And she is often right.
Anyway, as soon as the Chinese package arrives, I can continue.
 Happy new year and best wishes to all.
regards
Hans

Op maandag 26 december 2022 om 19:42:18 UTC+1 schreef Tom:

vsurducan

unread,
Dec 27, 2022, 2:52:04 AM12/27/22
to jal...@googlegroups.com
Hans, designing a thing to work at -20C+45C and IP67 (protected from dust and rain from all directions) is a very difficult task, even if you'll use something like Kiste pointed to ( I have the Japanese resistive version of that position sensor in 2% linearity).  One thing you should care about is the dew point.
That's because you will have humidity even in a completely closed box. The most dangerous temperature for dewpoint in my area is around +8C.
The only way you can avoid moisture problems is to immerse your PCB completely in transformer varnish ( several times, not once) and dry it each time after. Of course no more HW debugging after that.
P.S: I think your wife is right. :)
best wishes,

Oliver Seitz

unread,
Dec 27, 2022, 2:59:11 AM12/27/22
to jal...@googlegroups.com
And just there my suggestion looses its worth: You can sink your AS5600 board moisture-proof in a block of epoxy resin (including the wire ends). The magnet, nickel plated, can be moisture-proof. Magnetic coupling is one of the few environmentally independent means of data transfer.

Greets,
Kiste

Am Dienstag, 27. Dezember 2022, 08:52:06 MEZ hat vsurducan <vsur...@gmail.com> Folgendes geschrieben:


hans

unread,
Jan 4, 2023, 3:29:33 PM1/4/23
to jallib
Hello all,
Was trial and error. The first delivery was defective, the second was missing the magnet, the third works fine. I2C from Bert's book used. When the case definitions are built in I'm going to pour everything full. Thanks for your suggestions.
Hans

Op dinsdag 27 december 2022 om 08:59:11 UTC+1 schreef Kiste:

hans

unread,
Jun 24, 2023, 12:56:02 PM6/24/23
to jallib
Hello all,
In the meantime I have my wind set working with the AS5600. I had some problems with the included magnet and replaced it with a small radial bar magnet. I also made the axle from non-magnetic material. It works flawlessly.
regards
Hans

Op woensdag 4 januari 2023 om 21:29:33 UTC+1 schreef hans:
20230616_203719[1].jpg

Rob CJ

unread,
Jun 25, 2023, 5:29:20 AM6/25/23
to jallib
Hi Hans,

Very nice project!

Kind regards,

Rob


Verzonden: zaterdag 24 juni 2023 18:56
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] AS5600
 
Reply all
Reply to author
Forward
0 new messages