Report
5 years, 4 months ago.

Connecting FRDM-KL25Z to Arduino and Bluetooth Serial

Hi, Recently i connected my wild thumper controller (arduino) to my andriod phone via bluetooth and now my lecturer says I should connect the bluetooth serial to an FRDM-KL25Z which will send data to the arduino. Please does anyone have a simple mbed code to receive data from a bluetooth serial and transmit it?? here is a link to pin configs of the FRDM-KL25Z if needed http://mbed.org/media/uploads/rikabel/kl25z-pinout-revised.jpg . Also, are the rx/tx pins on the FRDM-KL25Z operating at the same voltage as the rx/tx pins on my wild thumper controller? Thanks for the help.

Comment on this question

2 Answers

5 years, 4 months ago.

/media/uploads/kosidinma/mbed.c Ok so i managed to write up a code but i have no idea if its correct (i can't test it because my FRDM-KL25Z isn't here yet). Please can someone check it and see if its correct? Thanks.

5 years, 4 months ago.

Hello Kosy Onyenso,

have you added KL25Z as your board here? In order to be visible in the online compiler, you can add it here http://mbed.org/platforms/KL25Z/

You can compile your code, even without a board. Once it arrives, just flash it. Happy coding!

Regards, 0xc0170

Thanks but the above code is giving me errors

posted by Kosy Onyenso 21 Nov 2013

Any idea on how to fix it?

posted by Kosy Onyenso 21 Nov 2013

Maybe mention which errors you are getting...

Anyway I guess it is something like: "Expected a ';'". Your last line of regular code lacks a ;. Btw you should take into account the KL25 is not 5V tolerant, you may not put I/O voltages above 3.3V on it.

posted by Erik Olieman 21 Nov 2013

To post an answer, please log in.