Skip to content

Latest commit

 

History

History
131 lines (101 loc) · 3.02 KB

diagram.md

File metadata and controls

131 lines (101 loc) · 3.02 KB

Notes

Raspberry Pi Power Diagram

The main thing here is the circular dependency between the Raspberry pi and the main relay. It allows the raspberry pi to completely kill its own power as a safety mechanism that requires manual intervention, and can't be overriden by any means by the pi itself.

To boot the secondary module the sequence is:

  1. Power comes from the espresso machine. It energizes one side of the relay which is currently off, and one side of the button that is also off.
  2. A human presses holds the power button. This completes the circuit to the USB Power.
  3. The raspberry pi boots and after a few seconds turns on the main relay
  4. With the main relay on, the human can release the power button since the usb power circuit is maintained via the power relay.

The main relay is "normally off". To stay on, it has to receive continuous low voltage power from a GPIO pin on the pi. If the pi turns off that GPIO pin either directly or by initiating a reboot the relay will switch off all power to the USB plug, which in turn shuts off the pi itself. With the pi off, there is no way to restore power without a human doing the power on sequence.

flowchart TD
  subgraph Machine
  240v
  end
  subgraph control_module
  240v-- black --> splitter1
  splitter1 -- 240v --> button
  button -- 240v --> usb_power
  splitter1 -- 240v --> main_relay
  main_relay -- 240v --> usb_power
  usb_power -- 5v --> pi
  pi -- 3v --> main_relay
  end
Loading

Full Circuit

flowchart TD
  subgraph Machine
  240v
  Boiler
  RTD
  end
  subgraph control_module
  240v-- black --> splitter1
  splitter1 -- 240v --> button
  button -- 240v --> usb_power
  splitter1 -- 240v --> main_relay
  main_relay -- 240v --> splitter2
  splitter2 -- 240v --> usb_power
  splitter2 -- 240v --> SSR
  usb_power -- white --> 240v
  usb_power -- 5v --> pi
  pi <-- 3v --> rtd_board
  pi -- 3v --> SSR
  pi -- 3v --> main_relay
  rtd_board <--> RTD
  SSR -- 240v --> Boiler
  end
Loading

Ribbon cable

Top Left

LED Driver: 3.3v + 680ohms => ~5ma

Total 20ma

|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 | | | |LD| | | |IO| |3v

Top right

|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 | | |LD| | | |IO| | |3v

Bottom Left

|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 | |LD| | | |IO| | | |3v

Bottom Right

|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |LD| | | |IO| | | | |3v

Program Key

|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 | |LD| | |IO|IO| | |3v|

Main Connectors

1 Neutral 2 240+

3 240+ boiler 4 240+ Pump 5 Refill solenoid 6 Tea water valve 7 Group head

New Insane Plan

flowchart TD
  subgraph Machine
  240v
  Boiler
  RTD
  end
  subgraph control_module
  240v-- black --> splitter1
  splitter1 -- 240v --> button
  button -- 240v --> usb_power
  splitter1 -- 240v --> main_relay
  main_relay -- 240v --> splitter2
  splitter2 -- 240v --> usb_power
  splitter2 -- 240v --> SSR
  usb_power -- white --> 240v
  usb_power -- 5v --> pi
  pi <-- 3v --> rtd_board
  pi -- 3v --> SSR
  pi -- 3v --> main_relay
  rtd_board <--> RTD
  SSR -- 240v --> Boiler
  end
Loading