project.json 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. {
  2. "project_id": "prod2u-door-temp",
  3. "profile": "prod2u-normal-multiproject-115200-v1",
  4. "display_name": "Prod2U door and temperature controller",
  5. "device": {
  6. "family": "EF2",
  7. "part": "EF2L45BG256B",
  8. "clock_hz": 25000000,
  9. "clock_ball": "J1"
  10. },
  11. "uart": {
  12. "baud": 115200,
  13. "data_bits": 8,
  14. "parity": "N",
  15. "stop_bits": 1,
  16. "flow_control": "none",
  17. "clks_per_bit": 217,
  18. "inter_byte_timeout_ms": 10,
  19. "rx_ball": "N11",
  20. "tx_ball": "M10"
  21. },
  22. "outputs": {
  23. "ptc_count": 8,
  24. "fan_count": 4,
  25. "chamber_ptc_count": 4,
  26. "chamber_ptc_pairs": [
  27. {"chamber": 1, "ptc_indices": [0, 1]},
  28. {"chamber": 2, "ptc_indices": [2, 3]},
  29. {"chamber": 3, "ptc_indices": [4, 5]},
  30. {"chamber": 4, "ptc_indices": [6, 7]}
  31. ],
  32. "ptc_channels": [
  33. {"index": 0, "name": "ptc1", "signal": "ptc_pwm_out[0]", "board_signal": "HEAT2", "ball": "G16", "connector": "CON18", "connector_pin": 3, "polarity": "active_high"},
  34. {"index": 1, "name": "ptc2", "signal": "ptc_pwm_out[1]", "board_signal": "HEAT1", "ball": "F16", "connector": "CON18", "connector_pin": 1, "polarity": "active_high"},
  35. {"index": 2, "name": "ptc3", "signal": "ptc_pwm_out[2]", "board_signal": "HEAT8", "ball": "N1", "connector": "CON27", "connector_pin": 3, "polarity": "active_high"},
  36. {"index": 3, "name": "ptc4", "signal": "ptc_pwm_out[3]", "board_signal": "HEAT7", "ball": "M1", "connector": "CON27", "connector_pin": 1, "polarity": "active_high"},
  37. {"index": 4, "name": "ptc5", "signal": "ptc_pwm_out[4]", "board_signal": "HEAT14", "ball": "R16", "connector": "CON28", "connector_pin": 3, "polarity": "active_high"},
  38. {"index": 5, "name": "ptc6", "signal": "ptc_pwm_out[5]", "board_signal": "HEAT13", "ball": "P16", "connector": "CON28", "connector_pin": 1, "polarity": "active_high"},
  39. {"index": 6, "name": "ptc7", "signal": "ptc_pwm_out[6]", "board_signal": "HEAT20", "ball": "P9", "connector": "CON29", "connector_pin": 3, "polarity": "active_high"},
  40. {"index": 7, "name": "ptc8", "signal": "ptc_pwm_out[7]", "board_signal": "HEAT19", "ball": "T9", "connector": "CON29", "connector_pin": 1, "polarity": "active_high"}
  41. ],
  42. "fan_channels": [
  43. {"index": 0, "name": "fan1", "signal": "fan_pwm_out[0]", "board_signal": "FAN_PWM3", "ball": "B1", "connector": "CON25", "connector_pin": 7, "polarity": "active_low"},
  44. {"index": 1, "name": "fan2", "signal": "fan_pwm_out[1]", "board_signal": "FAN_PWM1", "ball": "C4", "connector": "CON8", "connector_pin": 7, "polarity": "active_low"},
  45. {"index": 2, "name": "fan3", "signal": "fan_pwm_out[2]", "board_signal": "FAN_PWM2", "ball": "B5", "connector": "CON24", "connector_pin": 7, "polarity": "active_low"},
  46. {"index": 3, "name": "fan4", "signal": "fan_pwm_out[3]", "board_signal": "FAN_PWM4", "ball": "A14", "connector": "CON26", "connector_pin": 7, "polarity": "active_low"}
  47. ],
  48. "pwm_bits": 8,
  49. "pwm_internal_width": 7,
  50. "pwm_max_duty": 100,
  51. "pwm_phase_count": 100,
  52. "pwm_slot_clks": 1042,
  53. "pwm_frequency_hz": 20,
  54. "pwm_actual_frequency_hz": 19.993602047,
  55. "ptc_polarity": "active_high",
  56. "fan_polarity": "active_low",
  57. "ptc_default": 0,
  58. "fan_default": 10,
  59. "fan_connector_active_level": "high",
  60. "fan_board_inverts": true,
  61. "boot_targets": {"ptc": 0, "fan": 10}
  62. },
  63. "doors": {
  64. "scope": "four_chamber_thermal_plus_chamber1_three_doors",
  65. "chamber_controlled": 1,
  66. "door_axes": ["x", "y", "z"]
  67. },
  68. "motors": {
  69. "count": 3,
  70. "order": ["x", "y", "z"],
  71. "role": "door",
  72. "execution": "overlap",
  73. "step_rate_hz": 1000,
  74. "step_half_cycles": 12500,
  75. "dir_setup_cycles": 25000,
  76. "open_dir_value": 0,
  77. "close_dir_value": 1,
  78. "dir_close_level": [1, 1, 1],
  79. "positioning": {
  80. "mode": "percent_close",
  81. "percent_min": 0,
  82. "percent_max": 100,
  83. "open_endpoint_percent": 0,
  84. "close_endpoint_percent": 100,
  85. "mid_percent_min": 1,
  86. "mid_percent_max": 99,
  87. "rounding": "half_up",
  88. "mid_clamp": "1_to_travel_minus_1",
  89. "latest_wins": true,
  90. "idempotent_same_target": true,
  91. "command_interrupt": "finish_current_high_pulse_then_replan",
  92. "shared_percent_planner": true,
  93. "planner_count": 1,
  94. "endpoint_guard_extra_steps": 500
  95. },
  96. "mapping": {
  97. "x": {"axis": "x", "role": "door", "step_ball": "C12", "dir_ball": "B12", "step_connector": "CON104", "step_connector_pin": 2, "dir_connector": "CON104", "dir_connector_pin": 3},
  98. "y": {"axis": "y", "role": "door", "step_ball": "L12", "dir_ball": "J11", "step_connector": "CON105", "step_connector_pin": 2, "dir_connector": "CON105", "dir_connector_pin": 3},
  99. "z": {"axis": "z", "role": "door", "step_ball": "L14", "dir_ball": "K14", "step_connector": "CON106", "step_connector_pin": 2, "dir_connector": "CON106", "dir_connector_pin": 3}
  100. },
  101. "enable_n": {
  102. "ball": "C11",
  103. "connector": "CON120",
  104. "connector_pin": 2,
  105. "active_level": "low",
  106. "policy": "permanent_high",
  107. "notes": "NPN open-collector invert at board; FPGA drives constant 1 so connector EN is permanently asserted."
  108. }
  109. },
  110. "limits": {
  111. "limit_count": 6,
  112. "active_level": "high",
  113. "limit_active_high": [true, true, true],
  114. "close_limit_is_ls": [true, true, true],
  115. "functional_use": true,
  116. "runtime_use": true,
  117. "startup": {
  118. "enabled": true,
  119. "mode": "seek_close_then_measure_open",
  120. "max_steps": 5000,
  121. "min_travel_steps": 2,
  122. "step_rate_hz": 1000,
  123. "axis_order": ["x", "y", "z"],
  124. "final_position": "open",
  125. "limit_stop_during_move": true,
  126. "stop_semantics": "truncate_current_high_pulse_immediately_after_synchronized_limit",
  127. "additional_rising_edges_after_synchronized_limit": 0,
  128. "runtime_limit_use": true,
  129. "partial_axis_failure_allowed": true,
  130. "fault_lock_until_reset": true
  131. },
  132. "channels": [
  133. {"name": "x_limit_ls", "ball": "A5", "connector": "CON12", "connector_pin": 1, "side": "low"},
  134. {"name": "x_limit_hs", "ball": "B6", "connector": "CON12", "connector_pin": 2, "side": "high"},
  135. {"name": "y_limit_ls", "ball": "C8", "connector": "CON12", "connector_pin": 3, "side": "low"},
  136. {"name": "y_limit_hs", "ball": "A8", "connector": "CON12", "connector_pin": 4, "side": "high"},
  137. {"name": "z_limit_ls", "ball": "K16", "connector": "CON129", "connector_pin": 1, "side": "low"},
  138. {"name": "z_limit_hs", "ball": "J15", "connector": "CON129", "connector_pin": 2, "side": "high"}
  139. ]
  140. },
  141. "temperature": {
  142. "value_count": 27,
  143. "device_addresses": [73, 72, 75],
  144. "registers": [0, 1, 2, 3, 4, 5, 6, 7, 8],
  145. "scl_ball": "M8",
  146. "sda_ball": "N9",
  147. "bus": "i2c",
  148. "device": "CT7428",
  149. "invalid_value": 255,
  150. "maximum_celsius": 150,
  151. "conversion": {
  152. "profile": "ct7428-msb-integer",
  153. "raw_shift": 7,
  154. "raw_width": 9,
  155. "reject_sign_bit": true
  156. }
  157. },
  158. "pins": {
  159. "host_uart_rx": "N11",
  160. "host_uart_tx": "M10",
  161. "temp_scl": "M8",
  162. "temp_sda": "N9",
  163. "ptc_pwm": ["G16", "F16", "N1", "M1", "R16", "P16", "P9", "T9"],
  164. "fan_pwm": ["B1", "C4", "B5", "A14"],
  165. "motor_en_n": "C11",
  166. "x_step": "C12",
  167. "x_dir": "B12",
  168. "y_step": "L12",
  169. "y_dir": "J11",
  170. "z_step": "L14",
  171. "z_dir": "K14",
  172. "x_limit_ls": "A5",
  173. "x_limit_hs": "B6",
  174. "y_limit_ls": "C8",
  175. "y_limit_hs": "A8",
  176. "z_limit_ls": "K16",
  177. "z_limit_hs": "J15"
  178. },
  179. "resource_policy": {
  180. "target_ram": "optional",
  181. "request_ram": "optional",
  182. "temperature_ram": "optional",
  183. "dsp": 0,
  184. "shared_pwm_comparators": 1,
  185. "shared_percent_planner": 1,
  186. "shared_i2c_readers": 1
  187. },
  188. "protocol": {
  189. "header_hex": "A55A",
  190. "crc": {
  191. "name": "CRC-16/CCITT-FALSE",
  192. "polynomial": 4129,
  193. "initial": 65535,
  194. "reflect_input": false,
  195. "reflect_output": false,
  196. "xor_output": 0,
  197. "coverage": "type_length_payload",
  198. "wire_order": "little"
  199. },
  200. "commands": {
  201. "set_all": 1,
  202. "get_temperature": 2,
  203. "get_motor_status": 3,
  204. "temperature_data": 130,
  205. "motor_status_data": 131
  206. },
  207. "set_all": {
  208. "payload_length": 11,
  209. "fan_offset": 0,
  210. "chamber_ptc_offset": 4,
  211. "chamber_ptc_count": 4,
  212. "z_door_offset": 8,
  213. "exhaust_x_offset": 9,
  214. "exhaust_y_offset": 10,
  215. "legacy_payload_length_rejected": 14,
  216. "duty_min": 0,
  217. "duty_max": 100,
  218. "door_percent_min": 0,
  219. "door_percent_max": 100,
  220. "door_percent_rejected_example": 101,
  221. "response": "none"
  222. },
  223. "get_motor_status": {
  224. "payload_length": 0,
  225. "response": "motor_status_data"
  226. },
  227. "temperature_data": {
  228. "payload_length": 27,
  229. "frame_length": 33
  230. },
  231. "motor_status_data": {
  232. "payload_length": 31,
  233. "frame_length": 37,
  234. "layout": "host-contract"
  235. }
  236. },
  237. "timeouts": {
  238. "frame_inter_byte_ms": 10,
  239. "host_get_response_ms": 5000
  240. },
  241. "watchdog": {
  242. "timeout_seconds": 30,
  243. "tick_us": 500,
  244. "tick_clks": 12500,
  245. "timeout_ticks": 60000,
  246. "enable_after_startup_complete": true,
  247. "target": {"ptc": 0, "fan": 10}
  248. }
  249. }