I have been trying to remodel the Chinese airband receiver kit to combine the digital loacal oscillator. To install those into the original alumnum case we shall stop to use 1602LCD.
RTC.begin(); if(!RTC.isrunning()){ Serial.println( "RTCがRESETされています!"); lcd.setCursor(0, 0); lcd.print("RTC had been RESET"); //次の行は、RTCをこのスケッチがコンパイルされた日時に設定します RTC.adjust(DateTime(__DATE__,__TIME__)); }
/* ----- Setting up serial communication with PC ------ */ /* ここでUSBを介してPCとシリアル通信を始める。9600はシリアル通信のボーレート */ Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only //何らかの問題があってシリアルポートに接続できないときは、このループにトラップされる }
/* ----- Initialisation of SD card ------ */ Serial.print("Initializing SD card.."); lcd.setCursor(0, 0); delay(200); lcd.print("Initializing SD card"); //see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); lcd.setCursor(0, 1); lcd.print("Card failed, or no "); // don't do anything more: digitalWrite(redLEDpin, HIGH); return; } Serial.println("card initialized. "); lcd.setCursor(0, 2); lcd.print("card initialized."); digitalWrite(greenLEDpin, HIGH); }
char current_t[20] = "";
void loop(void) { int ainput; //読み取ったbit数:intは整数 float vinput; //bit数を電圧に変換したもの:floatは浮動小数点数
I had made up the stable receiver with a Si5351a PLL chip. To utilize the Si5351a I tried to combine the ten keyboards because of more functional operation can be brought.