Skip to main content

Keyfob Cloud Configuration

Before proceeding with the install

The keyless entry solution described in this guide is only compatible with the AutoPi TMU CM4 and newer editions.
Earlier AutoPi models do not provide the required hardware interfaces or software support and will not function with the keyfob HAT.

note

Prerequisites before starting:

  • The keyfob HAT has been securely installed in your AutoPi TMU CM4 device.
  • The keyfob has been correctly soldered to the wires in the extension casing. Ensure that solder joints are solid and free from shorts.
  • You have a working AutoPi Cloud account at my.autopi.io with your device already registered.
  • Your device is powered, connected to the internet, and synchronized with the AutoPi Cloud.

Step-by-Step Guide

Step 1 – Hardware Connection

Begin by connecting the keyfob casing to the correct port on your AutoPi device. The keyfob must always be connected to CONN2, as shown below:

Keyfob HAT connection

Make sure that the red wire (power) is connected to Vcc3v3_switched. This is critical, as the keyfob is designed to operate on a 3.3V switched power source. Supplying the wrong voltage, or connecting to a continuous supply, can damage the HAT or prevent correct operation.

Check all wiring carefully:

  • Red wireVcc3v3_switched (power)
  • Black wire → GND
  • Signal wires → Corresponding button outputs

Proper cable management is also recommended to avoid strain or accidental disconnection inside the extension casing.


Step 2 – Access Cloud Settings

Next, configure the keyfob through the AutoPi Cloud platform.

  1. Log in at my.autopi.io.
  2. Navigate to your device and open the Advanced Settings section.
  3. Locate the Keyfob Tab. If the tab is not visible, contact support@autopi.io to have it enabled.

Step 2

The Keyfob Tab provides the configuration options needed to activate the HAT and define button mappings. Without this configuration, the AutoPi device cannot interpret or forward keyfob button actions to your vehicle.


Step 3 – Enable and Configure the Keyfob

Once inside the Keyfob Tab:

  1. Enable the keyfob feature by pressing the Enable button.
  2. Set EXT2 as the output port. This assigns the communication channel used to interact with the HAT.

After enabling, press the Reset button under the Buttons section. This action will generate a default list of button mappings. These mappings represent the raw signals detected from your soldered wires.

You must now map each signal to the correct button function, depending on how the keyfob has been wired. For example, a button connected to a green wire may correspond to "Lock," while another connected to a yellow wire may represent "Unlock."

Carefully record your configuration so that the same mapping can be reused later if the device is reset or updated. It is good practice to name buttons clearly, using functional terms such as lock, unlock, trunk, or lights.

Step 3


Step 4 – Power Up the Keyfob

Before the keyfob can be used, you must explicitly power it on. The keyfob HAT does not receive constant power to prevent unnecessary drain on the device.

  1. Run the keyfob.power command from the AutoPi Cloud.
  2. Verify that the device is online and has a stable internet connection.
  3. Open the Live Terminal to interact with the device in real time.

Step 4

If power is not enabled, none of the keyfob actions will execute. You may also configure power to be enabled automatically on startup if frequent use is required.


Step 5 – Lock and Unlock the Vehicle

With power enabled and buttons mapped, you can now use the keyfob commands.

The main command is keyfob.action. The argument you supply to this command must match the button name you configured in the Keyfob Tab.

For example, if you created a button named unlock, the following command will trigger that function and send the corresponding signal to your vehicle’s central locking system:

Step 5

Typical actions include:

  • Unlock – Open vehicle doors.
  • Lock – Secure vehicle doors.
  • Trunk – Release trunk or rear hatch.
  • Lights – Flash headlights or activate hazard lights.

Each action depends on how the wires have been soldered to your original keyfob PCB. Always verify functionality in a safe environment before regular use.


Best Practices

To ensure reliable operation and safety:

  • Use consistent naming for buttons. Avoid spaces and special characters.
  • Document the wire colors and functions in your project notes.
  • Test each button individually before finalizing installation.
  • Consider heat-shrink tubing around soldered joints for extra durability.
  • If the vehicle does not respond, check the wiring orientation and verify that the AutoPi Cloud shows the device as online.

Troubleshooting and Support

If you experience issues:

  • Verify that CONN2 is used for the connection.
  • Confirm that Vcc3v3_switched is supplying power to the keyfob.
  • Recheck soldering to ensure solid electrical connections.
  • Confirm that the Keyfob Tab is visible and enabled in the AutoPi Cloud.
  • Run keyfob.power again to confirm that the HAT is active.

If the problem persists, contact support@autopi.io or reach out to your assigned sales representative. Provide details such as your device ID, wiring layout, and button configuration for faster resolution.