Hi I'm new to this and have built a Arduino obstacle avoidance robot by Lavin with ultrasonic sensor but I'm having difficulties with it not seeing objects on the side and want to add IR sensors to detect side objects and for avoiding steps so it doesn't tumble down our steps to it's death. My thoughts are one pointing directly down right in front of the robot to detect the floor and 2 at the side at say 120 degrees from the centre of the front.
Honestly I'm not good at coding yet and have very little time to learn this right now as I started working for myself and getting my business up and running takes a lot of time and effort.
This project is to surprise my wife with a robot that can vacuum or mop via a hooked trailer that is already made and works.
Sorry for the lengthy post but the more information you have the better the help .
What have You achieved so far? Please post schematics and code.
Yes, you do, if you want it to work.
How to solve your problem: You sweep and mop until she builds the robot.
Here's a time-sharing SR04 simulation that she can incorporate.
It looks like you have D3, D8 and D11 free to use for your added SR04.
I’m unsure what it is you want from the forum ? Can you be more specific
What the robot is assembled and working with ultrasonic sensor that includes the coding for it to work minus the IR coding.
IR will be connected to which pins I'll read from the code. So either total recode or paste in code .
If I get time I'll check it out
Mostly need the coding
total recode of what?
So there's a trailer that already sweeps and mops and just needs an autonomous tractor to pull it?
The Lavin Arduino robot pulls the trailer but the ultrasound sensors fail to see walls especially when it nearly runs parallel to the wall which it then rubs against and sometimes it fails to get it away from the wall thus I need IR sensors that can detect this which I have but I need code to integrate it with the original code or total recode.
Also the house have some steps that it must see so it won't tumble to it's death.
That is your code not working, the robot only does what it is told.
These sensors are not omnidirectional. For every direction you want to sense, you need another sensor.
Put two on top of servos and oscillate the servos opposite to each other.