SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By Lpastorsanchez
#195675
I connected the 9DoF Razor IMU MO with bluetooth:
Razor IMU Mo ----> Bluetooth,
GND ---> GND
3v3 ---> VCC
TX ---> RX
RX ---> TX
And 9DoF Razor IMU MO does not transmit data.
Do I need to configure something?
By Valen
#195682
Probably. Tell more about what bluetooth module you have. The Razor probably needs to contain code that sets it up right before data can be sent and received.
By Lpastorsanchez
#195684
Thanks you.
I have many SparkFun Bluetooth Mate Gold.
The SparkFun Bluetooth Mate Gold is well configured because it was used with 9 Degrees of Freedom - Razor IMU retired, even using only the terminals GND, Vcc, Tx and Rx.
Now, I am using SparkFun 9DoF Razor IMU M0 with SparkFun Bluetooth Mate Gold previously configured. I start with monitor serie of Arduino and SparkFun Bluetooth Mate Gold change the led from red to green but the SparkFun 9DoF Razor IMU M0 does not transmit nothing.
I am using the code download of _9DoF_Razor_M0_Firmware-v1.0.0.zip and only changed the following: //#define ENABLE_NVRAM_STORAGE.
Thanks you.
By Valen
#195687
Found the cause. Actually, somebody else did. See the end of the comments of the Razor IMU M0 hookup guide page:

(TLDR: The TX and RX pins on the Razor are a different serial port than the one provided by the USB connection (the one serial monitor sees when it is plugged in). SerialUSB vs. Serial1. The example code that it shipped with needs to be fixed to output to the RX/TX pins/bluetooth module )
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 ] .
By Valen
#195688
Follow the installation procedure of the Hookup Guide instead. Using the latest code from the Github repository only the config.h file needs to be modified in line 25 to output to the hardware serial port instead of the USB port. (I mean, I assume that it works. I never had such a board myself to play with.)
config.h wrote:////////////////////////
// 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
By JMB1603
#200086
I am trying to do the same but I too cannot transmit data via Bluetooth. I have changed line 25 in the config.h file, is there something else I need to do?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]