If you see attached my code, I'm trying to create an autonomous tracked vehicle as part of an intercompany competition at my unit.
NOTE
I've never touched coding before this as I mostly work on vehicle electronics, and all I've managed to write is from what help I could get from friends in the business.
However, I cannot get my USS to read in the serial monitor, I can only get one (that's through Pin45 and 46) to read.
I have the echo's in Pin 18 (Tx1) Pin 16 (Tx 2) with the echo in the following series of Pin's.
Before I start working on telling the USS when to move each track, I really need to solve this problem, and for the life of me I cant figure out why! Any help at all would be greatly appreciated.
I'm using an Elegoo Mega2560 R3 and Deek-Robot motorshield, dug around both pin schematics in case I hade chosen the wrong pins and cant see anything?
EDIT I solved it myself, made silly mistakes!
Senor_Motor_Test.ino (2.72 KB)