Notifications
Clear all

Can serial port be used when Arduino connected to power supply?

4 Posts
3 Users
2 Likes
127 Views
barrie
(@barrie)
Trusted Member
Joined: 3 months ago
Posts: 86
Topic starter  

I want to check variables when running two stepper motors drawing around 0.5A so probably not a good idea to run the sketch from the USB connection. Can the usb connection be used in parallel with a power supply in order to display the serial port? 

This topic was modified 3 months ago by barrie

   
Inq reacted
Quote
Inq
 Inq
(@inq)
Noble Member
Joined: 8 months ago
Posts: 959
 
Posted by: @barrie

I want to check variables when running two stepper motors drawing around 0.5A so probably not a good idea to run the sketch from the USB connection. Can the usb connection be used in parallel with a power supply in order to display the serial port? 

As a matter of fact, I'm doing this exact thing as I write this:

  • 16V power source (4) 18650 batteries
  • 16V goes to two A4988 stepper motor drivers AND to DC-to-DC converter to output 5V
  • 5V goes to 5V pin on ESP8266
  • While programming, I'm using USB to the computer for compiling and Serial.print type statements for debugging.

however, I am using an ESP8266 instead of an Arduino.  I've always assumed that an Arduino is more robust than an ESP8266, but you may want to wait for someone else more hardware oriented to chime in.

VBR,

Inq

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, Access Point Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
Ron reacted
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3403
 

@barrie Indeed even USB 3.0 and 3.1 are only 900ma. However, for stepper motors, we always recommend they be powered separately from the board, not through the pins. UNO pins are 20ma.

USB for debug in conjunction with seperate power for stepper is fine.

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon


   
ReplyQuote
barrie
(@barrie)
Trusted Member
Joined: 3 months ago
Posts: 86
Topic starter  

@Zander @inq Thank you.Starting to get the hang of this peculiar but interesting environment.


   
ReplyQuote