Skip to main content

Hardware - SVBox IoT 1.0

Assemble the SmartVanBox

Place the hardware in the SmartVanBox case, connect all components, and get ready to power up your new SmartVanBox.

Finally, we have all the components (hardware modules, case, and configured SD card) to assemble our SmartVanBox. Before inserting everything into the case, we need to connect some hardware modules.

Short Steps

  • Power Supply:
    1. Solder UPS with DC/DC and jumpers.
  • Prepare the internal Panel
    1. Attach IO Expander to Panel.
    2. Attach Relay module to Panel.
    3. Attach PowerIn connector (12V) to Panel.
    4. Wire IO Expander to Relay module on Panel.
  • Cover and Buttons:
    1. Prepare IO Expander to Cover Buttons cable.
    2. Insert and secure buttons in Cover.
    3. Solder and join all positive button contacts.
    4. Solder negative button contacts with pull-down resistors.
    5. Solder jumpers to negative button contacts.
    6. Prepare connector for IO Expander in Cover.
  • Assembly the SVBox:
    1. Position Battery and nuts for RPi Stack in Base.
    2. Insert Panel into Base.
    3. Position and secure UPS and DC/DC converter in Base.
    4. Connect Battery to UPS and DC/DC to PowerIn connector (12V).
    5. Position and secure Raspberry Pi above UPS.
    6. Position and secure SIM7600 module above Raspberry Pi and attach antennas.
    7. Position and secure Sense HAT above SIM7600.
    8. Position and secure gas sensors.
    9. Connect modules to Raspberry Pi (UPS, GPIO Expander, and gas sensors).
  • Final Assembly:
    1. Connect IO Expander to Cover Buttons cable.
    2. Power on the SmartVanBox.
    3. Place Cover on Base.

Power Supply

First, prepare the UPS module by connecting it to the DC/DC converter and jumper wires to the Raspberry Pi.

  1. Prepare DC/DC Converter Cables: The DC/DC converter has two pairs of cables, one for the 12/24V input and one for the 5V output. All four cables need to be stripped, and only the input cables should have crimp connectors0 attached.
  2. Modify UPS Module: Solder the output cables from the DC/DC converter to the UPS module. You might need to scrape off some material from the tracks behind the USB-C port.
  3. Solder Jumpers to UPS Module: Solder jumper wires to the UPS module, behind the second USB port.
  4. Prepare Switch Button: take the self-locking button and prepare his cable with a 4 PIN's JST PH 2.0 port
  1. Prepare DC/DC Converter

2a. Prepare UPS Module

2b. Sold DC/DC to UPS

  1. Solder Jumpers to UPS

The Jumpers' order from bottom to top is:

ColorDescription
Red5V
BlackGND
GreenTX
BlueRX
WhiteSTA

Prepare the Internal Panel

Now, prepare the previously printed panel and attach its components (GPIO Expander, Relay module, and PowerIn connector).

  1. Mount GPIO Expander: Secure the GPIO Expander module, using hot glue if necessary.
  2. Mount Relay Module: Secure the Relay module to the panel using screws.
  3. Position PowerIn Connector: Place the PowerIn connector in position.
  4. Wire GPIO Expander to Relay Module: Connect the GND pins of the Relay module in a cascade manner, with the last GND pin also connected to the GPIO Expander GND pin. Connect the positive pins of the Relay module to the respective pins on the GPIO Expander, from P0 to P3.

Panel for Relays module

  1. Place the GPIO Expander

2a. Place the Relay Module

2b. Fix the Relay Module

  1. Place the PowerIn

4a. Connect GPIO Expander to Relay (GND)

4b. Connect GPIO Expander to Relay (Positives)

  1. The panel is ready

Below is the wiring diagram for connecting the GPIO Expander to the Relay module:

Panel for MOSFETs module

  1. Place the GPIO Expander

2a. Place the Relay Module

2b. Fix the Relay Module

  1. Place the PowerIn

4a. Connect GPIO Expander to Relay (GND)

4b. Connect GPIO Expander to Relay (Positives)

  1. The panel is ready

Below is the wiring diagram for connecting the GPIO Expander to the Relay module:

