Posts: 3
Joined: Aug. 11, 2006
From: 0
Status: offline
Hi All
Im only new to the whole area of electronics so bare with me. Im currently trying to alter an electronic measuring device to send the measurements via Bluetooth to a PDA.
I have hacked the measuring device and am reading the signal from the sensor on the device (which alters between 5V and 0V for every millimetre the measuring device changes).
I am sending these signal to the a PIC16F690 which records the distance in a 4 digit long measurement (i.e. 1.203 meters) which I am using two bytes to record.
However this is where I come stuck. I am unsure as how to transfer the measurement from the pic microcontroller to a Bluetooth module (currently have a free2move F2M03C1 bluetooth module but can purchase another if needed) and then to the PDA. Is this possible at all???
Could you also advise which Bluetooth module would suit this purpose and what additional hardware is required i.e. evaluation boards etc I was wondering if anyone can shed some light on my problem or has anyone carried out a project similar to this previously which could be of help.
Posts: 880
Joined: Jun. 19, 2004
From: San Geronimo Valley
Status: offline
quote:
ORIGINAL: cyberdam
Hi All
Im only new to the whole area of electronics so bare with me. Im currently trying to alter an electronic measuring device to send the measurements via Bluetooth to a PDA.
I have hacked the measuring device and am reading the signal from the sensor on the device (which alters between 5V and 0V for every millimetre the measuring device changes).
I am sending these signal to the a PIC16F690 which records the distance in a 4 digit long measurement (i.e. 1.203 meters) which I am using two bytes to record.
However this is where I come stuck. I am unsure as how to transfer the measurement from the pic microcontroller to a Bluetooth module (currently have a free2move F2M03C1 bluetooth module but can purchase another if needed) and then to the PDA. Is this possible at all???
Could you also advise which Bluetooth module would suit this purpose and what additional hardware is required i.e. evaluation boards etc I was wondering if anyone can shed some light on my problem or has anyone carried out a project similar to this previously which could be of help.
Cheers in advance Cyberdam
I read a brief on the F2M03C1 which states that it is a wireless UART ... connect the PIC to the UART and program the PIC to communicate with the F2M03C1's through the command language residing in the F2M03C1. Do you have a reference manual for the F2? You will need to write a layer of code that resides above the communication protocol for managing the measurement information you intend to transfer to the wireless target device (and code on the target device side as well). These are challenging projects because you really need someone with some expertise to navigate the many layers required to make this system work. If you are new to electronics the learning curve may become a serious impediment.
(added) cyberdam ... it looks like this device features a protocol-less (transparent) UART interface which means that you can connect the PIC UART (most likely direct) to the F2 and then process the data from the PIC on the PC side through some form of Windows Bluetooth drivers (either F2's or M.S.) ... think of the F2 as connecting to the UART of a PC.
< Message edited by jetcode -- Aug. 11, 2006 8:17:55 AM >
You can actually look at KCWirefree Bluetooth module. I have been using it for my Bluetooth project. It have SPP (Serial Port Profile) which emulate serial port, is easy.
I've also used the KCWirefree Bluetooth modules in this exact same way. We used a KCwirefree KC22, which has a very small footprint and is very easy to use. We sent a UART stream, then picked up the stream via a palm pilot with telnet (a simple terminal emulator) and boom, you have your system. Just keep in mind that at 2.4Ghz, you're going to need to be careful with antenna design/placement. But, I guess a more direct response to your question is, use the UART, and yes, it's entirely possible.
Posts: 3
Joined: Aug. 11, 2006
From: 0
Status: offline
thnaks guys for your replys they have been very helpful
up to this point I have succesfully sent the measurments to a PC using a F2M01C1 serial dongle and a max232 chip connected to the pic (which is recieving 2 inputs from sensors and calculating the measurment) which i set up for prototyping purposes
However when I replace the max chip and the F2M01C1 dongle with the F2M03C1 chip it dosent transmit the signal to the PC. In the change over I have changed the voltage level from 5V to 3V, this is what the F2M03C1 chip works on. i have tested the signal being sent to the new chip and it seems to be fine. I can bond the PC and the module fine its just that the data isnt being sent
What i thought might be the problem is that CTS and RTS signal might not be set correctly, but changing the signal from high to low dosent seen to affect it (is setting these signal more complex than this)
Hi, I don't know your exact modules, but usually in my experience the CTS/RTS lines are optional, and active only if one wants them to be. So they should not need to be used/handled.