Hi, I am creating a PID controller for my DC motor and I would like to access the serial plot to view the results. I have a 12V battery supplying the motor driver and regulated 5V for the Arduino Nano. If I plug the Nano into the computer via a USB while turning on the 12V battery, will that damage the Arduino? If so, what is the best approach to this? Thank you in advance.
There should be a Schottky diode between Vusb and the Nano's 5V line. There's about a 0.34V drop across it, which will drop a 5.1 Vusb down to 4.76V, which is still enough to run the Nano. As long as your regulated 5V isn't below that, the diode will be reverse biased and no current will flow from Vusb to the Nano or vice versa.
So It shouldn't be a problem. But it'd be worthwhile checking to make sure that diode is there if you've got a clone, just to be safe.
Thank you for your reply. Unfortunately, I do not have an extra nano. But if I connect the nano via USB to the computer, should I remove the 5V regulator then? just to confirm. Here's a screenshot of the schematic right now.
I do that frequently with classic Nanos (Ver 3), no problems so far.
You do not have a Nano in your schematic: ABX00027 is a Nano 33 IoT.
So what is it? A classic Nano or a Nano 33 IoT?
The devil will be in the details.
Hi, I am trying to design a PID controller for my dc motors. It was working just fine but all of a sudden, it stopped working. I notice the microchip also gets really hot after a few seconds I plug in the external power supply. I tried to upload a simple code (turning on and off the motors for a few seconds) and it still overheats. Is it the current that's causing the problem?
I appreciate your help in advance!
Here's the motor: https://www.pololu.com/file/0J1736/pololu-37d-metal-gearmotors-rev-1-2.pdf
Driver: https://www.pololu.com/file/0J1510/TB67H420FTG_datasheet_en_20170818.pdf
Battery: https://www.amazon.com/dp/B00MF70BPU/ref=emc_b_5_t
Do you mean the chip on the driver or on the nano?
The datasheet you give is for the TB67H420 but your schematic shows the VNH3SP30 IC
Do you have the datasheet for the module your are actually using?
Which Nano? Your schematic shows a Nano33 IoT. If it's a classic Nano, your wiring of the 5V output of the 7805 to Vin is incorrect as Vin requires 7V on a classic Nano; for a classic Nano it should be wired to the pin labeled Vusb.
Your two or more topics on the same or similar subject have been merged.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
Thank you.
The chip on the nano.
And I am using TB67H420 but I just couldn't find it on Fusion 360. This is the data sheet of the driver: https://www.pololu.com/file/0J1510/TB67H420FTG_datasheet_en_20170818.pdf
I am using the classic nano to test out the code for now, but will switch to Nano 33 IoT for my final project.
From the classic nano data sheet, doesn't Vin take in 5V-12V?https://docs.arduino.cc/resources/datasheets/A000005-datasheet.pdf
'VIN' → 8 to 12V
This is, most likely, why Arduino discourages applying external 5V to '5V'.
You could use a HC-05/06 on pins 0,1 - when not connected to USB - and send/receive data using a BT serial terminal app on your mobile.
On the classic Nano, VIN is connected to the input of a LM1117IMPX voltage regulator. From the datasheet:
"The LM1117 is a low dropout voltage regulator with a
dropout of 1.2 V at 800 mA of load current".
So, to get 5V out, you have to put at least 6.2V in.
LM1117IMPX Datasheet
I see. Thank you so much for the information. If I am already using 12V battery for my motor and driver, can I just connect this to the nano? Since Vin takes up to 12V?
Yes, but only with the understanding that,
as has been mentioned, 12V car systems are 'fraught with peril' (noise, spikes, load dumping, etc.)
The results can sometimes be most humbling.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.