Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - dchcaracter

17
Project logs / Re: Magnetic rotary encoder with AS5043
Yes, have a better look at the datasheet:
- After a minimum time tCLK FE, data is latched into the output shift register with the first falling edge of CLK.
- Each subsequent rising CLK edge shifts out one bit of data.
This means that you can read data on the rising edge - it's long been latched there - since the falling one.
18
Project logs / Re: Magnetic rotary encoder with AS5043
Oh Sebastian, I believe you are so overcomplicating it. First of all, if you don't have DMA, just drag the MC pins - quicker and no haead ackes.... If you want to go for SPI - do the rising edge. You will not get corrupted data - verified. SPI works great (set it up for word transfer length, not byte). And then of course when you played enough with those useless last bytes, come to the dark side - USART :-)
19
Project logs / Re: FT232BL
If it's relevant, here's what I did for myself. Attached are schematics, board layout and pictures of an assembled device.

Features are:
-Jumper-selected slave scheme voltage: 5V or 3,3V (50mA max)
-RTS is out (with a wire cutting, can be changed to DTR)
-LEDs for Rx and Tx
-Three GPIO broken out (one has a pull-up)
-Two pinouts - one is Arduino Pro, another one I've been using for long...
20
Project logs / Re: Magnetic rotary encoder with AS5043
On SSI: I've seen quite a few technics on the net - the IC works well on serial frequencies up to 6MHz no problem. I've been also using SPI myself, but as soon as STM32 (which I used as a main board) has a buggy SPI implementation (CS is not working how it is supposed to) and thus cannot provide DMA for quering the IC, I came up with another technique.

Loosing 1 bit of resolution (512 instead of 1024 marks per revolution), I'm very well off with... USART :-) Set it up as 9 bits with hw flow support, use RTS bit (or is that CTS? don't remember really) and set up DMA should you use an MC offering this feature - and you're good to go.
21
Project logs / Re: Magnetic rotary encoder with AS5043
Hi! Please note you can't rely on multimeter when using as5043 as this is absolute angle position sensor and it heavily depends on linearity. So you have to use a scope to check if the output is linear.

I will have time to read through the article a bit later, I have some more comments about magnet positioning, but I'm not sure by now you haven't taken on that already :-)

Update: Oops, I see you used a scope - my fault, too fast to comment :-)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01222320064session_write_close ( )...(null):0
20.01252451688ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01252452464Database_MySQL->query( ).../DatabaseHandler.php:119
40.05692591224Database_MySQL->error( ).../Db-mysql.class.php:273