Automatically Start Obstacle Detection System on BeagleBone Black at Boot
still based on myquestion on developing an obstacle detection system using a BeagleBone Black running Embedded Linux using HC-SR04 ultrasonic sensor to measure distances and displays the measurements on a 16x2 LCD screen, how do i ensure my obstacle detection system starts automatically when the BeagleBone Black boots up
Solution:Jump to solution
To start your obstacle detection system automatically on BeagleBone Black boot-up:
1. Create a systemd service file (
obstacle_detection.service
) in /etc/systemd/system/
2. Enable the service: sudo systemctl enable obstacle_detection.service
3. Start the service: sudo systemctl start obstacle_detection.service
...3 Replies
Hey @Boss lady follow this https://stackoverflow.com/questions/28854705/executing-a-script-on-startup-using-beaglebone-black
Stack Overflow
Executing a script on startup using BeagleBone Black
I have an a.out which I want to run when my BeagleBone boots up. It is actually a socket server which I want to start as soon as the BeagleBone powers up. I tried to put this in /etc/init.d, but it...
Solution
To start your obstacle detection system automatically on BeagleBone Black boot-up:
1. Create a systemd service file (
obstacle_detection.service
) in /etc/systemd/system/
2. Enable the service: sudo systemctl enable obstacle_detection.service
3. Start the service: sudo systemctl start obstacle_detection.service
This will ensure your system starts automatically on boot.Also check this out
https://github.com/luigif/hcsr04
GitHub
GitHub - luigif/hcsr04: Beaglebone Black PRU code for HC-SR04 sonar
Beaglebone Black PRU code for HC-SR04 sonar. Contribute to luigif/hcsr04 development by creating an account on GitHub.