We construct an example of a group G=Z2×G0 for a finite abelian group G0, a subset E of G0, and two finite subsets F1,F2 of G, such that it is undecidable in ZFC whether Z2×E can be tiled by translations of F1,F2. In particular, this implies that this tiling problem is aperiodic, in the sense that (in the standard universe of ZFC) there exist translational tilings of E by the tiles F1,F2, but no periodic tilings. Previously, such aperiodic or undecidable translational tilings were only constructed for sets of eleven or more tiles (mostly in Z2). A similar construction also applies for G=Zd for sufficiently large d. If one allows the group G0 to be non-abelian, a variant of the construction produces an undecidable translational tiling with only one tile F. The argument proceeds by first observing that a single tiling equation is able to encode an arbitrary system of tiling equations, which in turn can encode an arbitrary system of certain functional equations once one has two or more tiles. In particular, one can use two tiles to encode tiling problems for an arbitrary number of tiles.