MakerBot Print is our newest print-prepration software, which supports native CAD files and STL assemblies,
allows you to interact with all your printers via the Cloud, and many other exciting new features.

Download Now

RFID trigger servo

Please Login to Comment

I'm working on a RFID door lock. I have the reader set up on my pi, I just need it to trigger a servo motor so it will move the mechanism. I'm closer to the novice side of coding, and I'm a "learn as I go" type. Could anyone point me in the direction as to how to code this to happen? Thanks

If you just starting with Pi, stick to python, there are more examples online. If you know a bit of C go with WiringPi

A pi might be overkill and over complicated for your application. You've got to match or convert the Pis 3.3v pins to your servo, programming, libraries ect. An Arduino with with servo library and an RFID reader might be easier to wire and to program.

I get that. I have all the parts I need already and have an extra pi zero w sitting around, so that’s why I’m using that.

WireingPi could be used to control a servo. Gorden depreciated it last year, but should still work for your project.

Comment has been deleted

Yeah I was thinking the same thing. If OP needs internet or smart home capability there are still options like the esp32 which is really cheap and easy to work with.

There's a lot of servo example code out there for arduino, not so much for Pi and even an ESP32 or Arduino Wi-Fi would be cheaper hardware. Just picked up one of those little ESP32s last week. Can't wait to play with it.

Comment has been deleted

There are a lot of examples available. Try a Google serach using the terms:
servo "raspberry pi"