I want to use my Arduino nano and a stepper motor along with the external power supply in the kit from the wall plug to create a rotating display base for a lithophane. I also want to use an LED light in the center as a backlighting and my current set up the stepper starts to heat up after about 10 minutes of use. In this first photo nano is being powered via USB plugged into my laptop stepper motor is being powered with the wall, plug adapter from the kit.
My next issue is powering the stepper motor, the nano, and the LED lights. The LED lights require 5 V I can possibly get away with two plugs running out of the unit my second picture. I am wondering if this is a good way to power, the stepper and the nano permanently by using the USB port coming off of the wall plug adapter in the kit and using it to power through the USB port.
The stepper motor itself is heating up. I am using the basic code out of the Arduino examples library for the stepper motor. The only thing I did to the code was to remove the counterclockwise rotation in the code so that it just runs clockwise pauses for five seconds and then runs Again continuously. Everything that I am using comes straight out of the most complete starter kit the UNO three project kit. The only component didn’t that didn’t come out of the kit is the nano.
Const Int Steps per revolution equal 2048;
Stepper My stepper (steps revolution,8,9,10,11);
Void set up() {
My stepper.set speed(10);
Serial.begin(9600);
Void loop(){
Cereal.print LN(“clockwise “);
My stepper.Step(Steps per revolution);
I am doing this on my mobile phone sorry if the code looks strange