Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pic microcontroller (16f877a) + arduino + analog potentiometer

Status
Not open for further replies.

indraneel

Newbie level 1
Joined
Mar 16, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hi i have connected a potentiometer to pin AN 2 of pic16f877A .The 10 bit ADC converts input from 0-1023 .
Now ,i want to transmit the data serially to arduino uno R3 and display on the monitor .I have connected the Tx of pic to Rx of arduino and also have a common ground .I have also created a software serial port in the Arduino so that the one which sends data to the computer via USB does not conflict with the one used for communication with PIC .

When I send alphabets or numbers using the statement e.g.Uart1_Write_text('A') ,the data is received in ASCII at the arduino and after conversion to char i can display it on monitor.

But in case of potentiometer ,the data is not transmitted at all or garbage values are received .Mind you ,I have displayed the ADC data on LCD and I get values from 0-1023 as I change the potentiometer .But there's some problem with serial transmission.

Maybe its a problem of the data format Im transmitting but i can't figure it out .

Assistance would be highly appreciated.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top