ArduBlock Blocks

A Full List of Ardublock Blocks for Sparki

Ardublock
Easy

Lessons You Should Know

Sparki Sensors

These blocks move Sparki’s wheels, grippers, and head

Accelerometer

Measures, in ‘Gs’, the value of the Accelerometer’s…

X Axis

Y Axis

Z Axis

Infrared Reflectance

Measures the value, between 0 and 1024, of the amount of light being reflected by the infrared reflectance sensor on the…

Left Edge Sensor

Left Line Sensor

Center Line Sensor

Right Line Sensor

Right Edge Sensor

Light Sensor

Measures the amount of light, between 0 and 1024, hitting the light sensor on front..

Left

Center

Right

Magnetometer

Measures the value of the Magnetometer’s…

X Axis

Y Axis

Z Axis

IR Remote Control

Reads the last IR remote control code sent to Sparki

Ultrasonic Distance

Measures the distance, in centimeters, of the distance from the front of the sensor to the nearest object

Moving Sparki

These blocks move Sparki’s wheels, grippers, and head

Wheels

Sparki moves by the value amount in centimeters for distance, or degrees for values. Using zero as the value will keep Sparki moving.

AB_Block_Move_Forward

Move Forward

AB_Block_Move_Backward

Move Backward

Move Left

Move Right

Sparki stops all movement of its wheels.

AB_Block_Move_Stop

Grippers

Sparki moves its grippers in centimeters by the amount of the value. Using zero as the value will keep the gripper moving.

Open Grippers

Close Grippers

Sparki stops moving its grippers

AB_Block_Stop_Gripper

Head

Sparki tilts its head according to the angle value used

AB_Block_Head_Servo

Sparki Outputs

Beep

Sparki beeps using the frequency value used, for the milliseconds value used

AB_Block_Beep

IR Send

Sparki flashes it’s IR LEDs coded as the value

AB_Block_IR_Send

RGB

Sparki lights up the RGB LED’s brightness based on the three values

AB_Block_RGB

Status LED

Sparki adjusts its status LED’s brightness based on the value

AB_Block_Status

Sparki Communications

Serial Print

Sparki writes the value to it’s USB serial port

AB_Block_Serial_Print

Serial Read

Sparki reads the value from it’s USB serial port

AB_Block_Serial_Read