baicy
Newbie level 4
Hi all,
I'm working on a project, geting some data (analogue voltage) from sensor, do simple processing using PIC16F877A, and then send information to my PC using Bluetooth.
I've configure the UART communication between PIC and bluetooth as shown in the attachment. And set up the connection VDD, GND, Rx (using a voltage divider), and Tx. But I don't know how to code the PIC to do the job, all I need is:
1. receive the voltage reading from the sensor by A/D channel.
2. send the voltage reading by Bluetooth (UART)
Any one have any idea how to code the PIC16F877A to connect with Bluetooth?
Can I send the AT command directly to the Bluetooth module with UART?
Many thanks!
Baicy
[/img]
I'm working on a project, geting some data (analogue voltage) from sensor, do simple processing using PIC16F877A, and then send information to my PC using Bluetooth.
I've configure the UART communication between PIC and bluetooth as shown in the attachment. And set up the connection VDD, GND, Rx (using a voltage divider), and Tx. But I don't know how to code the PIC to do the job, all I need is:
1. receive the voltage reading from the sensor by A/D channel.
2. send the voltage reading by Bluetooth (UART)
Any one have any idea how to code the PIC16F877A to connect with Bluetooth?
Can I send the AT command directly to the Bluetooth module with UART?
Many thanks!
Baicy
[/img]