Skip to content

API

Team Bytes

Byte Function
AZ Start
YB Stop
Custom Identifiers Byte
Shon Ha h
Maximus Mathews m
Rohan Fernandez f
Shelton Larance l

Messages Passed on

Message Type 1 (Wifi Toggle - Auto/Manual)

Used to toggle stepper motor from automatic (state 0) to manual (state 1).

Byte 1 Byte 2
Variable Name mode mode_toggle
Variable Type char char
Min Value M 0
Max Value M 1
Example M 1

Message Type 4 (Button - digital signal)

Used to manually control stepper motors from left to right. It has two states (0) and (1) to determine if the button has been pressed.

Byte 1 Byte 2 Byte 3 Byte 4
Variable Name button_left button_left_toggle button_right button_right_toggle
Variable Type char char char char
Min Value L 0 R 0
Max Value L 1 R 1
Example L 0 R 1

Messages Sent

Message Type 2 (Optical Sensor Readings)

The light levels will be sent to the motor subsystem to automatically control the solar cell to face the most optimal position to generate power. The readings will have a range of lux between 0-9999.

Byte 1-2 Byte 3-6 Byte 7-8 Byte 9-12
Variable Name sensor_one L1_Reading sensor_two L2_Reading
Variable Type char char char char
Min Value S1 0000 S2 0000
Max Value S1 9999 S2 9999
Example S1 3567 S2 2343

Example Message

Message
Received AZmhM1L1R1YB
Sent AZmhM1S13452S27865L1R1YB