flok
Active member
Hi,
I designed some hardware: 2 analogue inputs (-5...5V), 4 digital input (one for which I forgot to add a voltage divider). It also has a din midi plug.
https://vps001.vanheusden.com/~folkert/hwteensylc.pdf
To test it, I wrote a simple arduino script which shows the readings of the digital inputs and the analog readings.
The proble now is that it is very unreliably; sometimes it runs for ages but often it crashes after 1 or 2 lines of output.
Apart from the missing voltage divider in the digital input, are there any other hardware problems?
I designed some hardware: 2 analogue inputs (-5...5V), 4 digital input (one for which I forgot to add a voltage divider). It also has a din midi plug.
https://vps001.vanheusden.com/~folkert/hwteensylc.pdf
To test it, I wrote a simple arduino script which shows the readings of the digital inputs and the analog readings.
The proble now is that it is very unreliably; sometimes it runs for ages but often it crashes after 1 or 2 lines of output.
Code:
void setup() {
Serial.begin(115200);
pinMode(2, INPUT);
pinMode(5, INPUT);
pinMode(11, INPUT);
pinMode(12, INPUT);
Serial.println(F("Go!"));
}
void loop() {
Serial.print(analogRead(A0));
Serial.print('\t');
Serial.print(analogRead(A1));
Serial.print('\t');
Serial.print(digitalRead(2));
Serial.print('\t');
Serial.print(digitalRead(5));
Serial.print('\t');
Serial.print(digitalRead(11));
Serial.print('\t');
Serial.print(digitalRead(12));
Serial.println(F(""));
usbMIDI.sendNoteOn(0x40, 0x7f, 1);
delay(10);
usbMIDI.sendNoteOn(0x40, 0x00, 1);
}
Apart from the missing voltage divider in the digital input, are there any other hardware problems?