im kinda new to arduino and was wondering if anyone could help me with the code, I want to try and run so heres what im making the robot out of...
-adafruit trinket pro 3.3 v (im using usb to uplad code)
-6v battery
-2 continous rotation servos (9g Continuous Rotation Micro Servo)
-Mini Spy Camera with Trigger for Photo or Video (this ones optional becuase i also have a non-pro trinket 3.3v which i can seperatly connect the camera to but the camera just has 3 wires red black and white which is for the trigger wire.
- polu carrier digital distance sensor (min 2 cm max 10 cm)
(I am planning on making the robot out of a 3d chassie)
basically what i want the code to do is when the sensor reads an abject about 8cm away it was go back just a little and the turn left or right.
one more thing i want to add is that i have seen a lot of people using ultrasonic sensors as the main sensor of their obstacle detection robot so if its easier you can write the code for an HC-SRO4 ultrasonic sensor but it would be apreciated if you used the polu carrier digitsl distance sensor 10cm.
anyways this may be a lot to ask and if it is please give me some tips on how i can make a code like this while having almost no experience with arduino coding. thanks!