Where electronics enthusiasts find answers.
bboyho / about 5 months ago * / 1
——————– Tech Support Tips/Troubleshooting/Common Issues ——————–
Serial Output through Hardware UART pins
The default test code does not output serial data automatically to the hardware Tx and Rx pins. It is currently waiting for a “$” under our QC test procedures [ https://github.com/sparkfun/9DOF_Razor_ ... e.ino#L163 ]. Depending on what imu value you want printed from the string, you would need to write additional code to print serial data with the correct function [ Serial1.print() or Serial1.println() - https://learn.sparkfun.com/tutorials/sa ... rial-ports ] somewhere around this function => [ https://github.com/sparkfun/9DOF_Razor_ ... e.ino#L168 ]. Additionally, the serial object is defined here => https://github.com/sparkfun/9DOF_Razor_ ... nfig.h#L25 ] for the Arduino serial monitor or the hardware serial UART port 1 on pins 0 and 1. Be sure to change the baud rate when you initialize the serial port to match the receiving serial device. By changing a few lines and printing the string to one of the hardware UARTs, other serial UARTs can read the serial data.
If you have not used a serial UART before, try looking at this tutorial for more information about serial communication and UARTs [ https://learn.sparkfun.com/tutorials/se ... munication ] .
// Serial Port Config //
#define ENABLE_UART_LOGGING true
// Select the Serial port to log to. Either SERIAL_PORT_USBVIRTUAL
// or LOG_PORT SERIAL_PORT_HARDWARE (SerialUSB or Serial1)
#define LOG_PORT SERIAL_PORT_USBVIRTUAL
#define SERIAL_BAUD_RATE 115200 // Serial port baud
We have created lots of YouTube videos just so you can achieve [...]
The best flat phpBB theme around. Period. Fine craftmanship and [...]
All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]
this should be fantastic. but what about links,images, bbcodes etc etc? [...]