Proximity Car Key, RFID mod

I’m not so sure. If the key is powered on, the button on the handle will still work just fine. It’s what I use daily anywho. And then when you walk away the door automatically locks when the fob is out of range. In the simplest terms I think just giving the key power is enough.

I’d like it to unlock the car as well so I’ll wire that up, but I think it’s a nice to have not a nessesity.

Also yes have the soft top. Was planning on hiding the key inside the door panel, and putting the antenna in the front tiny window panel.

That said!! How do you like your ND? love these things

Maybe your car has different firmware but I want you to try this. Go unlock the car, drop the keyfob inside, then close and try to lock the car with the button on the handle.

I agree that won’t work, the car won’t lock the key in it. The idea is to have the key turn off when the car turns off.

Present tag → power key for 30 sec-> press handle button to unlock → turn on car → keep key powered while car is on → turn car off → wait 30 sec → power down key.

If the car isn’t turned on within that 30 seconds turn off key again

90% sure the key needs to have a working battery in order for the car to know its present, but I’ll test that out (wouldn’t have thought of trying so thank you)

The issue I’m seeing isn’t with the fob not working its with the button on the door not working when the fob is not outside of the vehicle and within the read range of the exterior antennas. Otherwise anyone could open the door even after you have locked yourself inside the vehicle.

edit: The car might also be looking for the fob outside the car and moving away for the automatic door locks to work.

edit2: there will have to be some testing by removing and reconnecting the battery in various scenarios

1 Like

Ahhhhhhhhhh light bulbs. I’ll try and report back

Will need to do more testing. But if the key is inside the car you can unlock it from the door handle, but once inside with the door locked the door handle button is disabled.

Test plan tomorrow is to put the key in the car (battery in) unlock the door via the handle → Turn car on → turn car off → disconnect key battery → see If the car locks.

Feels like this should cover me?


I dont know if this will be of use to your specifc scenario, but @turbo2ltr did a great job of his car project…there maybe some golden nuggets in his post that could help you out…:man_shrugging:

Yeah you’ll have to do some scenario testing to fully understand all the behaviors before you decide how to handle it. For me, the outside button would not work with the fob inside the car. So I simulated the unlock button press when there was a RFID scan. On my fob, I needed to wait a bit after powering up the fob before I simulated the unlock button press. I also had to disable the “hey dummy you left the key in the car” horn beeps. Fortunately my car had a way to turn that off. Not sure all do.

I didn’t use a battery. I used a 3.3v regulator so I don’t have to worry about the battery dying.


@Barediver I thought I would give this thread a bump and see how things are going.

So far so good. Still waiting on shipping from china, but have been able to get the xiao and a pn532 from amazon working so far. At this time using circuitPy which is kinda cool if it works. I need to verify If I can use 3rd party c libraries so I don’t need to learn c :stuck_out_tongue:

Now I need to get the breadboard up and running so I can test this thing from a battery 9v?. and then start connecting the key.

One issue thus far is trying to understand how to step down voltages correctly. The car is 12v from the battery but needs to be stepped down to 5v and then again to 3v for the key fob.

Progress is being made, but it’s slow going as I’m in WAY over my head on the electronics side. Fun though as it’s one hell of a challenge. Once I get the breadboard up I’ll post a pic or two.

1 Like

I’m glad to hear things are progressing. For stepping down voltages you may consider looking on amazon for “3.3v buck converter” for instance. A variety of places have them and some are quite small. We do have a bunch of people here who are good with electronics. Feel free to ask for help when/if you get stuck.

Here’s where I’m at so far. Can read the tag and the power led for 1 sec if it’s mine. If another tag it just ignores… so “authentication” done lol. And in theory “unlock car” done-ish

1 Like

Hey, check out the simpleAC code. I’m sure it will do most of what you want and is pretty fully commented.

1 Like

any microcontroller requirements? reason I’m asking is aparently the xiao using circuitpython wont do mp3. not sure if that’s a library support thing or a hardware thing

It should run on most arduino compatible microcontroller. The mp3 thing is for a mp3 module just leave it disabled if not wanted.

That Clarketronics dude, really looks like he know his stuff.




I keep meaning to dig into this, but I haven’t had time lately

Fake it till you make it, in all honesty the brain child was @Chimpofm I just had fun with the code and learnt a ton along the way.

I’m pretty happy with it and it really does feel like a viable HF alternative to a xAC.


Just swapped over to the pro micro to tinker with the repo… Sadly got myself wayyyyy in the weeds with voltages… the Xiao has 5v out and 3.3v out which woks with the pn532… but the pro micro I have is a 5v out. Trying to now understand how to reduce voltages from 5 to 3.3 for the pn532 and then again to 3v for the fob… in all honesty feeling super lost

for dropping from 3.3 to 3 you could use a voltage divider. The keyfob doesn’t use much power so any loss is minimal. Here is a calculator for that

Alright, prototype in a working state. Still need to tinker with the simple ac code to get it to do what I want. but card is read → on success key gets power, car unlocks… huge fucking win in my book!!

Next steps

-understand how to remove these two buck converters from the project
-modify code to deal with both inputs(car off/ car on)
-wire up other buttons like unlock and trunk

  • 3d print enclosure
    -maybe come up with a pcb?