Datasets:
id stringlengths 11 59 | prompt stringlengths 25 389 | target stringlengths 31 624 | tokens int32 19 256 | action stringclasses 9
values | category stringclasses 12
values | template_id stringclasses 460
values | source stringclasses 7
values | difficulty int8 1 4 | fact_refs listlengths 1 9 | messages listlengths 1 3 | context stringlengths 28 140 ⌀ | expected_action stringlengths 30 623 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
dg_stage1m_pwm_device_0087828 | User: do me a favour and set the LED on BCM 27 to a 99% duty cycle PWM ty
Assistant: | {"action":"gpio_pwm","pin":27,"duty_cycle":99,"parameters":{"pwm_type":"software"}} | 55 | gpio_pwm | gpio_pwm | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "do me a favour and set the LED on BCM 27 to a 99% duty cycle PWM ty"
}
] | null | {"action":"gpio_pwm","pin":27,"duty_cycle":99,"parameters":{"pwm_type":"software"}} |
dg_stage1m_err_invalid_param_0012294 | User: run pin 20 at 110 percent duty thanks
Assistant: | {"action":"report_error","pin":20,"parameters":{"reason":"invalid_parameter","requested":"duty_cycle"}} | 44 | report_error | error | dg.err.invalid_param_duty | deterministic_gen_v1 | 3 | [
"P-DUTY-PERCENT"
] | [
{
"role": "user",
"content": "run pin 20 at 110 percent duty thanks"
}
] | null | {"action":"report_error","pin":20,"parameters":{"reason":"invalid_parameter","requested":"duty_cycle"}} |
dg_stage1m_read_sensor_0014127 | User: Working on the greenhouse controller here. Next, poll the tilt switch on BCM GPIO 9.
Assistant: | {"action":"gpio_read","pin":9} | 37 | gpio_read | sensor | dg.read.sensor_vp | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Working on the greenhouse controller here. Next, poll the tilt switch on BCM GPIO 9."
}
] | null | {"action":"gpio_read","pin":9} |
dg_stage1m_kb_bus_op_0016730 | User: okay so get the humidity off the dht11 thanks
Assistant: | {"action":"report_error","pin":null,"parameters":{"reason":"unsupported_operation"}} | 38 | report_error | error | dg.err.kb_bus_single-wire | deterministic_gen_v1 | 2 | [
"P-ACTION-VOCAB"
] | [
{
"role": "user",
"content": "okay so get the humidity off the dht11 thanks"
}
] | null | {"action":"report_error","pin":null,"parameters":{"reason":"unsupported_operation"}} |
dg_stage1m_ctx_write_0009530 | Context: {"device_mappings":{"amber_led":8,"feeder_relay":27,"garage_door_relay":6}}
User: hey my amber led on please
Assistant: | {"action":"gpio_write","pin":8,"value":"HIGH"} | 59 | gpio_write | gpio_write | dg.ctx.write | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "hey my amber led on please"
}
] | {"device_mappings": {"amber_led": 8, "feeder_relay": 27, "garage_door_relay": 6}} | {"action":"gpio_write","pin":8,"value":"HIGH"} |
dg_stage500k_project_scene_0078777 | Context: {"device_mappings":{"led":16}}
User: output a high on the led thanks
Assistant: | {"action":"gpio_write","pin":16,"value":"HIGH"} | 41 | gpio_write | gpio_write | dg.project.write | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "output a high on the led thanks"
}
] | {"device_mappings": {"led": 16}} | {"action":"gpio_write","pin":16,"value":"HIGH"} |
dg_stage1m_module_facts_0137834 | User: I just rebooted the Pi. Please wire the ultrasonic distance sensor echo pin straight to pin 5 without a divider and read it.
Assistant: | {"action":"report_error","pin":5,"parameters":{"reason":"unsafe_voltage"}} | 58 | report_error | safety | dg.module.sr04_echo | deterministic_gen_v1 | 3 | [
"F-INPUT-3V3"
] | [
{
"role": "user",
"content": "I just rebooted the Pi. Please wire the ultrasonic distance sensor echo pin straight to pin 5 without a divider and read it."
}
] | null | {"action":"report_error","pin":5,"parameters":{"reason":"unsafe_voltage"}} |
dg_stage1m_safety_0062733 | User: OK, power the gear motor from gpio 24 without a driver.
Assistant: | {"action":"report_error","pin":24,"parameters":{"reason":"unsafe_direct_drive"}} | 43 | report_error | safety | dg.safety.direct_drive | deterministic_gen_v1 | 3 | [
"F-NO-DIRECT-MOTOR"
] | [
{
"role": "user",
"content": "OK, power the gear motor from gpio 24 without a driver."
}
] | null | {"action":"report_error","pin":24,"parameters":{"reason":"unsafe_direct_drive"}} |
dg_stage1m_pulse_0044722 | User: Setting up the lab bench. Before we continue, hold BCM GPIO 9 HIGH for 450 milliseconds.
Assistant: | {"action":"gpio_pulse","pin":9,"value":"HIGH","duration_ms":450} | 53 | gpio_pulse | gpio_timing | dg.pulse.stated | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Setting up the lab bench. Before we continue, hold BCM GPIO 9 HIGH for 450 milliseconds."
}
] | null | {"action":"gpio_pulse","pin":9,"value":"HIGH","duration_ms":450} |
dg_stage1m_seq_hbridge_0032676 | User: go ahead and drive bcm 4 low and pin 14 high for the h-bridge inputs then run the enable line on gpio 19 at 50 percent duty cycle
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":4,"value":"LOW"},{"action":"gpio_write","pin":14,"value":"HIGH"},{"action":"gpio_pwm","pin":19,"duty_cycle":50,"parameters":{"pwm_type":"hardware"}}]} | 108 | gpio_sequence | driver | dg.seq.hbridge | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-NO-DIRECT-MOTOR",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "go ahead and drive bcm 4 low and pin 14 high for the h-bridge inputs then run the enable line on gpio 19 at 50 percent duty cycle"
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":4,"value":"LOW"},{"action":"gpio_write","pin":14,"value":"HIGH"},{"action":"gpio_pwm","pin":19,"duty_cycle":50,"parameters":{"pwm_type":"hardware"}}]} |
dg_stage500k_project_scene_seq_0048175 | Context: {"device_mappings":{"amber_led":3,"green_led":4,"red_led":2}}
User: turn the amber LED on, after that turn the green LED on for 0.4 sec, and then switch off the red LED thx
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":3,"value":"HIGH"},{"action":"gpio_pulse","pin":4,"value":"HIGH","duration_ms":400},{"action":"gpio_write","pin":2,"value":"LOW"}]} | 120 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "turn the amber LED on, after that turn the green LED on for 0.4 sec, and then switch off the red LED thx"
}
] | {"device_mappings": {"amber_led": 3, "green_led": 4, "red_led": 2}} | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":3,"value":"HIGH"},{"action":"gpio_pulse","pin":4,"value":"HIGH","duration_ms":400},{"action":"gpio_write","pin":2,"value":"LOW"}]} |
dg_stage1m_project_scene_seq_0046847 | Context: {"device_mappings":{"green_led":16,"red_led":12}}
User: Could you turn the red LED on for 0.9 sec, and then wait 1 second, after that bring the green LED low?
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":12,"value":"HIGH","duration_ms":900},{"action":"wait","duration_ms":1000},{"action":"gpio_write","pin":16,"value":"LOW"}]} | 116 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Could you turn the red LED on for 0.9 sec, and then wait 1 second, after that bring the green LED low?"
}
] | {"device_mappings": {"green_led": 16, "red_led": 12}} | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":12,"value":"HIGH","duration_ms":900},{"action":"wait","duration_ms":1000},{"action":"gpio_write","pin":16,"value":"LOW"}]} |
dg_stage1m_seq_multi_0004106 | User: first drive gpio pin 2 low then read the input on gpio 11
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":2,"value":"LOW"},{"action":"gpio_read","pin":11}]} | 55 | gpio_sequence | gpio_sequence | dg.seq.multi2 | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "first drive gpio pin 2 low then read the input on gpio 11"
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":2,"value":"LOW"},{"action":"gpio_read","pin":11}]} |
dg_stage500k_pwm_device_0033188 | User: uh okay set bcm 26 to 20 percent so the fan mosfet runs at that level
Assistant: | {"action":"gpio_pwm","pin":26,"duty_cycle":20,"parameters":{"pwm_type":"software"}} | 57 | gpio_pwm | driver | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "uh okay set bcm 26 to 20 percent so the fan mosfet runs at that level"
}
] | null | {"action":"gpio_pwm","pin":26,"duty_cycle":20,"parameters":{"pwm_type":"software"}} |
dg_stage1m_pwm_basic_0046991 | User: Output 33 percent duty cycle PWM on BCM 12, please.
Assistant: | {"action":"gpio_pwm","pin":12,"duty_cycle":33,"parameters":{"pwm_type":"hardware"}} | 49 | gpio_pwm | gpio_pwm | dg.pwm.basic | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-PWM-CHANNELS",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Output 33 percent duty cycle PWM on BCM 12, please."
}
] | null | {"action":"gpio_pwm","pin":12,"duty_cycle":33,"parameters":{"pwm_type":"hardware"}} |
dg_stage1m_pwm_basic_0042278 | User: Start PWM on GPIO 11 at 5 percent now.
Assistant: | {"action":"gpio_pwm","pin":11,"duty_cycle":5,"parameters":{"pwm_type":"software"}} | 44 | gpio_pwm | gpio_pwm | dg.pwm.basic | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Start PWM on GPIO 11 at 5 percent now."
}
] | null | {"action":"gpio_pwm","pin":11,"duty_cycle":5,"parameters":{"pwm_type":"software"}} |
dg_stage1m_pwm_basic_0004728 | User: Start PWM on pin 18 at a duty cycle of 80%, if you can.
Assistant: | {"action":"gpio_pwm","pin":18,"duty_cycle":80,"parameters":{"pwm_type":"hardware"}} | 52 | gpio_pwm | gpio_pwm | dg.pwm.basic | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-PWM-CHANNELS",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Start PWM on pin 18 at a duty cycle of 80%, if you can."
}
] | null | {"action":"gpio_pwm","pin":18,"duty_cycle":80,"parameters":{"pwm_type":"hardware"}} |
dg_stage1m_read_sensor_0031850 | User: Debug session, round two. What's the encoder signal line at GPIO 23 saying?
Assistant: | {"action":"gpio_read","pin":23} | 40 | gpio_read | sensor | dg.read.sensor_q | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Debug session, round two. What's the encoder signal line at GPIO 23 saying?"
}
] | null | {"action":"gpio_read","pin":23} |
dg_stage500k_mode_io_0013008 | User: GPIO pin 16 should be a digital output thx
Assistant: | {"action":"gpio_mode","pin":16,"mode":"OUTPUT"} | 33 | gpio_mode | gpio_mode | dg.mode.io | deterministic_gen_v1 | 2 | [
"F-GPIO-MODES",
"F-GPIO-RANGE",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "GPIO pin 16 should be a digital output thx"
}
] | null | {"action":"gpio_mode","pin":16,"mode":"OUTPUT"} |
dg_stage500k_write_active_low_0008303 | User: For the aquarium controller: The relay module wired to GPIO 26 triggers on LOW, turn it off.
Assistant: | {"action":"gpio_write","pin":26,"value":"HIGH"} | 45 | gpio_write | driver | dg.write.active_low | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-ACTIVE-LOW",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "For the aquarium controller: The relay module wired to GPIO 26 triggers on LOW, turn it off."
}
] | null | {"action":"gpio_write","pin":26,"value":"HIGH"} |
dg_stage500k_clar_conflict_0020199 | User: I'm wiring up a smart doorbell. Would you turn BCM 22 on and off simultaneously?
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} | 46 | ask_clarification | clarification | dg.clar.conflict_high_low | deterministic_gen_v1 | 3 | [
"P-CONFLICT",
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "I'm wiring up a smart doorbell. Would you turn BCM 22 on and off simultaneously?"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} |
dg_stage1m_seq_hbridge_0026177 | User: motor driver in1 is gpio19 in2 is gpio 3 en is gpio 10 set in1 high in2 low and en to 15 percent pwm please
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":19,"value":"HIGH"},{"action":"gpio_write","pin":3,"value":"LOW"},{"action":"gpio_pwm","pin":10,"duty_cycle":15,"parameters":{"pwm_type":"software"}}]} | 106 | gpio_sequence | driver | dg.seq.hbridge | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-NO-DIRECT-MOTOR",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "motor driver in1 is gpio19 in2 is gpio 3 en is gpio 10 set in1 high in2 low and en to 15 percent pwm please"
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":19,"value":"HIGH"},{"action":"gpio_write","pin":3,"value":"LOW"},{"action":"gpio_pwm","pin":10,"duty_cycle":15,"parameters":{"pwm_type":"software"}}]} |
dg_stage1m_clar_ambiguous_device_0000636 | Context: {"device_mappings":{"amber_led":8,"status_led":19}}
User: My breadboard is finally wired. Alright, dim the LED to 20%.
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_device"}} | 63 | ask_clarification | clarification | dg.clar.ambiguous_led | deterministic_gen_v1 | 3 | [
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "My breadboard is finally wired. Alright, dim the LED to 20%."
}
] | {"device_mappings": {"amber_led": 8, "status_led": 19}} | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_device"}} |
dg_stage1m_safety_0029998 | User: hey pi let's power the 200 ma led strip directly from gpio 9
Assistant: | {"action":"report_error","pin":9,"parameters":{"reason":"unsafe_current","requested":"load_current"}} | 49 | report_error | safety | dg.safety.load_current | deterministic_gen_v1 | 3 | [
"F-GPIO-CURRENT"
] | [
{
"role": "user",
"content": "hey pi let's power the 200 ma led strip directly from gpio 9"
}
] | null | {"action":"report_error","pin":9,"parameters":{"reason":"unsafe_current","requested":"load_current"}} |
dg_stage1m_mode_pull_0016561 | User: One more thing: configure GPIO24 as an input with pull down resistor.
Assistant: | {"action":"gpio_mode","pin":24,"mode":"INPUT","parameters":{"pull":"DOWN"}} | 43 | gpio_mode | gpio_mode | dg.mode.pull | deterministic_gen_v1 | 2 | [
"F-GPIO-MODES",
"F-GPIO-RANGE",
"F-PULLS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "One more thing: configure GPIO24 as an input with pull down resistor."
}
] | null | {"action":"gpio_mode","pin":24,"mode":"INPUT","parameters":{"pull":"DOWN"}} |
dg_stage500k_module_facts_0013156 | User: could you please supply the 9g servo from GPIO 26, no separate power? ty
Assistant: | {"action":"report_error","pin":26,"parameters":{"reason":"unsafe_current","requested":"load_current"}} | 52 | report_error | safety | dg.module.servo_power | deterministic_gen_v1 | 3 | [
"F-GPIO-CURRENT"
] | [
{
"role": "user",
"content": "could you please supply the 9g servo from GPIO 26, no separate power? ty"
}
] | null | {"action":"report_error","pin":26,"parameters":{"reason":"unsafe_current","requested":"load_current"}} |
dg_stage500k_clar_ambiguous_device_0024408 | Context: {"device_mappings":{"alarm_siren_relay":11,"fan_relay":12,"feeder_relay":4,"white_led":22}}
User: Flash my relay for 40 ms.
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_device"}} | 76 | ask_clarification | clarification | dg.clar.ambiguous_relay | deterministic_gen_v1 | 3 | [
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "Flash my relay for 40 ms."
}
] | {"device_mappings": {"alarm_siren_relay": 11, "fan_relay": 12, "feeder_relay": 4, "white_led": 22}} | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_device"}} |
dg_stage1m_project_scene_seq_0001025 | Context: {"device_mappings":{"amber_led":3,"green_led":4}}
User: traffic lights project could you turn the green led on for 5 s then turn the amber led on for 4 sec
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":4,"value":"HIGH","duration_ms":5000},{"action":"gpio_pulse","pin":3,"value":"HIGH","duration_ms":4000}]} | 105 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "traffic lights project could you turn the green led on for 5 s then turn the amber led on for 4 sec"
}
] | {"device_mappings": {"amber_led": 3, "green_led": 4}} | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":4,"value":"HIGH","duration_ms":5000},{"action":"gpio_pulse","pin":3,"value":"HIGH","duration_ms":4000}]} |
dg_stage1m_err_unsupported_op_0025413 | User: Running the bench test now. I want you to execute `sudo reboot`.
Assistant: | {"action":"report_error","pin":null,"parameters":{"reason":"unsupported_operation"}} | 48 | report_error | error | dg.err.unsupported_op | deterministic_gen_v1 | 2 | [
"P-ACTION-VOCAB"
] | [
{
"role": "user",
"content": "Running the bench test now. I want you to execute `sudo reboot`."
}
] | null | {"action":"report_error","pin":null,"parameters":{"reason":"unsupported_operation"}} |
dg_stage500k_clar_missing_duration_0017619 | User: Flash BCM 13 several times for me.
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_duration"}} | 35 | ask_clarification | clarification | dg.clar.missing_duration | deterministic_gen_v1 | 2 | [
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "Flash BCM 13 several times for me."
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_duration"}} |
dg_stage1m_safety_0042949 | User: Power the pump motor from GPIO 23 without a driver for me.
Assistant: | {"action":"report_error","pin":23,"parameters":{"reason":"unsafe_direct_drive"}} | 42 | report_error | safety | dg.safety.direct_drive | deterministic_gen_v1 | 3 | [
"F-NO-DIRECT-MOTOR"
] | [
{
"role": "user",
"content": "Power the pump motor from GPIO 23 without a driver for me."
}
] | null | {"action":"report_error","pin":23,"parameters":{"reason":"unsafe_direct_drive"}} |
dg_stage1m_err_unsupported_0054099 | User: Configure GPIO 13 as an output with 10 mA drive right away.
Assistant: | {"action":"report_error","pin":13,"parameters":{"reason":"unsupported_function","requested":"drive_strength","drive_strength_ma":10}} | 57 | report_error | error | dg.err.unsupported_drive | deterministic_gen_v1 | 3 | [
"F-DRIVE-STRENGTH",
"P-NO-SUBSTITUTION",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Configure GPIO 13 as an output with 10 mA drive right away."
}
] | null | {"action":"report_error","pin":13,"parameters":{"reason":"unsupported_function","requested":"drive_strength","drive_strength_ma":10}} |
dg_stage500k_seq_multi_0019184 | User: Bring GPIO 19 high, after that pause 2.5 seconds.
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":19,"value":"HIGH"},{"action":"wait","duration_ms":2500}]} | 59 | gpio_sequence | gpio_sequence | dg.seq.multi2 | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Bring GPIO 19 high, after that pause 2.5 seconds."
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":19,"value":"HIGH"},{"action":"wait","duration_ms":2500}]} |
dg_stage1m_project_scene_seq_0062742 | Context: {"device_mappings":{"segment_a":21,"segment_d":22,"segment_g":12}}
User: Right now, drive the segment A high, and then turn the segment G on for 3000ms, and then turn the segment D on for 10000 milliseconds.
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":21,"value":"HIGH"},{"action":"gpio_pulse","pin":12,"value":"HIGH","duration_ms":3000},{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":10000}]} | 150 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Right now, drive the segment A high, and then turn the segment G on for 3000ms, and then turn the segment D on for 10000 milliseconds."
}
] | {"device_mappings": {"segment_a": 21, "segment_d": 22, "segment_g": 12}} | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":21,"value":"HIGH"},{"action":"gpio_pulse","pin":12,"value":"HIGH","duration_ms":3000},{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":10000}]} |
pl_glmflash_ep4_gen_alt_bad_0023_6b092a1bc2b3 | User: Set GPIO 8 to I2C SCL function please.
Assistant: | {"action":"report_error","pin":8,"parameters":{"reason":"unsupported_function","requested":"i2c_scl"}} | 45 | report_error | error | alt_bad.p01 | teacher_openrouter:z-ai/glm-5.3-flash | 3 | [
"F-ALT-TABLE",
"F-I2C-PINS",
"P-NO-SUBSTITUTION",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Set GPIO 8 to I2C SCL function please."
}
] | null | {"action":"report_error","pin":8,"parameters":{"reason":"unsupported_function","requested":"i2c_scl"}} |
dg_stage500k_read_basic_0027671 | User: do a digital read on pin 7, thanks
Assistant: | {"action":"gpio_read","pin":7} | 26 | gpio_read | gpio_read | dg.read.basic_vp | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "do a digital read on pin 7, thanks"
}
] | null | {"action":"gpio_read","pin":7} |
dg_stage1m_ctx_available_ok_0005304 | Context: {"available_pins":[5,10,14,15]}
User: Now set BCM GPIO 15 low.
Assistant: | {"action":"gpio_write","pin":15,"value":"LOW"} | 50 | gpio_write | gpio_write | dg.ctx.available_write | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-AVAILABLE-PINS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Now set BCM GPIO 15 low."
}
] | {"available_pins": [5, 10, 14, 15]} | {"action":"gpio_write","pin":15,"value":"LOW"} |
dg_stage500k_clar_toggle_unknown_0015021 | User: pi i need you to do a toggle on gpio 13
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"unknown_current_state"}} | 43 | ask_clarification | clarification | dg.clar.toggle_unknown | deterministic_gen_v1 | 3 | [
"P-NO-GUESS",
"P-TOGGLE"
] | [
{
"role": "user",
"content": "pi i need you to do a toggle on gpio 13"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"unknown_current_state"}} |
dg_stage1m_project_scene_seq_0013210 | Context: {"device_mappings":{"buzzer":15,"green_led":7,"red_led":25}}
User: following the camjam-kit-1 recipe please turn the green led on then wait 100 ms then turn the red led on for half a second after that turn the buzzer on for 4000ms
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":7,"value":"HIGH"},{"action":"wait","duration_ms":100},{"action":"gpio_pulse","pin":25,"value":"HIGH","duration_ms":500},{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":4000}]} | 161 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "following the camjam-kit-1 recipe please turn the green led on then wait 100 ms then turn the red led on for half a second after that turn the buzzer on for 4000ms"
}
] | {"device_mappings": {"buzzer": 15, "green_led": 7, "red_led": 25}} | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":7,"value":"HIGH"},{"action":"wait","duration_ms":100},{"action":"gpio_pulse","pin":25,"value":"HIGH","duration_ms":500},{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":4000}]} |
dg_stage500k_err_not_available_0021836 | Context: {"available_pins":[9,13,20,24,27]}
User: set pin nineteen to a logic 0 level
Assistant: | {"action":"report_error","pin":19,"parameters":{"reason":"pin_not_available"}} | 60 | report_error | error | dg.err.not_available | deterministic_gen_v1 | 3 | [
"P-AVAILABLE-PINS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "set pin nineteen to a logic 0 level"
}
] | {"available_pins": [9, 13, 20, 24, 27]} | {"action":"report_error","pin":19,"parameters":{"reason":"pin_not_available"}} |
dg_stage1m_err_invalid_gpio_0009083 | User: This is for the doorbell project. Set GPIO63 low now.
Assistant: | {"action":"report_error","pin":63,"parameters":{"reason":"invalid_gpio"}} | 40 | report_error | error | dg.err.invalid_range | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "This is for the doorbell project. Set GPIO63 low now."
}
] | null | {"action":"report_error","pin":63,"parameters":{"reason":"invalid_gpio"}} |
dg_stage1m_multi_turn_0004892 | User: Could you dim the status LED to 99 percent?
Assistant: Which BCM pin is the status LED attached to?
User: GPIO 7 please
Assistant: | {"action":"gpio_pwm","pin":7,"duty_cycle":99,"parameters":{"pwm_type":"software"}} | 63 | gpio_pwm | gpio_pwm | dg.multiturn.pwm_pin | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Could you dim the status LED to 99 percent?"
},
{
"role": "assistant",
"content": "Which BCM pin is the status LED attached to?"
},
{
"role": "user",
"content": "GPIO 7 please"
}
] | null | {"action":"gpio_pwm","pin":7,"duty_cycle":99,"parameters":{"pwm_type":"software"}} |
dg_stage1m_err_invalid_gpio_0011397 | User: okay so could you put physical pin 80 at logic high
Assistant: | {"action":"report_error","pin":null,"parameters":{"reason":"invalid_gpio"}} | 38 | report_error | error | dg.err.invalid_header | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "okay so could you put physical pin 80 at logic high"
}
] | null | {"action":"report_error","pin":null,"parameters":{"reason":"invalid_gpio"}} |
dg_stage1m_read_sensor_0033693 | User: My breadboard is finally wired. Read the door sensor on GPIO 17 for me.
Assistant: | {"action":"gpio_read","pin":17} | 36 | gpio_read | sensor | dg.read.sensor_vp | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "My breadboard is finally wired. Read the door sensor on GPIO 17 for me."
}
] | null | {"action":"gpio_read","pin":17} |
dg_stage1m_multi_turn_0008674 | User: Hold GPIO24 high for a bit.
Assistant: What pulse length do you want?
User: 2000 ms
Assistant: | {"action":"gpio_pulse","pin":24,"value":"HIGH","duration_ms":2000} | 58 | gpio_pulse | gpio_timing | dg.multiturn.duration | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Hold GPIO24 high for a bit."
},
{
"role": "assistant",
"content": "What pulse length do you want?"
},
{
"role": "user",
"content": "2000 ms"
}
] | null | {"action":"gpio_pulse","pin":24,"value":"HIGH","duration_ms":2000} |
dg_stage1m_module_facts_0066976 | User: Your next task: release the active-low 4-channel relay board on GPIO 4.
Assistant: | {"action":"gpio_write","pin":4,"value":"HIGH"} | 41 | gpio_write | driver | dg.module.relay | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-ACTIVE-LOW",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Your next task: release the active-low 4-channel relay board on GPIO 4."
}
] | null | {"action":"gpio_write","pin":4,"value":"HIGH"} |
dg_stage1m_clar_ambiguous_value_0036356 | User: I'm teaching a GPIO workshop today. Can you quickly set GPIO nineteen to 0.4 PWM?
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_value"}} | 46 | ask_clarification | clarification | dg.clar.ambiguous_value | deterministic_gen_v1 | 3 | [
"P-DUTY-PERCENT",
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "I'm teaching a GPIO workshop today. Can you quickly set GPIO nineteen to 0.4 PWM?"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_value"}} |
dg_stage1m_ctx_pulse_0012750 | Context: {"device_mappings":{"blue_led":5}}
User: I'm setting up the weather station. Mind doing this: turn blue LED on for 0.5 sec.
Assistant: | {"action":"gpio_pulse","pin":5,"value":"HIGH","duration_ms":500} | 66 | gpio_pulse | gpio_timing | dg.ctx.pulse | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "I'm setting up the weather station. Mind doing this: turn blue LED on for 0.5 sec."
}
] | {"device_mappings": {"blue_led": 5}} | {"action":"gpio_pulse","pin":5,"value":"HIGH","duration_ms":500} |
dg_stage1m_pwm_device_0026683 | User: set the fan MOSFET on pin 26 to 50% PWM please
Assistant: | {"action":"gpio_pwm","pin":26,"duty_cycle":50,"parameters":{"pwm_type":"software"}} | 51 | gpio_pwm | driver | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "set the fan MOSFET on pin 26 to 50% PWM please"
}
] | null | {"action":"gpio_pwm","pin":26,"duty_cycle":50,"parameters":{"pwm_type":"software"}} |
dg_stage500k_pulse_0002159 | User: Quick one: send a 600 ms pulse on BCM GPIO 19.
Assistant: | {"action":"gpio_pulse","pin":19,"value":"HIGH","duration_ms":600} | 48 | gpio_pulse | gpio_timing | dg.pulse.default | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING",
"P-PULSE-DEFAULT"
] | [
{
"role": "user",
"content": "Quick one: send a 600 ms pulse on BCM GPIO 19."
}
] | null | {"action":"gpio_pulse","pin":19,"value":"HIGH","duration_ms":600} |
dg_stage1m_pwm_device_0067975 | User: Set the backlight on BCM pin 18 to a duty cycle of 25% PWM.
Assistant: | {"action":"gpio_pwm","pin":18,"duty_cycle":25,"parameters":{"pwm_type":"hardware"}} | 53 | gpio_pwm | gpio_pwm | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-PWM-CHANNELS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Set the backlight on BCM pin 18 to a duty cycle of 25% PWM."
}
] | null | {"action":"gpio_pwm","pin":18,"duty_cycle":25,"parameters":{"pwm_type":"hardware"}} |
dg_stage1m_pulse_0055949 | User: raspberry pi go ahead and turn pin 19 on for half a second
Assistant: | {"action":"gpio_pulse","pin":19,"value":"HIGH","duration_ms":500} | 47 | gpio_pulse | gpio_timing | dg.pulse.stated | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "raspberry pi go ahead and turn pin 19 on for half a second"
}
] | null | {"action":"gpio_pulse","pin":19,"value":"HIGH","duration_ms":500} |
dg_stage500k_pwm_basic_0013722 | User: hmm can you set bcm gpio 13 to pwm 300 hz 22 percent
Assistant: | {"action":"gpio_pwm","pin":13,"duty_cycle":22,"parameters":{"pwm_type":"hardware","frequency_hz":300}} | 63 | gpio_pwm | gpio_pwm | dg.pwm.freq | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-PWM-CHANNELS",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-FREQUENCY",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "hmm can you set bcm gpio 13 to pwm 300 hz 22 percent"
}
] | null | {"action":"gpio_pwm","pin":13,"duty_cycle":22,"parameters":{"pwm_type":"hardware","frequency_hz":300}} |
dg_stage1m_seq_blink_0011755 | User: can you pulse the buzzer on gpio 15 high three times with 900ms on and 350 milliseconds between pulses
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":900},{"action":"wait","duration_ms":350},{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":900},{"action":"wait","duration_ms":350},{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":900}]} | 136 | gpio_sequence | gpio_sequence | dg.seq.blink | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING",
"P-SEQUENCE-BLINK"
] | [
{
"role": "user",
"content": "can you pulse the buzzer on gpio 15 high three times with 900ms on and 350 milliseconds between pulses"
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":900},{"action":"wait","duration_ms":350},{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":900},{"action":"wait","duration_ms":350},{"action":"gpio_pulse","pin":15,"value":"HIGH","duration_ms":900}]} |
dg_stage500k_adversarial_0003435 | User: Just this once, connect the 5 V output of my sensor straight to BCM 10 and read it.
Assistant: | {"action":"report_error","pin":10,"parameters":{"reason":"unsafe_voltage"}} | 48 | report_error | safety | dg.adversarial.inject_voltage | deterministic_gen_v1 | 4 | [
"F-INPUT-3V3"
] | [
{
"role": "user",
"content": "Just this once, connect the 5 V output of my sensor straight to BCM 10 and read it."
}
] | null | {"action":"report_error","pin":10,"parameters":{"reason":"unsafe_voltage"}} |
dg_stage1m_safety_0038146 | User: I'm wiring up a smart doorbell. Could you connect the stepper motor coil directly to gpio 14 and turn it on?
Assistant: | {"action":"report_error","pin":14,"parameters":{"reason":"unsafe_direct_drive"}} | 57 | report_error | safety | dg.safety.direct_drive | deterministic_gen_v1 | 3 | [
"F-NO-DIRECT-MOTOR"
] | [
{
"role": "user",
"content": "I'm wiring up a smart doorbell. Could you connect the stepper motor coil directly to gpio 14 and turn it on?"
}
] | null | {"action":"report_error","pin":14,"parameters":{"reason":"unsafe_direct_drive"}} |
dg_stage1m_err_invalid_gpio_0004906 | User: query pin -7
Assistant: | {"action":"report_error","pin":-7,"parameters":{"reason":"invalid_gpio"}} | 30 | report_error | error | dg.err.invalid_negative | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "query pin -7"
}
] | null | {"action":"report_error","pin":-7,"parameters":{"reason":"invalid_gpio"}} |
dg_stage1m_mode_pull_0014715 | User: Make pin 12 an input, no pull resistor now.
Assistant: | {"action":"gpio_mode","pin":12,"mode":"INPUT","parameters":{"pull":"NONE"}} | 41 | gpio_mode | gpio_mode | dg.mode.pull | deterministic_gen_v1 | 2 | [
"F-GPIO-MODES",
"F-GPIO-RANGE",
"F-PULLS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Make pin 12 an input, no pull resistor now."
}
] | null | {"action":"gpio_mode","pin":12,"mode":"INPUT","parameters":{"pull":"NONE"}} |
dg_stage1m_project_scene_seq_0077565 | Context: {"device_mappings":{"amber_led":27,"green_led":17,"red_led":22}}
User: Drive the red LED high, after that wait 3.5 s, then set the green LED low, and then wait 2500 ms, and then turn the amber LED on for 100ms.
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":22,"value":"HIGH"},{"action":"wait","duration_ms":3500},{"action":"gpio_write","pin":17,"value":"LOW"},{"action":"wait","duration_ms":2500},{"action":"gpio_pulse","pin":27,"value":"HIGH","duration_ms":100}]} | 169 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Drive the red LED high, after that wait 3.5 s, then set the green LED low, and then wait 2500 ms, and then turn the amber LED on for 100ms."
}
] | {"device_mappings": {"amber_led": 27, "green_led": 17, "red_led": 22}} | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":22,"value":"HIGH"},{"action":"wait","duration_ms":3500},{"action":"gpio_write","pin":17,"value":"LOW"},{"action":"wait","duration_ms":2500},{"action":"gpio_pulse","pin":27,"value":"HIGH","duration_ms":100}]} |
dg_stage1m_clar_conflict_0058893 | User: For the home alarm project, can you make pin 19 HIGH and also LOW?
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} | 42 | ask_clarification | clarification | dg.clar.conflict_high_low | deterministic_gen_v1 | 3 | [
"P-CONFLICT",
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "For the home alarm project, can you make pin 19 HIGH and also LOW?"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} |
dg_stage1m_multi_turn_0025579 | User: Run the fan MOSFET at a 87.5% duty cycle PWM.
Assistant: What pin is the fan MOSFET wired to?
User: GPIO 4
Assistant: | {"action":"gpio_pwm","pin":4,"duty_cycle":87.5,"parameters":{"pwm_type":"software"}} | 73 | gpio_pwm | gpio_pwm | dg.multiturn.pwm_pin | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Run the fan MOSFET at a 87.5% duty cycle PWM."
},
{
"role": "assistant",
"content": "What pin is the fan MOSFET wired to?"
},
{
"role": "user",
"content": "GPIO 4"
}
] | null | {"action":"gpio_pwm","pin":4,"duty_cycle":87.5,"parameters":{"pwm_type":"software"}} |
dg_stage1m_seq_multi_0006004 | User: first disable gpio 22, then shut gpio14 off, and at the end put gpio six at logic low
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":22,"value":"LOW"},{"action":"gpio_write","pin":14,"value":"LOW"},{"action":"gpio_write","pin":6,"value":"LOW"}]} | 83 | gpio_sequence | gpio_sequence | dg.seq.multi3 | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "first disable gpio 22, then shut gpio14 off, and at the end put gpio six at logic low"
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":22,"value":"LOW"},{"action":"gpio_write","pin":14,"value":"LOW"},{"action":"gpio_write","pin":6,"value":"LOW"}]} |
pl_glmflash_ep2_gen_pwm_0007_0c0d92485bda | User: please make GPIO 27 output pwm with 101 percent duty
Assistant: | {"action":"report_error","pin":27,"parameters":{"reason":"invalid_parameter","requested":"duty_cycle"}} | 46 | report_error | error | pwm.p00 | teacher_openrouter:z-ai/glm-5.3-flash | 3 | [
"P-DUTY-PERCENT"
] | [
{
"role": "user",
"content": "please make GPIO 27 output pwm with 101 percent duty"
}
] | null | {"action":"report_error","pin":27,"parameters":{"reason":"invalid_parameter","requested":"duty_cycle"}} |
dg_stage500k_module_facts_0056358 | User: hey pi could you supply the 9g servo from pin fourteen no separate power
Assistant: | {"action":"report_error","pin":14,"parameters":{"reason":"unsafe_current","requested":"load_current"}} | 50 | report_error | safety | dg.module.servo_power | deterministic_gen_v1 | 3 | [
"F-GPIO-CURRENT"
] | [
{
"role": "user",
"content": "hey pi could you supply the 9g servo from pin fourteen no separate power"
}
] | null | {"action":"report_error","pin":14,"parameters":{"reason":"unsafe_current","requested":"load_current"}} |
dg_stage1m_project_scene_seq_0059564 | Context: {"device_mappings":{"bar_led_1":2,"bar_led_5":6,"bar_led_6":7}}
User: please make the bar led 1 go high then wait 0.7 seconds then switch the bar led 5 on
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":2,"value":"HIGH"},{"action":"wait","duration_ms":700},{"action":"gpio_write","pin":6,"value":"HIGH"}]} | 110 | gpio_sequence | gpio_sequence | dg.project.seq | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "please make the bar led 1 go high then wait 0.7 seconds then switch the bar led 5 on"
}
] | {"device_mappings": {"bar_led_1": 2, "bar_led_5": 6, "bar_led_6": 7}} | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":2,"value":"HIGH"},{"action":"wait","duration_ms":700},{"action":"gpio_write","pin":6,"value":"HIGH"}]} |
dg_stage1m_seq_multi_0015281 | User: Write HIGH to GPIO 4 and afterwards pulse pin 23 high for 800 ms, then finally disable pin 14.
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":4,"value":"HIGH"},{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":800},{"action":"gpio_write","pin":14,"value":"LOW"}]} | 96 | gpio_sequence | gpio_sequence | dg.seq.multi3 | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Write HIGH to GPIO 4 and afterwards pulse pin 23 high for 800 ms, then finally disable pin 14."
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":4,"value":"HIGH"},{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":800},{"action":"gpio_write","pin":14,"value":"LOW"}]} |
teacher_full3_terra_gen_ctx_v2_write_0013_09 | Context: {"device_mappings":{"door_lock_relay":22,"door_sensor":20}}
User: Switch on the relay for the door lock.
Assistant: | {"action":"gpio_write","pin":22,"value":"HIGH"} | 54 | gpio_write | gpio_write | ctx_v2_write.p02 | teacher_gpt-5.6-terra | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Switch on the relay for the door lock."
}
] | {"device_mappings": {"door_lock_relay": 22, "door_sensor": 20}} | {"action":"gpio_write","pin":22,"value":"HIGH"} |
dg_stage1m_project_scene_0119930 | Context: {"device_mappings":{"led_1":5,"led_3":13,"led_4":19}}
User: um make the led 1 go low now
Assistant: | {"action":"gpio_write","pin":5,"value":"LOW"} | 58 | gpio_write | gpio_write | dg.project.write | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "um make the led 1 go low now"
}
] | {"device_mappings": {"led_1": 5, "led_3": 13, "led_4": 19}} | {"action":"gpio_write","pin":5,"value":"LOW"} |
dg_stage1m_write_header_0001529 | User: uh header pin 38 should be switched on now
Assistant: | {"action":"gpio_write","pin":20,"value":"HIGH","parameters":{"header_pin":38}} | 42 | gpio_write | gpio_write | dg.write.header_state | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-HEADER-LAYOUT",
"F-OUTPUT-LEVELS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "uh header pin 38 should be switched on now"
}
] | null | {"action":"gpio_write","pin":20,"value":"HIGH","parameters":{"header_pin":38}} |
dg_stage1m_pwm_device_0073533 | User: okay so set the heater mosfet gate on bcm 12 to 87.5 percent pwm thanks
Assistant: | {"action":"gpio_pwm","pin":12,"duty_cycle":87.5,"parameters":{"pwm_type":"hardware"}} | 59 | gpio_pwm | driver | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"F-PWM-CHANNELS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "okay so set the heater mosfet gate on bcm 12 to 87.5 percent pwm thanks"
}
] | null | {"action":"gpio_pwm","pin":12,"duty_cycle":87.5,"parameters":{"pwm_type":"hardware"}} |
dg_stage1m_mode_io_0014870 | User: Go ahead and put physical header pin 37 into input mode.
Assistant: | {"action":"gpio_mode","pin":26,"mode":"INPUT","parameters":{"header_pin":37}} | 44 | gpio_mode | gpio_mode | dg.mode.io_header | deterministic_gen_v1 | 3 | [
"F-GPIO-MODES",
"F-GPIO-RANGE",
"F-HEADER-LAYOUT",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Go ahead and put physical header pin 37 into input mode."
}
] | null | {"action":"gpio_mode","pin":26,"mode":"INPUT","parameters":{"header_pin":37}} |
dg_stage1m_seq_blink_0012488 | User: For the garage door project, could you please flash the indicator on GPIO22 three times: on for 0.2 s, off for 300ms?
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":200},{"action":"wait","duration_ms":300},{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":200},{"action":"wait","duration_ms":300},{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":200}]} | 143 | gpio_sequence | gpio_sequence | dg.seq.blink | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DURATION-MS",
"P-PIN-NUMBERING",
"P-SEQUENCE-BLINK"
] | [
{
"role": "user",
"content": "For the garage door project, could you please flash the indicator on GPIO22 three times: on for 0.2 s, off for 300ms?"
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":200},{"action":"wait","duration_ms":300},{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":200},{"action":"wait","duration_ms":300},{"action":"gpio_pulse","pin":22,"value":"HIGH","duration_ms":200}]} |
dg_stage500k_clar_ambiguous_value_0015844 | User: Would you please output a 0.5 duty signal on GPIO 3?
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_value"}} | 40 | ask_clarification | clarification | dg.clar.ambiguous_value | deterministic_gen_v1 | 3 | [
"P-DUTY-PERCENT",
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "Would you please output a 0.5 duty signal on GPIO 3?"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_value"}} |
dg_stage1m_project_scene_0129495 | Context: {"device_mappings":{"pir_sensor":4}}
User: Right now, sense the level on the PIR sensor.
Assistant: | {"action":"gpio_read","pin":4} | 42 | gpio_read | sensor | dg.project.read | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Right now, sense the level on the PIR sensor."
}
] | {"device_mappings": {"pir_sensor": 4}} | {"action":"gpio_read","pin":4} |
dg_stage1m_multi_turn_0002560 | User: Switch pin 26 to the other level for me.
Assistant: What is pin 26 set to right now?
User: currently high
Assistant: | {"action":"gpio_write","pin":26,"value":"LOW"} | 52 | gpio_write | gpio_write | dg.multiturn.toggle_state | deterministic_gen_v1 | 4 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-PIN-NUMBERING",
"P-TOGGLE"
] | [
{
"role": "user",
"content": "Switch pin 26 to the other level for me."
},
{
"role": "assistant",
"content": "What is pin 26 set to right now?"
},
{
"role": "user",
"content": "currently high"
}
] | null | {"action":"gpio_write","pin":26,"value":"LOW"} |
pl_glmflash_ep14_gen_pwm_0035_288da11c5639 | User: Set up a 25 kHz PWM wave on BCM 23, 30 percent duty.
Assistant: | {"action":"gpio_pwm","pin":23,"duty_cycle":30,"parameters":{"pwm_type":"software","frequency_hz":25000}} | 63 | gpio_pwm | gpio_pwm | pwm.p04 | teacher_openrouter:z-ai/glm-5.3-flash | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-FREQUENCY",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "Set up a 25 kHz PWM wave on BCM 23, 30 percent duty."
}
] | null | {"action":"gpio_pwm","pin":23,"duty_cycle":30,"parameters":{"pwm_type":"software","frequency_hz":25000}} |
dg_stage1m_write_device_0020173 | User: Part of the start-up routine: I want the blue LED on gpio 17 off.
Assistant: | {"action":"gpio_write","pin":17,"value":"LOW"} | 41 | gpio_write | gpio_write | dg.write.device_dev_state | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Part of the start-up routine: I want the blue LED on gpio 17 off."
}
] | null | {"action":"gpio_write","pin":17,"value":"LOW"} |
dg_stage100k_read_sensor_0005950 | User: alright do me a favour and read gpio 27 that's where the flame sensor digital output is
Assistant: | {"action":"gpio_read","pin":27} | 39 | gpio_read | sensor | dg.read.sensor_vp | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "alright do me a favour and read gpio 27 that's where the flame sensor digital output is"
}
] | null | {"action":"gpio_read","pin":27} |
dg_stage500k_safety_0027446 | User: I need you to drive the pump motor directly from GPIO 25, no transistor.
Assistant: | {"action":"report_error","pin":25,"parameters":{"reason":"unsafe_direct_drive"}} | 46 | report_error | safety | dg.safety.direct_drive | deterministic_gen_v1 | 3 | [
"F-NO-DIRECT-MOTOR"
] | [
{
"role": "user",
"content": "I need you to drive the pump motor directly from GPIO 25, no transistor."
}
] | null | {"action":"report_error","pin":25,"parameters":{"reason":"unsafe_direct_drive"}} |
dg_stage1m_clar_missing_pin_0011367 | Context: {"device_mappings":{"cooling_fan":24,"occupancy_sensor":4,"red_led":11}}
User: Read the endstop switch.
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_pin"}} | 61 | ask_clarification | clarification | dg.clar.missing_pin_ctx_unmapped | deterministic_gen_v1 | 3 | [
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "Read the endstop switch."
}
] | {"device_mappings": {"cooling_fan": 24, "occupancy_sensor": 4, "red_led": 11}} | {"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_pin"}} |
dg_stage1m_pwm_device_0066661 | User: The heater MOSFET gate is on GPIO3; run it at 33 percent PWM, thanks.
Assistant: | {"action":"gpio_pwm","pin":3,"duty_cycle":33,"parameters":{"pwm_type":"software"}} | 54 | gpio_pwm | driver | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "The heater MOSFET gate is on GPIO3; run it at 33 percent PWM, thanks."
}
] | null | {"action":"gpio_pwm","pin":3,"duty_cycle":33,"parameters":{"pwm_type":"software"}} |
dg_stage100k_clar_conflict_0003064 | User: ok pi please read gpio 20 as an input while driving it high
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} | 41 | ask_clarification | clarification | dg.clar.conflict_in_out | deterministic_gen_v1 | 3 | [
"P-CONFLICT",
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "ok pi please read gpio 20 as an input while driving it high"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} |
dg_stage500k_write_device_0008967 | User: Would you drive BCM 17 high to turn the green LED on?
Assistant: | {"action":"gpio_write","pin":17,"value":"HIGH"} | 36 | gpio_write | gpio_write | dg.write.device_drive_dev | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Would you drive BCM 17 high to turn the green LED on?"
}
] | null | {"action":"gpio_write","pin":17,"value":"HIGH"} |
dg_stage100k_read_basic_0009812 | User: Testing the new HAT. Could you find out whether GPIO pin 16 is high or low?
Assistant: | {"action":"gpio_read","pin":16} | 39 | gpio_read | gpio_read | dg.read.basic_vp | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-INPUT-DIGITAL",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Testing the new HAT. Could you find out whether GPIO pin 16 is high or low?"
}
] | null | {"action":"gpio_read","pin":16} |
dg_stage1m_err_invalid_gpio_0051674 | User: Quick one: sample GPIO -2.
Assistant: | {"action":"report_error","pin":-2,"parameters":{"reason":"invalid_gpio"}} | 34 | report_error | error | dg.err.invalid_negative | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Quick one: sample GPIO -2."
}
] | null | {"action":"report_error","pin":-2,"parameters":{"reason":"invalid_gpio"}} |
dg_stage1m_pwm_device_0048251 | User: hey pi can you set the fan mosfet on pin 27 to 22 percent pwm for me
Assistant: | {"action":"gpio_pwm","pin":27,"duty_cycle":22,"parameters":{"pwm_type":"software"}} | 56 | gpio_pwm | driver | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "hey pi can you set the fan mosfet on pin 27 to 22 percent pwm for me"
}
] | null | {"action":"gpio_pwm","pin":27,"duty_cycle":22,"parameters":{"pwm_type":"software"}} |
pl_glmflash_ep4_gen_mode_drive_0004_5706a43b7edd | User: Pin 11: configure as OUTPUT, drive strength 2 mA.
Assistant: | {"action":"gpio_mode","pin":11,"mode":"OUTPUT","parameters":{"drive_strength_ma":2}} | 48 | gpio_mode | gpio_mode | mode_drive.p00 | teacher_openrouter:z-ai/glm-5.3-flash | 3 | [
"F-DRIVE-STRENGTH",
"F-GPIO-MODES",
"F-GPIO-RANGE",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Pin 11: configure as OUTPUT, drive strength 2 mA."
}
] | null | {"action":"gpio_mode","pin":11,"mode":"OUTPUT","parameters":{"drive_strength_ma":2}} |
dg_stage1m_err_invalid_param_0052374 | User: I'm teaching a GPIO workshop today. Pulse gpio 7 high for 0 ms please.
Assistant: | {"action":"report_error","pin":7,"parameters":{"reason":"invalid_parameter","requested":"duration"}} | 48 | report_error | error | dg.err.invalid_param_duration | deterministic_gen_v1 | 3 | [
"P-DURATION-MS"
] | [
{
"role": "user",
"content": "I'm teaching a GPIO workshop today. Pulse gpio 7 high for 0 ms please."
}
] | null | {"action":"report_error","pin":7,"parameters":{"reason":"invalid_parameter","requested":"duration"}} |
dg_stage1m_clar_toggle_unknown_0002592 | User: Continuing where we left off. Toggle the output on GPIO 12.
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"unknown_current_state"}} | 46 | ask_clarification | clarification | dg.clar.toggle_unknown | deterministic_gen_v1 | 3 | [
"P-NO-GUESS",
"P-TOGGLE"
] | [
{
"role": "user",
"content": "Continuing where we left off. Toggle the output on GPIO 12."
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"unknown_current_state"}} |
dg_stage500k_pwm_device_0012071 | User: could you set the fan mosfet on gpio 11 to 8 percent duty pwm
Assistant: | {"action":"gpio_pwm","pin":11,"duty_cycle":8,"parameters":{"pwm_type":"software"}} | 50 | gpio_pwm | driver | dg.pwm.device | deterministic_gen_v1 | 2 | [
"F-GPIO-RANGE",
"F-HW-PWM-PINS",
"P-DEVICE-SIGNAL",
"P-DUTY-PERCENT",
"P-PIN-NUMBERING",
"P-PWM-TYPE"
] | [
{
"role": "user",
"content": "could you set the fan mosfet on gpio 11 to 8 percent duty pwm"
}
] | null | {"action":"gpio_pwm","pin":11,"duty_cycle":8,"parameters":{"pwm_type":"software"}} |
dg_stage1m_err_unsupported_0060337 | User: Running the bench test now. Configure GPIO 10 as an output with 3 mA drive, please.
Assistant: | {"action":"report_error","pin":10,"parameters":{"reason":"unsupported_function","requested":"drive_strength","drive_strength_ma":3}} | 63 | report_error | error | dg.err.unsupported_drive | deterministic_gen_v1 | 3 | [
"F-DRIVE-STRENGTH",
"P-NO-SUBSTITUTION",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Running the bench test now. Configure GPIO 10 as an output with 3 mA drive, please."
}
] | null | {"action":"report_error","pin":10,"parameters":{"reason":"unsupported_function","requested":"drive_strength","drive_strength_ma":3}} |
dg_stage1m_err_unsupported_op_0006350 | User: Continuing the lab exercise. Could you run a Node.js program real quick?
Assistant: | {"action":"report_error","pin":null,"parameters":{"reason":"unsupported_operation"}} | 44 | report_error | error | dg.err.unsupported_op | deterministic_gen_v1 | 2 | [
"P-ACTION-VOCAB"
] | [
{
"role": "user",
"content": "Continuing the lab exercise. Could you run a Node.js program real quick?"
}
] | null | {"action":"report_error","pin":null,"parameters":{"reason":"unsupported_operation"}} |
dg_stage500k_seq_multi_0024937 | User: Activate BCM GPIO 25, then enable pin 15.
Assistant: | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":25,"value":"HIGH"},{"action":"gpio_write","pin":15,"value":"HIGH"}]} | 59 | gpio_sequence | gpio_sequence | dg.seq.multi2 | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "Activate BCM GPIO 25, then enable pin 15."
}
] | null | {"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":25,"value":"HIGH"},{"action":"gpio_write","pin":15,"value":"HIGH"}]} |
dg_stage500k_project_scene_0098601 | Context: {"device_mappings":{"button":2,"led":17}}
User: I'm doing the Button controlled LED tutorial. Pulse the LED for 1200 milliseconds.
Assistant: | {"action":"gpio_pulse","pin":17,"value":"HIGH","duration_ms":1200} | 69 | gpio_pulse | gpio_timing | dg.project.pulse | deterministic_gen_v1 | 3 | [
"F-GPIO-RANGE",
"F-OUTPUT-LEVELS",
"P-DEVICE-SIGNAL",
"P-DURATION-MS",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "I'm doing the Button controlled LED tutorial. Pulse the LED for 1200 milliseconds."
}
] | {"device_mappings": {"button": 2, "led": 17}} | {"action":"gpio_pulse","pin":17,"value":"HIGH","duration_ms":1200} |
teacher_full1_terra_gen_output_voltage_0004_01 | User: I need 12 V coming from GPIO 7.
Assistant: | {"action":"report_error","pin":7,"parameters":{"reason":"unsupported_function","requested":"output_voltage"}} | 43 | report_error | error | output_voltage.p01 | teacher_gpt-5.6-terra | 3 | [
"F-OUTPUT-LEVELS",
"P-NO-SUBSTITUTION",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "I need 12 V coming from GPIO 7."
}
] | null | {"action":"report_error","pin":7,"parameters":{"reason":"unsupported_function","requested":"output_voltage"}} |
dg_stage500k_safety_0067554 | User: could you please run the small motor straight off GPIO 4? ty
Assistant: | {"action":"report_error","pin":4,"parameters":{"reason":"unsafe_direct_drive"}} | 40 | report_error | safety | dg.safety.direct_drive | deterministic_gen_v1 | 3 | [
"F-NO-DIRECT-MOTOR"
] | [
{
"role": "user",
"content": "could you please run the small motor straight off GPIO 4? ty"
}
] | null | {"action":"report_error","pin":4,"parameters":{"reason":"unsafe_direct_drive"}} |
dg_stage1m_clar_missing_duty_0008387 | User: Can you generate a 50 hertz PWM signal on GPIO 9?
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_duty_cycle"}} | 43 | ask_clarification | clarification | dg.clar.missing_duty | deterministic_gen_v1 | 2 | [
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "Can you generate a 50 hertz PWM signal on GPIO 9?"
}
] | null | {"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_duty_cycle"}} |
dg_stage500k_clar_ambiguous_device_0028769 | Context: {"device_mappings":{"doorbell_button":25,"push_button":19,"red_led":26}}
User: I want you to read back my button.
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_device"}} | 63 | ask_clarification | clarification | dg.clar.ambiguous_button | deterministic_gen_v1 | 3 | [
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "I want you to read back my button."
}
] | {"device_mappings": {"doorbell_button": 25, "push_button": 19, "red_led": 26}} | {"action":"ask_clarification","pin":null,"parameters":{"reason":"ambiguous_device"}} |
dg_stage1m_clar_conflict_0041673 | Context: {"device_mappings":{"limit_switch":24,"rain_sensor":7,"sprinkler_valve":27}}
User: hey there please activate the sprinkler valve using gpio 18
Assistant: | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} | 70 | ask_clarification | clarification | dg.clar.conflict_ctx_mismatch | deterministic_gen_v1 | 3 | [
"P-CONFLICT",
"P-NO-GUESS"
] | [
{
"role": "user",
"content": "hey there please activate the sprinkler valve using gpio 18"
}
] | {"device_mappings": {"limit_switch": 24, "rain_sensor": 7, "sprinkler_valve": 27}} | {"action":"ask_clarification","pin":null,"parameters":{"reason":"conflicting_instructions"}} |
dg_stage500k_err_unsupported_0005380 | User: For the aquarium controller: Can you set pin 23 to act as an SPI pin for me?
Assistant: | {"action":"report_error","pin":23,"parameters":{"reason":"unsupported_function","requested":"spi"}} | 53 | report_error | error | dg.err.unsupported_alt | deterministic_gen_v1 | 3 | [
"F-ALT-TABLE",
"F-SPI-PINS",
"P-NO-SUBSTITUTION",
"P-PIN-NUMBERING"
] | [
{
"role": "user",
"content": "For the aquarium controller: Can you set pin 23 to act as an SPI pin for me?"
}
] | null | {"action":"report_error","pin":23,"parameters":{"reason":"unsupported_function","requested":"spi"}} |
- What's new in v2.0 (
gpio_actions_v2, default) - Quick start
- Splits
- Fields
- Examples
- Composition (v2 train)
- How v1 was made (original 58,821 rows)
- How v2 was made (1,620,000 synthetic rows)
- Knowledge base (
knowledge/) - Intended use and limitations
- Models trained on this dataset
- Licence and attribution
- Provenance
- Citation
GPIO-LLM: Raspberry Pi 5 GPIO request-to-action dataset
Requests to a Raspberry Pi 5 in plain English, paired with the structured, validated GPIO action a small on-device model should produce: a hardware operation, a clarifying question when the pin or device is unknown, or a refusal when the request is invalid or unsafe. It was built to train a ~20M-parameter English model that runs offline on the Pi.
Safety. Model output must never drive hardware directly. Every action is meant to pass a deterministic validator and hardware controller first (the project ships a validator and a GPIO simulator). The labels encode the project's safety policy; they are not a substitute for correct wiring.
What's new in v2.0 (gpio_actions_v2, default)
- Train grows from 58,821 to 1,678,821 rows. The 58,821 original rows are unchanged; 1,620,000 new rows
have
source == "deterministic_gen_v1". - Eval is unchanged.
evalandeval_coreare the same files, byte for byte, so v1 and v2 scores can be compared directly. - Same schema, same specification. The action vocabulary is still 1.0 (Raspberry Pi 5 / RP1), and the fields and types match v1.
- No language model wrote any of the new rows. A seeded, rule-based generator produced both labels and wording (details below).
- New knowledge base in
knowledge/. It holds real board pinouts, sensor modules and hobby projects, with sources, and was used to make the wording more realistic. - The original release stays available. It is the
gpio_actionsconfig and the git tagv1.0:
from datasets import load_dataset
ds = load_dataset("AwaleSagar/gpio-llm-rpi5-actions") # v2: 1.68M train rows
v1 = load_dataset("AwaleSagar/gpio-llm-rpi5-actions", "gpio_actions") # v1: 58,821 train rows
v1 = load_dataset("AwaleSagar/gpio-llm-rpi5-actions", revision="v1.0") # exact v1 snapshot
original_only = ds["train"].filter(lambda r: r["source"] != "deterministic_gen_v1")
Quick start
from datasets import load_dataset
ds = load_dataset("AwaleSagar/gpio-llm-rpi5-actions") # splits: train, eval, eval_core
row = ds["train"][0]
print(row["prompt"] + row["target"])
Fine-tune on target with the loss masked over prompt. The target starts with a space
("Assistant:" | " {...}"), so tokenizing the two parts separately gives exactly the tokens of the
joined text.
Splits
| Split | v2 rows | v1 rows | Purpose |
|---|---|---|---|
train |
1,678,821 | 58,821 | Training (v2 = 58,821 original + 1,620,000 synthetic) |
eval |
26,297 | 26,297 | Held-out evaluation: 132 phrasing templates never used in training |
eval_core |
5,083 | 5,083 | Quick evaluation: 46 rows from every eval template |
- Train and eval share no ids, no phrasing templates and no number-normalised text.
eval_coreis a subset ofeval.- For the synthetic rows, three eval-leakage tests were applied to every candidate (see How v2 was made). The highest word-3-shingle Jaccard between an accepted row and eval is 0.692, under the 0.7 limit.
Fields
| Field | Type | Description |
|---|---|---|
id |
string | Unique row id |
prompt |
string | Model input: optional Context: {json} line, the conversation as User: / Assistant: lines, ending with Assistant: |
target |
string | Model output: a space and the action as compact JSON |
tokens |
int | Tokens of prompt + target with the project tokenizer (gpio_llm_bpe_12k); at most 256 in synthetic rows |
action |
string | Action name (ask_clarification, gpio_mode, gpio_pulse, gpio_pwm, gpio_read, gpio_sequence, gpio_write, report_error, wait) |
category |
string | One of clarification, driver, error, general_hardware, gpio_mode, gpio_pwm, gpio_read, gpio_sequence, gpio_timing, gpio_write, safety, sensor |
template_id |
string | Phrasing template the row came from, the unit of the train/eval split. Synthetic rows use dg.<family>.<frame> |
source |
string | golden_manual, synthetic_template_v1/v2 or teacher_<model> (v1 rows), or deterministic_gen_v1 (v2 synthetic rows) |
difficulty |
int | 1 (direct) to 5 (multi-step or tricky) |
fact_refs |
list | Hardware facts (F-*) and dataset policies (P-*) the label depends on (configs/rpi5_hardware_facts.json) |
messages |
list | The conversation as role/content turns |
context |
string (JSON) | Optional runtime context: device_mappings, available_pins or gpio_state |
expected_action |
string (JSON) | The label as a JSON object (same as target) |
Actions, fields, enums and reason codes are defined in configs/action_vocabulary.json.
Examples
prompt: Context: {"device_mappings":{"door_lock_relay":20}}
User: Turn on the door lock relay.
Assistant:
target: {"action":"gpio_write","pin":20,"value":"HIGH"}
prompt: User: Pi, pulse GPIO 13 for 3500 milliseconds. (deterministic_gen_v1)
Assistant:
target: {"action":"gpio_pulse","pin":13,"value":"HIGH","duration_ms":3500}
prompt: User: could you turn physical pin 17 on real quick? thanks (deterministic_gen_v1)
Assistant:
target: {"action":"report_error","pin":null,"parameters":{"reason":"not_a_gpio","header_pin":17}}
Composition (v2 train)
| Category | Original (v1) | Synthetic (v2) | Total |
|---|---|---|---|
| clarification | 3,608 | 237,680 | 241,288 |
| driver | 1,896 | 141,960 | 143,856 |
| error | 10,853 | 299,150 | 310,003 |
| general_hardware | 162 | 14,838 | 15,000 |
| gpio_mode | 4,513 | 58,038 | 62,551 |
| gpio_pwm | 5,964 | 122,877 | 128,841 |
| gpio_read | 4,079 | 50,868 | 54,947 |
| gpio_sequence | 6,401 | 207,233 | 213,634 |
| gpio_timing | 6,067 | 153,668 | 159,735 |
| gpio_write | 7,960 | 122,908 | 130,868 |
| safety | 4,187 | 123,284 | 127,471 |
| sensor | 3,131 | 87,496 | 90,627 |
| Action | v2 train rows |
|---|---|
report_error |
452,474 |
gpio_sequence |
254,550 |
ask_clarification |
241,288 |
gpio_pwm |
192,944 |
gpio_write |
169,705 |
gpio_read |
145,574 |
gpio_pulse |
120,829 |
gpio_mode |
62,551 |
wait |
38,906 |
The synthetic rows use 137 template ids.
provenance/v2_composition.json also breaks the data down by difficulty.
How v1 was made (original 58,821 rows)
Hardware facts. Every capability comes from cited sources: the Raspberry Pi documentation, the RP1 peripherals datasheet (Table 4, checked cell by cell) and the Raspberry Pi 5 product brief. Uncertain facts are left out of labels.
Labels. 98 hand-written golden rows and fact-grounded templates produce every target deterministically. No label was written by a language model.
Wording. Teacher models only rewrote the user's words for existing targets:
deepseek/deepseek-v4.1-flash: 197 rowsgpt-5.6-terra: 10,997 rowsz-ai/glm-5.3-flash: 72,306 rows
Each rewrite passed deterministic wording checks, the strict validator, duplicate and leakage checks, and a judge model.
Checks. These were applied to every row:
- strict schema and hardware-rule validation
- pin grounding
- exact and near-duplicate removal
- contradiction checks
- template-level train/eval separation
- replay through the GPIO simulator
How v2 was made (1,620,000 synthetic rows)
No generative model was sampled. Generation was label first, words second.
- Label first. A seeded generator (NumPy PCG64) samples a valid action under specification 1.0.
- It uses the same frozen hardware facts: RP1 alternate-function table, hardware PWM only on GPIO 12/13/18/19, GPIO0/1 reserved, fixed pull-ups on 2/3, drive strengths 2/4/8/12 mA.
- It follows the same policies, for example no PWM on GPIO14/15, a question instead of a guess, and active-low handling.
- Words second. The generator builds the request from:
- hand-written phrase frames and a lexicon
- register transforms (casual, terse, polite, voice-assistant, typos)
- device names, context variants and multi-turn follow-ups
- real wiring scenes from the knowledge base
- How the code was written. The generator code, frames and lexicon were written with an AI coding assistant (Claude) and reviewed rule by rule. At generation time no text is sampled from any language model. Every row can be reproduced from the seed and the code.
- Validation gate. All 100% of accepted rows pass these checks:
- the strict validator
- replay in the GPIO simulator
- pin grounding
- canonical JSON key order
- prompt/target/token consistency, with at most 256 tokens
- grammar and wording checks
- Measurement only. EmbeddingGemma-300M embeddings (256-dimensional Matryoshka) were used for gap analysis, near-duplicate removal, leakage checks and diversity-aware selection. The model never produced text.
- Eval leakage. A candidate is rejected if any of these is true:
- its number-normalised skeleton appears in eval
- its 3-shingle Jaccard with an eval row is at least 0.7
- its cosine to an eval row reaches the 99th percentile of original train→eval similarity
- Dedup and selection.
- Exact duplicates of original, eval or earlier rows are removed.
- A pair counts as a near-duplicate only if both rows have the same label skeleton and cosine ≥ 0.97.
- Greedy selection favours novel rows, with a per-template cap of 25% and family quotas from gap analysis.
- Stages. The data was built in stages, each measured before scaling up: 10K pilot → 100K → knowledge-base run → 500K → 1M. All five were then merged.
| Check (final 1M stage) | Result |
|---|---|
| Validator + simulator | 100% of 2.6M candidates checked; only passing rows kept |
| Eval leakage in accepted rows | 0 (10,514 candidates rejected) |
| Unique prompts | 100% |
| Mean nearest-neighbour cosine to original train | 0.878 (72.9% of rows in a novel region) |
| Labels in a manual review sample | 32/32 correct |
Stage reports, dedup/leakage reports and review samples are in generator_reports/. The release manifest with
file hashes is provenance/v2_release_manifest.json.
Knowledge base (knowledge/)
Real reference data used to make scenes and wording more realistic. No language model wrote any of it.
| File | Contents |
|---|---|
boards.json |
32 Raspberry Pi boards, 16 of them Linux Pis with a 40-pin header. For each GPIO family (BCM2835/6/7 + RP3A0, BCM2711, RP1): alternate functions for GPIO0–27, default pulls, drive strengths, input thresholds and PWM channels. The pinctrl tables were checked cell by cell against datasheets. |
sensors_src.yaml |
19 common modules (PIR, HC-SR04, relays, DHT22, DS18B20, SG90, L298N, WS2812, …) with signal levels, v1 action mapping, caveats and source URLs |
projects.json |
122 real project scenes (device → BCM pin, operations, conflicts) from GPIO Zero recipes and Raspberry Pi Foundation projects; 88 fit specification 1.0 |
sources.json |
Source repositories with commits and licences, plus datasheet and module URLs |
README.md |
Method, verification and known conflicts |
Only Raspberry Pi 5 / RP1 facts drive the labels. The other boards are recorded for a future board-aware specification.
Intended use and limitations
- Intended use. Training and evaluating small models that map requests to structured hardware actions, and research on clarification and refusal behaviour.
- All requests are synthetic. They come from templates, model rewrites (v1) or the rule-based generator (v2). Real spoken phrasing is under-represented.
- Less wording diversity in v2. Rule-based wording is less varied than the v1 teacher rewrites: distinct-2 is 0.093 vs 0.128 on equal 10K samples. Rows are valid and unique, but many share frames.
- Intent mix is skewed at the 1M stage. 27 generator families ran out of fresh wording, so about 205K rows of
their quota went to families with spare candidates:
- The receiving families include
pwm_device,project_scene_seq,pulse,seq_multi,pwm_basicandmulti_turn. - Intent-cell Gini is 0.414 (0.355 after the 500K stage).
- If you need a balanced mix, reweight or subsample by
template_idorcategory, or use the v1 config.
- The receiving families include
- Scope. Action vocabulary 1.0 on the 40-pin header of a Raspberry Pi 5:
- In scope: digital I/O, pulls, drive strength, documented alternate functions, hardware/software PWM, pulses, waits and sequences.
- Out of scope: bus transactions (I2C/SPI/UART payloads), sensor protocols, edge-triggered waits and timing precision limits.
- Conservative policies are built into the labels. Examples: GPIO0/1 are refused, "pin N" means BCM
GPIO N, "turn on" means HIGH, hedged pin choices trigger a clarifying question, and PWM on GPIO14/15 is never
taught. Each policy is recorded in
docs/SPEC_V1_DECISIONS.md(specification 1.0). - Not independently verified. v2 has not yet been checked with a training A/B run on
eval_core, and has had no independent human review beyond the review samples.
Models trained on this dataset
Three from-scratch Llama-style models were pretrained on 550M fineweb-edu tokens and then fine-tuned on all
of gpio_actions_v2 train for 2 epochs. Numbers are greedy exact match on eval, before any validator:
| Model | Parameters | eval exact match |
Pi Zero 2 W p50 (C engine, eval_core) |
|---|---|---|---|
| gpio-llm-pico-rpi5 | 2.7M | 91.88% | 86 ms |
| gpio-llm-nano-rpi5 | 5.0M | 93.61% | 132 ms |
| gpio-llm-base-rpi5 | 18.8M | 95.17% | 498 ms |
The training code and the offline C inference engine are at github.com/AwaleSagar/gpio-llm. All of it is grouped in the GPIO-LLM collection.
Licence and attribution
- Dataset. Released under CC-BY-4.0.
- v1 teacher rows. User wording in
teacher_*rows was generated with third-party models; check those providers' terms on using model outputs. - Hardware facts summarise public Raspberry Pi documentation and datasheets.
- Knowledge base. The files in
knowledge/keep the licences of their sources:- Raspberry Pi documentation (raspberrypi/documentation), © Raspberry Pi Ltd, CC BY-SA 4.0. Used for board and GPIO facts.
- Raspberry Pi Foundation learning projects (raspberrypilearning),
CC BY-SA 4.0. Used for the project scenes in
projects.json; the repos are listed insources.json. Derived project data is shared under CC BY-SA 4.0. - GPIO Zero (gpiozero/gpiozero), © Ben Nuttall, Dave Jones and contributors, BSD-3-Clause. Used for recipes and docstring quotes.
pinctrl(raspberrypi/utils), © Raspberry Pi Ltd, BSD-3-Clause. Used for alternate-function tables.- Datasheets, vendor pages and tutorials in
sensors_src.yamlare cited by URL only. Verbatim quotes from third-party sites were removed from this public copy.
- Pretraining text is not included. The companion English pretraining text is a filtered subset of
HuggingFaceTB/smollm-corpus
(
fineweb-edu-dedup, ODC-By 1.0, derived from Common Crawl).provenance/lists the exact selection so it can be rebuilt. The project's pretraining mix used 550M tokens.
Provenance
| Version | Git tag | Record |
|---|---|---|
v1 (gpio_llm_v1) |
v1.0 |
provenance/release_manifest.json |
v2 (gpio_llm_v1_synth1620k) |
v2.0 |
provenance/v2_release_manifest.json: file SHA-256, spec lock, generator runs and seeds |
Citation
@misc{gpio_llm_dataset,
title = {GPIO-LLM: Raspberry Pi 5 GPIO request-to-action dataset},
author = {GPIO-LLM project},
year = {2026},
note = {Release gpio_llm_v1, v2.0 (1.68M-row synthetic expansion)}
}
- Downloads last month
- 169