SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
#221690
Hello, i'm building a balancing robot using the Redboard Artemis and a MPU-6050 using stepper motors.
Steppers is driven by a Dual Stepper Motor Driver Shield for Arduino (3.3volt).

Everything works with core version 1.2.1. But i want to use the BLE for control so upgraded to version 2.0.3.
The driver board use A0 and A2 for enable signal for the steppers. Now only pin A0 works. A2 is low and does not
disable the driver when it falls.

Did some testing with a small program going back to 1.2.1 . Now all pins A0 to A5 responds on digitalwrite high and low.
Back to 2.0.3 and only A0 would respond to a digitalwrite.

Found a topic that mention something like this, but it give no answers.

Best regards
Ken
#221788
I have been having terrible luck uploading a sketch. It initially was able to upload (I am using the ASB as the SVL was giving USB ports, resetting the Artemis, and powering down and up with the.That being said I find it unusual that your RedBoard Artemis Nano You can post new topics in this forum





Paycheckrecords
#221855
the definition of the ADC pins is missing in many of the variants. below an example of how to define and read/ test the different ADC channels correctly. (tested on ATP as it has all the pins)
Code: Select all
// define the pins on the Apollo3
//     name pin
#define A0 16
#define A1 29
#define A2 11 
#define A3 31
#define A4 32
#define A5 33
#define A6 34
#define A7 35

int ADCpins[] = {A0,A1,A2,A3,A4,A5,A6,A7};

void setup() {
  Serial.begin(115200);
  while(! Serial);
  Serial.println("\rRead analog");
  Serial.println(sizeof(ADCpins)/sizeof(ADCpins[0]));
}

void loop() {
  static uint8_t ind = 0;
  int pin = ADCpins[ind];
  
  Serial.print("A");
  Serial.print(ind);
  Serial.print(" Pin ");
  Serial.print(pin);
  Serial.print(" ");
  Serial.println(analogRead(pin));
  
  ind++;
  
  if(ind == sizeof(ADCpins)/sizeof(ADCpins[0])) {
    Serial.println();
    ind = 0;
  }

  delay(2000);
}
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum