Auto Connection of the Bluetooth and Auto Running the Camera on Raspberry Pi Zero

I saw people have problem with connecting or running commands/prog

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1:

creat new bash file

$ touch

edit the file

$ sudo nano

add the following:

#! /bin/sh

sudo rfcomm connect hci [MAC]

sudo /home/pi/myProgram

Step 2:

make the sh file executable

$sudo chmod +x

Step 3:

edit the crontab :

$sudo crontab -e

then add:

@reboot /home/pi/

This will make the Bluetooth connection to the pi automatically after a reboot and run any programs that help for running the camera.

for example, if you have a python script for taking a video this will work.

Be the First to Share


    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest