I tried a few things: increasing baud rate, eliminating the commas, and replacing the logic to read port by port, instead of pin by pin. I use an interrupt to trigger the reading of the 16 pins based on the status of one of the signal pins.Īny way I can "print" out these 16 bits to a text file via the USB cable that I can access on the computer? description group coast buddhist spark save serial hanging registration. Select the USB port from the drop down menu, then set the communication to the settings in the firmware of the project (i.e., 115200 baud and 8N1 format as shown). daddy not cool term membership matchmaking. Wasnt able to test it with my code yet because of this issue: ( No Data Received on Serial Port & Unable to DFU Reset. your serial port connection on your Mac is CoolTerm by Roger Meier: CoolTerm is. Found that I need to use a terminal program to grab the data from the serial output using CoolTerm by Roger Meier. Terminal by Bry++, a free terminal that supports text and hexadecimal. Click on the Options menu to open the Serial Port Options window. Using CoolTerm to receive Serial Data into a saveable file 1 Have functional code that reads data from sensors. Then there's 3 signal pins that manage the reading/timing/clearing of registers from the signal processor. Setup The first step in using the MCP2221 with CoolTerm is to establish the communication settings. There's essentially 16 pins that transmit binary data. Yes, I plan on modifying the reading by reading ports instead of pin by pin, and also plan on removing the "," (in there to help make it easy to paste into excel as csv). I guess I kinda skipped the code because I have another thread in the forum where people have been helping me out, so I don't think the code is the issue. Serial.print(digitalRead(37)) // DB15 //reversed! now 15 to 0, not 0 to 15ĭigitalWrite(DATA_HOLD, HIGH) // Data_Hold done and reset for next set STATE = 1 // data is present on data busĭigitalWrite(DATA_HOLD, LOW) // Data_Hold digitalWrite(DATA_HOLD, HIGH) // starting with this line clear/resetĪttachInterrupt(digitalPinToInterrupt(PULSE_PIN), catchPulse, RISING) ĭigitalWrite(CPU_READY, LOW) // Tells sig processor to start sending data PinMode(PULSE_PIN, INPUT) // CYCLE_REQUEST digital pin 2 CYCLE_REQUEST Select a file to save your data and away you go All incoming serial data will then be automatically saved for you. Just connect to your Arduino, and then go to the 'Transfer->Capture Text' menu option. PinMode(DATA_HOLD, OUTPUT) // Data_Hold digital 39 DATA_HOLD If you use hyperterminal then it is easy to save any incoming serial data. PinMode(CPU_READY, OUTPUT) // CPU_Ready digital 38 CPU_READY This answer is a regurgitation of a duplicate question asked earlier. You could also use Excel VBA with MSCOMM to take the serial data directly into excel. Finally, import this text file into excel. Oops of course, here it is: const int PULSE_PIN = 2 //aka CYCLE_REQUEST Once you have done this, simply run your serial data and open up your computer's console and write: type COM ( here) > serialdata.txt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |