Our group plans to do a project of 2 DC Motors moving in a different direction and speed that will depend on a certain reading by the DHT22 sensor. The motors will move only when we set it to move when a certain reading from the DHT22 is detected. We will use an Arduino Uno to program the devices and an L298N Motor Driver to help with the DC Motor. We are currently stuck in finding a reliable source of code for programming both the DHT22 and DC Motor. Is it possible if we can just combine the codes for detecting DHT22 and moving the motors? Any help will be greatly appreciated. Thanks!
Yes, that's the way to do it. Find a motor code and make sure You understand it. Then do the same for the sensor. Finally merge the two pieces if code into one piece of code.
Thank you. We appreciate your help. If it's not too much, could we also ask for some pieces of advice or tips on how to combine 2 codes? Thank you, once again!
Thank you for welcoming us! And yes, this is for a school requirement. Although new to this field, we had at least months of familiarizing ourselves regarding this field because we were required to research about the topic first. But we admit we still are lacking in some aspects especially if it's doing something all by ourselves or without a reliable reference that is hard to find. Thank you for the help! We are truly grateful for it.