Hello, I am an electrical engineering student, in one of our courses we were asked to build a car and a transmitter. The transmitter is built from an Arduino controller, an infrared LED and a transistor, the transmitter transmits a signal at 38kHz and an envelope frequency of 100Hz and 200 Hz(I will explain later why). The goal of the vehicle is to locate the same signal to reach it and at the same time avoid obstacles and do it in the fastest time. The test is divided into 3 stages: in the first stage locate the signal at a distance of max 10 meters and without obstacles. The second step is to locate the signal with obstacles and the third step is like the second step only that the teams compete with each other and each one finally has to reach the transmitter with the envelope frequency chosen by the lecturer 100 or 200 in the fastest time.
My car works relatively well but I would love to know if anyone here thought of a better option.
In the car I installed 3 TOSP38 receivers, ultrasonic sensors and Arduino Mega.
Problems/inefficiency in the project:
- When there is an obstacle the vehicle does not receive a signal (the obstacle blocks the geometric path between the transmitter and the receivers) I solved the problem by making the vehicle move around the room until it recognizes it but in a random and ineffective way.
- The vehicle does not drive continuously, but drives a bit, checks the receivers, checks the ultrasonic sensor, and if there is a signal and there is no obstacle, it drives in the same direction. Here there are 2 problems. The first is that the length of time that the car drives is determined by me. Driving to stop takes precious time that is wasted (I was thinking of working with interputs or an additional Arduino for each sensor and using I2C communication) will such use ensure continuous travel?