I tried to change the baud rate of my OpenLog while it was connected to Hyperterminal. A message appeared stating: “moving to 'new baud rate” and just stuck there. I disconnected it(probably shouldn’t have) from hyperterm. then reconnected. I get the ‘12<’ alright, but if I try to ctrl-z, or hit any button the terminal fills up with endless ‘12<’, non stop..
I have tried:
1)if you get OpenLog stuck into an unknown baud rate, there is a safety mechanism built-in. Tie the RX pin to ground and power up OpenLog. You should see the LEDs blink back and forth for 2 seconds, then blink in unison. Now power down OpenLog and remove the RX/GND jumper. OpenLog is now reset to 9600bps.
It did just as stated, no help[
2)reset manually, get a small bit of wire and find the reset connection on the 4 hole SPI interface – it is the square connection hole near the “O” where it says OpenLog on the silkscreen. Short that pin to a ground – the connector for the 6 pin at the opposite corner is ground, as is the metal case for the micro SD card (which is directly below the reset hole). The bootloader is only active for a fraction of a second so you need to hit enter and do the reset at the same time. You can also disconnect one of the power lines (e.g. GND) and reconnect it just as you press Enter to run the avrdude command.
Done so, didn’t help.
3)Redownloading ‘Openlog files’, reflashing main.hex - nothing helped.
Anybody have any ideas of how to get it out of that endless loop?
I had it working just fine while connected to arduino pro, using the following arduino sketch. (I should have left well enough alone) :oops: :roll:
Reads incoming electronic pulses on arduino dpin3, saves data to SD card as pulses/sec and the corresponding seconds of time.
unsigned long tme = 0;
unsigned long ret = 0;
int length = 6; //not used
volatile int y = 0;
//int seqn = 8123; //used for test purposes
int ylast = 0;
int ynow = 0;
void setup() {
Serial.begin(9600);
attachInterrupt(1, pulsin , FALLING); //using arduino pin3
}
void loop() {
while (millis() <= 300000){ // Allows data collection for 5 minutes, can be changed
tme = millis();
if (tme - ret >= 1000){ //results in 1-sec readings
int secs = tme/1000;
Serial.print ("secs = ");
Serial.print (secs);
Serial.print("\t"); // prints a tab
ynow = (y - ylast); // y = sum of pulses from interrupt/sec
ylast = y;
ret = tme;
Serial.print ("ynow = ");
Serial.println (ynow); //= # of pulses/second(just read)
}
}}
void pulsin(){ //interrupt on 3
y = (y + 1); //reads each incoming pulse, adds to total each second
}
/*Connect the following pins:
OpenLog VCC to Arduino 5V
OpenLog GND to Arduino Gnd
OpenLog TXO to Arduino dPin 0(RX)
OpenLog RXI to Arduino DPin 1(TX)
OpenLog grn to Arduino Serial pin RST(GRN)*/