What's wrong with my code?
Hello everyone,
I was just wondering why this piece of code is not working.
The code get uploaded normally to arduino
But when I move the gyroscope it just give me random values of X & Y & Z
Im expecting 0,0, variable...
I checked the connection and it was correct
I thought either the sensor is broken or the code is wrong,
I'm using it to measure the acceleration of a moving object
Any ideas??
`
11 Replies
HI 👋 can you try this :
the problem is that you didn't call your function on the loop
@aymen ammari
^^
Oh!
I didn't notice it.
you call it on your setup function
I will try this one as it is
yep
Could you tag me next time, I didn't see the message 😅
yes sure sorry
Thank you so much @Nayel
no problem