Cover and Buttons

  1. Install Buttons on Cover: Insert the buttons into the cover and secure them with nuts.
  2. Connect Positive Contacts: Connect all the positive contacts of the buttons together.
  3. Connect Negative Contacts with Resistors: Connect the negative contacts using 10kOhm pull-down resistors.
  4. Solder Jumper Wires: Solder jumper wires to the negative contacts.
  5. Prepare Cover's Connector: Connect these jumpers, including negative and positive, to a female DouPont connector. You can use 2 connetors with 5 poles each one.
  1. Place Buttons

1b. Align all buttons

  1. Wire Positive Contacts
  1. Wire Negative Contacts and Resistors
  1. Wire Jumpers
  1. Prepare connector

Connector 10 PIN

This connectoor will be attached to the GPIO Expander's inside the SVBox.

VCCGNDP0P1P2P3P4P5P6P7

Below is the wiring diagram for connecting the Cover Buttons to the GPIO Expander's port:

Assembling the SmartVanBox

  1. Place the Battery: Insert the battery into the base.
  2. Position the Nuts: Place the four nuts into their slots.
  3. Insert the Panel: Slide the panel into the slots above the battery.
  4. Install UPS Module: Position the UPS module with the USB ports facing the case and secure it with 6mm spacers. Position the DC/DC converter in the remaining space.
  5. Connect Power Cables: Connect the DC/DC converter input cables to the PowerIn connector and connect the battery to the UPS module.
  6. Install Raspberry Pi: Place and secure the Raspberry Pi above the UPS module.
  7. Add SIM7600 Module: Position the SIM7600 module above the Raspberry Pi and attach the antennas.
  8. Install Sense HAT: Position the Sense HAT above the SIM7600 module.
  9. Install Gas Sensors: Place the gas sensors into their slots.
  10. Insert SIM7600 Antennas: Attach the SIM7600 antennas to the module and insert them into the holes on the case.
  11. Place the Switch On/Off: Place and fix the switch button in the cover.
  12. Turn on the UPS: Turn on the UPS module using the switch placed on the board.
  1. Place the internal battery
  1. Place the stack's nuts

3a. Place the internal panel

3b. Slide the internal panel

  1. Place UPS Pack V3 module
  1. Connect the power connector
  1. Place the Raspberry Pi 4B
  1. Place the SIM7600 module
  1. Place the Sense Hat (c) module
  1. Place the gas sensors
  1. Place the SIM7600 antennas
  1. Place the Switch On/Off
  1. Turn on the UPS

Most of the components are now in place. It's time to connect them. Many of the necessary cables are provided with the hardware modules (GPIO Expander and Gas sensors). For the others (UPS), you need to prepare them using the DouPont connectors.

The UPS Pack V3 module to the Raspberry Pi's headers

CablePinBCM
Red / 5V25V
Black / GND6, 9, or 39GND
Green / TX24GPIO 8
Blue / RX21GPIO 9
White / STA38GPIO 20

The GPIO Expander module to the Raspberry Pi's headers

CablePinBCM
Red / VCC13.3V
Black / GND14, 6, or 20GND
Blue / SDA3GPIO 2 - SDA
Yellow / SCL5GPIO 3 - SCL
Orange / INT11GPIO 17
Green / RESET13GPIO 27

The Gas Sensors to the Sense Hat's analog headers

CableMQ-2MQ-7
Red / 3V33V3_03V3_1
Black / GNDGND_0GND_1
Blue / ANALOGAIN0AIN1
Yellow / DIGITALP0P1

Below is the wiring diagram for connecting the Raspberry Pi headers to other modules:

This diagram provides a clear guide on how to connect each module to the appropriate header pins on the Raspberry Pi, ensuring a seamless setup for your SmartVanBox.

Final Assembly

  1. Connect Cover to Base: Connect the cable extending from the cover to the GPIO Expander.
  2. Close the SmartVanBox: Insert one side of the cover first, then apply some pressure to insert the other side.
  3. Power On the SmartVanBox: Turn on the SmartVanBox using the On/Off switch.
  1. Connect cover and base
  1. Close the SmartVanBox
  1. Turn on the SmartVanBox