I wrote a servo and projector module in python to test the Raspberry Pi 2's control over each. The servo uses the GPIO pins, so I used the RPi.GPIO module that comes with the Raspian. The projector needed pygame, which also comes with Raspian, to take over the display. You can download these modules here. With the modules done, I realized I didn't want to access these controls by command line forever, where I would forget the commands.
My options at this point are:
- Create a custom server and client for both the Raspberry Pi 2 and my PC using TCP/IP sockets
- Create a webserver on the Raspberry Pi 2 and connect with a browser on the PC
- Code a webserver on the Raspberry Pi 2 with Python and connect with a browser on the PC
I then wrote a Python script to control the printing process. My script you can download here.
No comments:
Post a Comment