These are chat archives for SmingHub/Sming

11th
May 2016
zhivko
@zhivko
May 11 2016 17:55
Hey guys - I plan to integrate esp8266 sming rtos with AS5306 magnetic enoder
http://ams.com/eng/Products/Magnetic-Position-Sensors/Linear-Position/AS5306
check my video of sensor in action https://plus.google.com/+KlemenZhivko/posts/bPLBHJdDY9Q ;)
it is still not integrated with sming - would need interrupt functionality to count those ticks
is there some interrupt example?
this sensor should give 15um precission
hreintke
@hreintke
May 11 2016 19:58
@zhivko :
There is a basic_interrupts example within SmingRTOS
hreintke
@hreintke
May 11 2016 20:03
@alon24 :
Did you see correct communication with the mcp23017 ?
F.e. scannerI2C discover the mcp ?
alon24
@alon24
May 11 2016 20:08
yes it does
0x20
hreintke
@hreintke
May 11 2016 20:25
Any specific reason why you use readGPIO vs digitalRead ?
alon24
@alon24
May 11 2016 20:37
I wanted all the gpios at once
I think thats how I do that, right?
hreintke
@hreintke
May 11 2016 20:44
Correct, should be no difference but I used digitalRead.
In your output you see pins updating. How do you know which update is correct or not
zhivko
@zhivko
May 11 2016 21:13
@hreintke: interrupts works - and function is intuitive.. so actually it was just copy paste of arduino code