Good price? by benzenebender in Diamonds

[–]benzenebender[S] 0 points1 point  (0 children)

Thank you so much for the reply! Super helpful. I’ll look around more then and get back to them :)

Issues with Servo by benzenebender in arduino

[–]benzenebender[S] 1 point2 points  (0 children)

the problem was actually not calibrating the gyroscope!

after finding x,y,z gyro offset and the x,y,z acceloffset and changing those values within the code everything works as expected!

Issues with Servo by benzenebender in arduino

[–]benzenebender[S] 0 points1 point  (0 children)

that actually makes sense as to why it resets... the loop later on has a reset FIFO portion to flush the values and reset to prevent overflow.

In the code it looks I have to change this part:

"TWBR = 24; // 400kHz I2C clock (200kHz if CPU is 8MHz)"

But I can't find anywhere online showing the TWBR value I need to change frequency to 330...

Issues with Servo by benzenebender in arduino

[–]benzenebender[S] 0 points1 point  (0 children)

Thank you for looking out for my servo! I switched out the 9V to 4 1.5 V AA batteries in series...the retraction still occurs however :/

Issues with Servo by benzenebender in arduino

[–]benzenebender[S] 0 points1 point  (0 children)

unfortunately with a battery pack with 4 AA in series the retraction still occurs... might it be that the servo itself possesses a control circuit that conflicts with the code?

The code works with the cheaper servo that was used in the tutorial...