Skip to content

Wiring the camera link

Time
20 min
Difficulty
Easy

What you'll learn

  • Why the camera board is connected by a one-way wire
  • Why the pin labelled GND/R must not be used as ground
  • How the camera board is powered in the tested setup, and what not to do

The camera board sends what it scans to the signer over a single wire. This step connects that wire and a shared ground. It’s the setup that was built and tested.

Wiring diagram (schematic). The table below lists every wire.ESP32 DevKitESP32-CAMGPIO34GPIO14 (IO14)GNDGND5V / VIN5V

Schematic only: each board shows just the pins in use, not in their physical order. Always match the labels printed on your board. Dashed wires are not yet tested.

ESP32-CAM to ESP32 DevKit: the camera link
FromToSignalNotes

In the tested setup there are only two wires between the boards:

  1. Data: the camera board’s GPIO14 (labelled IO14) to the DevKit’s GPIO34.
  2. Ground: a camera-board GND to a DevKit GND. A shared ground is required: without it, the data signal has nothing to be measured against.

The dashed wire (DevKit 5V to the camera board’s 5V) is not part of the tested setup. It’s described below.

There is no wire from the DevKit to the camera board, and that’s deliberate. Data can only flow from the camera to the signer:

  • The DevKit’s GPIO34 can only be an input. It can’t be switched to send anything.
  • The firmware assigns no transmit pin for the link.

So even if the signer’s firmware were wrong, it couldn’t send your keys or anything else to the camera board, which has a radio. See How it works for what the camera does with what it scans.

Don’t use the camera board’s GPIO1 or GPIO3 for the link: those carry its boot messages and are needed for flashing it. GPIO14 is free because the board’s SD card isn’t used.

GPIO34 has no internal pull-up resistor, so its voltage floats whenever the camera board is off, in reset or starting up. The camera board’s GPIO14 also outputs a short burst at startup. Either way, the DevKit receives junk bytes. Its firmware checks every frame and throws them away, counted as “skipped”. That’s expected, not a fault.

In the tested setup, the camera board is powered by the USB-TTL adapter, which also programs it. You’ll connect the adapter in the next step, when you flash the camera board. The DevKit’s 5V is not connected to the camera board. That keeps a single power supply on it, avoids drops on the DevKit’s USB supply (which also powers the shield’s backlight), and keeps the camera board ready for re-flashing.

Not yet tested: once the adapter is removed for good, the camera board can be powered from the DevKit’s 5V (or VIN), which is the dashed wire in the diagram. If the camera board then resets with “Brownout detector was triggered”, power it from a separate 5V supply instead, and keep the grounds connected.

  • One data wire: camera GPIO14 to DevKit GPIO34.
  • One ground wire, from the GND next to the camera’s 5V pin, not GND/R.
  • No wire from the DevKit to the camera board, and no DevKit 5V to the camera board.