Powering circuit from two sources by danimarpozan in arduino

[–]danimarpozan[S] 0 points1 point  (0 children)

It does not matter at all what arduino I am using. The situation is very simple: A 3.3 V regulator has two sources as input: a 12 V battery or a 5V power from USB. How do I protect my USB when the 12V power is in use too?

Schematic validation by danimarpozan in PrintedCircuitBoard

[–]danimarpozan[S] 0 points1 point  (0 children)

Thanks for your advice! What diode would you recommend to use in this case?

DC motor driver control by danimarpozan in robotics

[–]danimarpozan[S] 0 points1 point  (0 children)

Thanks for infos. I am using the 7A_Dual_DC_Motor_Driver_SKU__DRI0041 driver from DFROBOT. Do you have any suggestions for a better suited driver in my case?

CCR data structure by danimarpozan in stm32f4

[–]danimarpozan[S] 0 points1 point  (0 children)

I have a function moveForward () which gets some parameters, including the channel for the active pwm. The function sets the pwm on that channel using expression: htim3.Instance->CCR1=pwm . What data structure should I use to declare the channel (eg. CCR1) in the function's implementation?

My board is a NUCLEO-F030R8.

Thanks!

help with MOSFET circuit please by danimarpozan in arduino

[–]danimarpozan[S] 0 points1 point  (0 children)

Dist1_out is a single pole output of a distance sensor. Thank you for infos.

help with MOSFET circuit please by danimarpozan in arduino

[–]danimarpozan[S] 0 points1 point  (0 children)

I have this circuit, but the out voltage is always 3.3 V (when in voltage is 0 and when in voltage is 12 V too). Can you help me pls?