Hello guys.
I already build a sumo robot but need to program it using PIC18F4550.
The problem is i not good in programming. always got error.
can someone share the coding for this robot. i really appreciate
pleaseeee
the program can control:
* obstacle sensor - Obstacle infront (moving forward to obstacle), no obstacle (turn around)
* line detection sensor - white line (moving), Black line (stop)
* motor control (left and right) - forward, reverse, turn around, stop
which is robot can't be outside from the black line. when it's detect the black line it will stop and reverse the motor.
obstacle sensor using ultrasonic sensor which detect obstacle in-front of it.
When something in-front, it will move forward or when nothing in front of it will turn around to find the obstacle infront using this sensor.
You can assumed any port as output or input in the program as long as i understand.
I already build a sumo robot but need to program it using PIC18F4550.
The problem is i not good in programming. always got error.
can someone share the coding for this robot. i really appreciate
pleaseeee
the program can control:
* obstacle sensor - Obstacle infront (moving forward to obstacle), no obstacle (turn around)
* line detection sensor - white line (moving), Black line (stop)
* motor control (left and right) - forward, reverse, turn around, stop
which is robot can't be outside from the black line. when it's detect the black line it will stop and reverse the motor.
obstacle sensor using ultrasonic sensor which detect obstacle in-front of it.
When something in-front, it will move forward or when nothing in front of it will turn around to find the obstacle infront using this sensor.
You can assumed any port as output or input in the program as long as i understand.