Blink pin/LED freezes Artemis

Hey guys!

I am thrilled to say that my circuit boat is coming together very well! There were a few mistakes, such as routing TX and RX oppositely the wrong way… doh

Everything else is looking amazing though and I am super excited!! I can’t wait to show you.

There’s one problem I have run into though. Blinking LED_BUILTIN (pad 12?) aka ~D13, freezes the Artemis.

The RTC can spit out the time over UART just in a loop just fine, but blinking the small LED I have seems to be freezing the uController.

Any thoughts? There’s not much to the code yet, just some spattering of what it’ll start to turn into

#include <stdint.h>

//#define blinkPin 5
#define blinkPin 13
#define HVSupplyPin 29
#define ButtonPin 28
#define OEPin 5 //   !pin
int latchPin = 26;
int clockPin = 24;
int dataPin = 3;
int clearPin = 25; //   !pin

void setup()
{
  pinMode(blinkPin, g_AM_HAL_GPIO_OUTPUT_4);
  pinMode(HVSupplyPin, OUTPUT);
  pinMode(ButtonPin, INPUT);
  // Shift registers
  pinMode(OEPin, OUTPUT);
  pinMode(latchPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  pinMode(clearPin, OUTPUT);

  // clear shift registers
  digitalWrite(clearPin, LOW);
  delay(1);
  digitalWrite(clearPin, HIGH);
  digitalWrite(HVSupplyPin, HIGH);
  Serial.begin(115200);
  delay(100);
  Serial.println("Hello from Artemis!"); //RX1 & TX1 pins
  delay(3000);
  digitalWrite(HVSupplyPin, LOW);
}

void loop()
{
  //digitalWrite(blinkPin, HIGH);
  digitalWrite(OEPin, HIGH); // HIGH is off
  delay(200);
  Serial.println("hello");
  //Serial.println(analogRead(ButtonPin));
  digitalWrite(OEPin, LOW);
  //digitalWrite(blinkPin, LOW);
  //SetNixieDigits(1,2,5,9);
  delay(500);
}

Edit:

It seems as though reducing the on-time of the blink helps… but even 10ms ON, and 1000ms OFF still freezes after a minute. Any thoughts on the symptoms?

Which Artemis product are you using?

Hi Brandon,

I am using the module,

https://www.sparkfun.com/products/15484

Did you try prototyping this with the Artemis RedBoard or other carrier boards first?

Not in this case, I played around with them a little. I think the issue is coming from my 3.3v regulator, it’s running sometimes between 3.4 and 3.6. I looked up the Apollo3 datasheet and it appears that I am teetering on the edge of its maximum.

Oddly enough it drops to 0.7V sometimes.

I’m not sure why yet… :frowning: It’s probably the source of the issue though.

[](https://imgbb.com/)