i would not say that, the code given will never work and has at least three fundamental flawsAnd it finally got it!!! Amazing... this thing is indeed learning!
number one the i2c address is incorrect
i would not say that, the code given will never work and has at least three fundamental flawsAnd it finally got it!!! Amazing... this thing is indeed learning!
number one the i2c address is incorrect
Warning I'm not a teacher
Number two: With angle being 16bits and the raw value returned by the sensor ranging between 0 and 4095 this will not work great:Code:' Convert angle to degrees (angle is 0-4095 representing 0-360 degrees) angle = (angle * 360) / 4096
Both of you are absolutely right, but I was referring to the Variables definition, that were always defined wrong. Now it got it right.
I am convinced that it is getting better every time and maybe after a few months, it will correct those mistakes too.
And in general does not define the various FSR's unless you strictly ask it to do so.
Ioannis
not at all , when you see fundamental errors like thisI am convinced that it is getting better every time
if the read angle moves by 1 bit count in-between the reads then the read position error could up to +- 45 degrees [256 counts]Code:' Read the high byte of the angle register I2CREAD AS5600_ADDR, AS5600_ANGLE_H, [angleH] PAUSE 10 ' Read the low byte of the angle register I2CREAD AS5600_ADDR, AS5600_ANGLE_L, [angleL] PAUSE 10
pbp i2c is glacially slow a 10ms pause in between reads wtf!, its just nonsense
Warning I'm not a teacher
Definetly will not take the job of software engineers in the near future. But it is getting better. And I suspect the free version is not that good for obvious reasons.
But paid AI does incredible job in other fields, like voice, image and video processing, that by definition is more complex than a I2C transaction. That is why I believe it can do much better that this PAUSE 10...!!!
Don't forget also that we are all beta testers and at the same time teachers of this beast...
Ioannis
Bookmarks