I'm surprised no one else has spotted that the MOSFET used is not a logic level MOSFET.The IRF540N, because it is not a logic level type, will not switch fully ON as the controller can only provide 5V to the gate.The IRF540N needs at least twice that gate voltage to operate efficiently.That is the reason it will get hot with high duty cycles, replace with a "logic level" specified MOSFET and your LEDs will be brighter and your circuit run cooler...Tom..
Reply Upvote Hi, you may find it in the long run better to fit a 4k7 pullup resistor to the DHT22 signal output pin. As this is needed with this sort of single wire comms system.See the DHT11 example pictured.Tom..
Hi, I like your project, BUT!!!Where is the circuit diagram, NOT A FRITZY generated one.What are your potentiometer values and where did you purchase them?What are you using to power the project?Thanks Tom
Hi,Can I suggest that instead of making the robot go right all the time, then left if detected.You make the robot got forward and only got right or left if detected.That way it won't zig zag so much.Tom...