I got my Arduino Uno from school and it was working fine until recently it cannot be recognised in the ports anymore. I can only connect to the Bluetooth one. I didn't do anything to the Arduino either. I have tried replugging, changing to other USB ports and also reinstalling the software. I am using a MacBook Pro and macOS Sierra Version 10.12.6. Is there any way to troubleshoot my Arduino ? or is there an alternative way to upload my sketches to the Arduino?
I am using the Arduino to drive a bipolar stepper motor with a H-Bridge and with the example code provided within the software.
Please help, my project is due soon..
Have you tried disconnecting everything and only connect the Uno using the USB cable?
You will probably have to provide details as to what you have/had connected and how. And probably nobody knows which code you're talking about; post it here using code tags ([code] and [/code]
).
Yes, I've done as mentioned.
I am using the ([stepper_speedControl]) :
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
int stepCount = 0; // number of steps the motor has taken
void setup() {
// nothing to do inside the setup
}
void loop() {
// read the sensor value:
int sensorReading = analogRead(A0);
// map it to a range from 0 to 100:
int motorSpeed = map(sensorReading, 0, 1023, 0, 100);
// set the motor speed:
if (motorSpeed > 0) {
myStepper.setSpeed(motorSpeed);
// step 1/100 of a revolution:
myStepper.step(stepsPerRevolution / 100);
}
}
And the connections of my full circuit is following exactly from this website:
http://www.instructables.com/id/Arduino-How-to-Control-a-Stepper-Motor-With-L293D-/
Also, my circuit has been working well with the Arduino for the past 2 weeks. It just stopped working because it cannot be detected on the software as mentioned before.
Thank you so much for replying,I appreciate it alot.