Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

0

There are two issues: You SHOULD pull-up or pull-down the input pin when using pushbutton. You should detect the "press" and "release" event. Two above issues are mentioned in this tutorial


0

You should have just enough I/O with UNO, so long as you don't want to connect any other hardware/sensors. Since this is unlikely, it would be better to use another board like Mega, but I'll provide solutions anyway in case you want to try them out: Option 1: For 5 motors controlled with L298N boards you'll need 15 output pins, 5 of which should be PWM. ...


0

This answer is the summary of the comments of the question. The idea of the solution was originally mentioned by @Majenko. You powered the shield with about 6 Volts. The statement analogWrite(PWMA, 5); gives you (5/1024) ~ 0.5% of this 6 Volts at the output pin PWMA. This 0.03V are not enough to drive the motor. You should use at least 3 Volts to drive ...


0

There are some mistakes in the provided schematic: the nmos has to be connected to motor- the freewheeling diode has to be the other way around the resistor doesn't make sense. If it's meant to be a pulldown is has to connect the gate with ground and have a much higher value (~10kOhm). If it's meant to be an inrush limiter it has to be in series with the ...


0

DC Motors with a feedback line (so called PID Controller; https://en.wikipedia.org/wiki/PID_controller) would be the best way to do it. You need the motor as an actor and some sensors that sense the direction of the axis's of the gimbal. The PID controller should be very fast for smooth operation. (Perhaps an ESP32 is a better MCU for this purpose). The PID ...


Top 50 recent answers are included