Baterie do projektu arduino - Wersja do druku +- Arduino Polska Forum (https://forum.arduinopolska.pl) +-- Dział: Korzystanie z Arduino (https://forum.arduinopolska.pl/dzial-korzystanie-z-arduino) +--- Dział: Piaskownica (https://forum.arduinopolska.pl/dzial-piaskownica) +--- Wątek: Baterie do projektu arduino (/watek-baterie-do-projektu-arduino) |
Baterie do projektu arduino - klklklk - 13-03-2024 I am bulding an arduino based robot. The robot is supposed to drive away from the light. I'm using:
Kod: // Definicje pinów czujników światła There is no problem with photoresistors or code connected to calculating motorspeed, it is printed on serial monitor correctly, but the wheels won't spin, the motors make the noise typical for PWM. Is there something wrong with the voltage or something? Should I use different batteries? Maybe use resistors with h-bridge? I tried powering the whole project with just 9V battery connected to arduino connected to breadboard with h-bridge, it didn't work too. Any ideas what I am doing wrong? RE: Baterie do projektu arduino - kaczakat - 14-03-2024 You are loosing about 2V on L293D, so there rest only 4V for motor, this is maby too low for it. 9V batter have small capasity, soo this set won't work too long, also have small current output, not enaught to power motor, better idea is to use set of AA acu. Czemu w ogóle piszesz po angielsku, skoro komentarze w kodzie masz po polsku? RE: Baterie do projektu arduino - klklklk - 19-03-2024 (14-03-2024, 04:16)kaczakat napisał(a): You are loosing about 2V on L293D, so there rest only 4V for motor, this is maby too low for it. 9V batter have small capasity, soo this set won't work too long, also have small current output, not enaught to power motor, better idea is to use set of AA acu.Zamieniłam baterie na 6xAA i nadal nie dziala. RE: Baterie do projektu arduino - MadMrQ - 19-03-2024 Sprawdź w takim wypadku, czy silnik rusza przy napięciu z baterii 6V. Potem dołącz drugi z nich i zobacz, czy oba wystartują "na twardo" przy zasilaniu z 4 baterii AA. Silniki mają w swojej naturze pobór znacznie większego prądu niż znamionowy w momencie startu. Tak jak pisał kolega @kaczakat L293D powoduje duże spadki napięcia i może uniemożliwić start silnika. Drugą z akcji, którą możesz dla testów zrobić to płynne narastanie napięcia zasilania dla silników przez stopniowe zwiększanie wypełnienia PWM i sprawdzenie, czy taki softstart uruchomi silniki. Mostek masz o wydajności 600mA na silnik więc może być mało dla zestawu, który masz. |