1
$\begingroup$

I'm going to add a Raspberry Pi to my printer, which requires a 5 V source. I want to take this opportunity to also power the Arduino with that same source, as dropping 12 V -> 5 V is a quite big waste. I know the electronics don't consume much power, and the regulator can handle the heat, but why not?

I want to know how can I safely do this. Is it sufficient to just bent the pin from the RAMPS to the Arduino's VIN?

I'm also using TMC2209 stepper drivers. According to this: https://learn.watterott.com/silentstepstick/pinconfig/, these requires the 12 V line to turn on before and turn off after the 5 V. I wonder if this is true, as I haven't seen this anywhere else.

$\endgroup$
1
$\begingroup$

I would not recommend changing Arduino powering. You can either do as you say and power Arduino by giving it regulated 5V to Vin, but then the ATMEGA2560 still will be powered through the 5V voltage regulator. The voltage regulator (NCP1117ST50T3G) needs to be supplied with 6.5V to give out regulated 5V. So you will be powering the Arduino with some 4V, which might work, but it will be less reliable. But it is electrically safe.

Second option is to power Arduino through it's 5V pin. That is less safe, because the voltage regulator might have an over output-over-voltage-protection that will to load or short-circuit the 5V until it is 5.000V.

Regarding TMC2209. I have not seen any documentation that has any opinion on what order it shall be powered up and down.

$\endgroup$
7
  • $\begingroup$ Why not to just power Arduino via USB (5V), while the RAMPS itself is powered separately using 12V power supply? Doesn't it work this way, when we connect to Arduino from PC to sent G-code commands from a serial terminal? Connecting USB to already working printer is causing a board reset (at least in my case), and I always understood that it is ATMega switching the source of power. Please correct me if I am wrong. $\endgroup$
    – octopus8
    Feb 24 at 0:31
  • 1
    $\begingroup$ The Arduino will use 5V from USB, but only if Vin is not used. Yes, that will work. I must admit that Ihave not tested what happens if you actually feed Arduino >5V on either USB or 5V-pin. $\endgroup$
    – dotswe
    Feb 24 at 1:44
  • 1
    $\begingroup$ Reason for Arduino's reboot when USB is connected, is that most terminal programs set the pin/signal DTR high when connected. DTR and RTS are used to set the MEGA2560 in flash-mode. It is possible to avoid this, but reflashing will be more difficult. $\endgroup$
    – dotswe
    Feb 24 at 1:50
  • $\begingroup$ Powering the Arduino through the regulator is desirable because it reduce noise from SMPS. This is the only source I've seen about the TMC powering sequence: learn.watterott.com/silentstepstick/pinconfig. I never seen it anywhere else, which is partly why I asked the question $\endgroup$
    – leloctai
    Feb 24 at 2:40
  • $\begingroup$ The link says that permanent damage can happen to the TMC2209 if you remove 12V/24V while the stepper motor is powered (electrical current goes through the coils, but the stepper does not necessarily need to be moving). I agree that this could be a problem. But in the real world I think you will have enough capacitors on the main board that will make the power-loss to be so slow (several milliseconds) that this is not a problem. $\endgroup$
    – dotswe
    Feb 24 at 2:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.