View previous topic :: View next topic |
Author |
Message |
Tony Pinto
Joined: 30 Jan 2014 Posts: 3 Location: chennai
|
interface pic16f877a with bluetooth |
Posted: Thu Jan 30, 2014 9:10 am |
|
|
Hi Every one !!!
i've written an adc program and now i want to interface it with an android device via bluetooth.
i'm using pic 16f877a.
please advice what is the best bluetooth module should i write any coding.
if yes please guide me as to how to write it,as i'm totally new to programming
thanks in advance
God bless !!! _________________ Tony |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9250 Location: Greensville,Ontario
|
|
Posted: Thu Jan 30, 2014 9:54 am |
|
|
There is no 'best' bluetooth module.What works for me, may not work for you...
Since you are a 'beginner' programmer, I'd suggest looking for one that has a 'serial (RS232) interface' as opposed to say I2C or SPI. Serial tends to be easier for beginners. Be careful though. 'serial' to some means RS-232 compatible, so that it has 'max232' or equal builtin, others consider 'serial' to mean 'TTL' compatible. While both are serial they are NOT the same. The details will be in the datasheet.
Your choice of the now obsolete 16F877 isn't the best but should work for you.
As to code....
since you say the ADC section is running,
1) cut code so that it goes to a PC via a max232 device). Confirm the data sent is correct both in format and protocol.
2) develop a PC bluetooth program,again confirm it works
3) cut PIC code to transmit the ADC data via Bluetooth device.
providing every step is taken and works, the overall project will work.
hth
jay |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Jan 30, 2014 11:46 am |
|
|
Sparkfun... "bluesmirf"
Easy.
G. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
|