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?