MPU6050 Accelerometer Gyro Temperature icon MPU6050 Accelerometer Gyro Temperature — Reads MPU6050 gyro, accelerometer and temperature via I2C, initializes and returns data on-demand to EZ-Script variables using ControlCommand RunOnce Try it →

ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

Author Avatar
United Kingdom
YouTube
#9  

@nomad.

Email received.:)

Author Avatar
Gibraltar
#10  

@SteveG this is exactly what I was looking for but I copied and paste #Servo move up If(getservo(D9>140) Servoup(D9,10) Endif Sleep(100) and all the other directions to my project and get this
Start 2: If(getservo(D9>140)

Error on line 2: Missing ) in Expression Done (00:00:00.0170161) what am I missing coz I can't get my old head around coding

#11  

@bborastero if it is this line below, there was a missing brace.... If(getservo(D9>140) should be


If(getservo(D9)>140)
Author Avatar
United Kingdom
YouTube
#12  

@bborastero.

Yep, looks like Richard got it. That should get you fixed up.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#13  

Do not modify the code for the camera.

Simply press the button direction that you would like to move the head. Press it again to stop moving.